diff options
author | Tim Biermann <tbier@posteo.de> | 2020-11-08 12:19:09 +0000 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2020-11-08 13:41:14 +0000 |
commit | d2c332aa001694f272dd4aa78f27686dfffc1c19 (patch) | |
tree | 9f5dfd679ed40481b1da1250bf725056e83e9ca6 /rapidjson | |
parent | c6f72fff668c4ac741466954fcf659d3edb39235 (diff) | |
download | contrib-d2c332aa001694f272dd4aa78f27686dfffc1c19.tar.gz contrib-d2c332aa001694f272dd4aa78f27686dfffc1c19.tar.xz |
rapidjson: updated cmake syntax
Diffstat (limited to 'rapidjson')
-rw-r--r-- | rapidjson/.signature | 4 | ||||
-rw-r--r-- | rapidjson/Pkgfile | 18 |
2 files changed, 12 insertions, 10 deletions
diff --git a/rapidjson/.signature b/rapidjson/.signature index 63158c73e..b565d6ae9 100644 --- a/rapidjson/.signature +++ b/rapidjson/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF37/5DNfzEMYX+tZPU3WcUA7SnC4cwKiqd4aId1edqSpOI5FdZBIjxbrNybyfsWiCKdrU8kiIy1bprwG48gYjwQs= -SHA256 (Pkgfile) = 1f1867d2f75cbec0edd6162c64941f1de85f3b4f69e222f229b74d1b1384eb19 +RWSagIOpLGJF31JJiTlelm80lrszfoCTVAnu3GOPPynZY4B8rSAl97F4MaXYmAJjQfYiDNpXYbhM/X29sWW7O+Q+3kt8z2zM0Qg= +SHA256 (Pkgfile) = ee567693be623577debe850909ef0519e8896588267c26d0c499aa87aa0d4336 SHA256 (.footprint) = b4bef9b0129fa2f3800eb41e617931f8ff9e9f4ed407c31a26bceafbc4e53d9e SHA256 (rapidjson-1.1.0.tar.gz) = bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e diff --git a/rapidjson/Pkgfile b/rapidjson/Pkgfile index fa3b7493b..19e4de88b 100644 --- a/rapidjson/Pkgfile +++ b/rapidjson/Pkgfile @@ -9,15 +9,17 @@ release=2 source=(https://github.com/Tencent/rapidjson/archive/v$version/$name-$version.tar.gz) build() { - #find -name CMakeLists.txt | xargs sed -e 's|-Werror||' -i # Don't use -Werror - [[ -e /usr/bin/ninja ]] && PKGMK_RAPIDJSON_OPTIONS=' -GNinja' + [[ -e /usr/bin/ninja ]] && PKGMK_RAPIDJSON+=' -G Ninja' [[ -e /usr/lib/ccache ]] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')" - cmake -S$name-$version -Bbuild $PKGMK_RAPIDJSON_OPTIONS \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DRAPIDJSON_BUILD_DOC=OFF \ - -DRAPIDJSON_BUILD_EXAMPLES=OFF \ - -DRAPIDJSON_BUILD_TESTS=OFF + cmake -S $name-$version -B build $PKGMK_RAPIDJSON \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \ + -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \ + -D RAPIDJSON_BUILD_DOC=OFF \ + -D RAPIDJSON_BUILD_EXAMPLES=OFF \ + -D RAPIDJSON_BUILD_TESTS=OFF \ + -Wno-dev cmake --build build DESTDIR=$PKG cmake --install build rm -r $PKG/usr/share/doc |