summaryrefslogtreecommitdiff
path: root/ccache
diff options
context:
space:
mode:
authorDanny Rawlins <contact@romster.me>2020-11-09 22:34:51 +1100
committerDanny Rawlins <contact@romster.me>2020-11-09 22:34:51 +1100
commiteacf806755085d192ed2f8736537eaafbb05cd9a (patch)
tree7814dd327d3fef44e4d5ffad6dc5e71173ec9ee4 /ccache
parent385c37e6a64b35b0a1971ac4df65e5431bf0bb2c (diff)
downloadopt-eacf806755085d192ed2f8736537eaafbb05cd9a.tar.gz
opt-eacf806755085d192ed2f8736537eaafbb05cd9a.tar.xz
ccache: clean up cmake syntax
Diffstat (limited to 'ccache')
-rw-r--r--ccache/.signature4
-rw-r--r--ccache/Pkgfile12
2 files changed, 10 insertions, 6 deletions
diff --git a/ccache/.signature b/ccache/.signature
index 1afe58792..48109a4e5 100644
--- a/ccache/.signature
+++ b/ccache/.signature
@@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
-RWSE3ohX2g5d/d9v9czK2S/b0i7DUL7hYSCNFkpUKeTZT2PakbcRaoTVl/lAjhrgrxzLyv54LX18tPXoEM4RWAYBHRmSuILaIww=
-SHA256 (Pkgfile) = cf7be007767c4add512d2d7adb5314a56cc9a2d132d7e58b919cbfbd47f80c4f
+RWSE3ohX2g5d/dXe/4YW2NXoeU/k+u2wAXol8IBMGFFpXAEpWC8dcN9pZYAOC4BCbAEDVBdxDqR28fS2HY3Lsu1U9y0NHAz2Bw8=
+SHA256 (Pkgfile) = 4e66b998dff3eb9d02089c4d28f7183f380fa89d9c374a36240a68dca2a4d4f2
SHA256 (.footprint) = aa85bfc686cf873efffd292c55eae8016e161bd8074d4f3490539f6089eead23
SHA256 (ccache-4.0.tar.xz) = ac1b82fe0a5e39905945c4d68fcb24bd0f32344869faf647a1b8d31e544dcb88
SHA256 (ccache.1) = 3103469f87eb78a058483b7a0eb93be48125872abfb7e15eaeead5e5e537c0c6
diff --git a/ccache/Pkgfile b/ccache/Pkgfile
index 1511f52f1..5f6651a3f 100644
--- a/ccache/Pkgfile
+++ b/ccache/Pkgfile
@@ -12,13 +12,17 @@ source=(https://github.com/$name/$name/releases/download/v$version/$name-$versio
ccache-man.patch)
build() {
+ [[ -e '/usr/bin/ninja' ]] && PKGMK_CCACHE+=' -G Ninja'
+
# https://github.com/ccache/ccache/issues/684
patch -d $name-$version -p1 -i $SRC/ccache-man.patch
- cmake -S$name-$version -Bbuild \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -DZSTD_FROM_INTERNET="$(prt-get isinst zstd &> /dev/null && echo OFF || echo ON)"
+ cmake -S $name-$version -B build $PKGMK_CCACHE \
+ -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 ZSTD_FROM_INTERNET="$(prt-get isinst zstd &> /dev/null && echo OFF || echo ON)"
cmake --build build
DESTDIR=$PKG cmake --install build

Generated by cgit