rapidjson: updated cmake syntax
This commit is contained in:
parent
c6f72fff66
commit
d2c332aa00
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user