1
0
forked from ports/contrib

rapidjson: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-03 20:48:55 +00:00
parent 97397434fd
commit f0108a8200
Signed by untrusted user: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 5 additions and 4 deletions

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3/9UbDw18GyI1WuyBoMpPOXev3fQasXIJfA8deNDL/DKkSzM19SIgXZM8m3qb8VUzIHXyO84QZtalYn9sROtTAM=
SHA256 (Pkgfile) = f23c5ff459e68ca95ffba5531da6272336ee88d9413c67287bfdd801bb448885
RWSagIOpLGJF37/5DNfzEMYX+tZPU3WcUA7SnC4cwKiqd4aId1edqSpOI5FdZBIjxbrNybyfsWiCKdrU8kiIy1bprwG48gYjwQs=
SHA256 (Pkgfile) = 1f1867d2f75cbec0edd6162c64941f1de85f3b4f69e222f229b74d1b1384eb19
SHA256 (.footprint) = b4bef9b0129fa2f3800eb41e617931f8ff9e9f4ed407c31a26bceafbc4e53d9e
SHA256 (rapidjson-1.1.0.tar.gz) = bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e

@ -9,9 +9,10 @@ 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
#find -name CMakeLists.txt | xargs sed -e 's|-Werror||' -i # Don't use -Werror
[[ -e /usr/bin/ninja ]] && PKGMK_RAPIDJSON_OPTIONS=' -GNinja'
[[ -e /usr/lib/ccache ]] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
cmake -S$name-$version -Bbuild \
cmake -S$name-$version -Bbuild $PKGMK_RAPIDJSON_OPTIONS \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DRAPIDJSON_BUILD_DOC=OFF \