yajl: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-08 12:48:40 +00:00
parent 700fc60cfe
commit 425f30a39a
2 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3+s4T19FDj+7c9eJyWZTBLsno88vZm41HrDJybxY7Imcmjvup9wQCCC39Xezyxl5tQtvi3LmUl0Enc77J/sGIwQ=
SHA256 (Pkgfile) = 1157f7ff0e83f685e07d13db08fd0c767926100fffee26da62057895df8cebf9
RWSagIOpLGJF32xatSsHp1sFtnfO6YlE91MSgrafNpBR2CuMY6vfmRKnwrF31Xeac+I7weiCiTiBKfzPXxgvnw4B2KEj7zFjMAE=
SHA256 (Pkgfile) = a174f8b2acb80e6772d12c0de1ccb79875e1d93939a26cc30ca5096776939c8a
SHA256 (.footprint) = a12a3cd23e0ffa9ef413dd7d8d801472c0b67d9f53dae0d996713ea0eaca8686
SHA256 (yajl-2.1.0.tar.gz) = 3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a

View File

@ -9,9 +9,12 @@ release=1
source=(https://github.com/lloyd/$name/archive/$version/$name-$version.tar.gz)
build() {
[[ -e /usr/bin/ninja ]] && PKGMK_YAJL_OPTIONS=' -GNinja'
cmake -S$name-$version -Bbuild $PKGMK_YAJL_OPTIONS \
-DCMAKE_INSTALL_PREFIX=/usr \
[[ -e /usr/bin/ninja ]] && PKGMK_YAJL+=' -G Ninja'
cmake -S $name-$version -B build $PKGMK_YAJL \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build