1
0
forked from ports/contrib

graphite2: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-08 11:17:36 +00:00
parent 545c9aac51
commit 386c546afe
2 changed files with 10 additions and 12 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3x5QRuiEoqm26dOB61Wwra+4Ylxm860Iam9AUMsa9U5eL2a3n+KRZUsIyzVynC/WnrF0KKX1hvnqJFnFFbq/0wM=
SHA256 (Pkgfile) = fc408d0d4345388dc2d0eca555d01fecb49add6210ed0d0211f62a6bba710ee2
RWSagIOpLGJF3zom9QVSurlMvYjx0tLxZZBtFZ8jhUdqt5g1gMNMrZcJwu2qmyPU4bkVH/GJnBNF69hjOrKgBjJTLI269vBP5Aw=
SHA256 (Pkgfile) = 5d8673852ea3df54df2a15f0ce3f406a3d8fe4d39f54a1ad12e1562ed3b8c730
SHA256 (.footprint) = ce75900ef29914480cb47e943218a3ccb7b4675c4e7f8d32120ecbac8e6a499d
SHA256 (graphite2-1.3.14.tgz) = f99d1c13aa5fa296898a181dff9b82fb25f6cc0933dbaa7a475d8109bd54209d

View File

@ -10,16 +10,14 @@ release=1
source=(https://github.com/silnrsi/graphite/releases/download/$version/$name-$version.tgz)
build() {
[[ -e /usr/bin/ninja ]] && PKGMK_GRAPHITE2_OPTIONS=' -GNinja'
cmake -S$name-$version -Bbuild $PKGMK_GRAPHITE2_OPTIONS \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_C_FLAGS:STRING="$CFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \
-DGRAPHITE2_COMPARE_RENDERER=OFF
find . -type f ! -name "rules" ! -name "changelog" -exec sed -i -e 's/\-03//g' {} \;
[[ -e /usr/bin/ninja ]] && PKGMK_GRAPHITE2+=' -G Ninja'
cmake -S $name-$version -B build $PKGMK_GRAPHITE2 \
-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 GRAPHITE2_COMPARE_RENDERER=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}