diff options
author | Tim Biermann <tbier@posteo.de> | 2020-11-08 13:26:08 +0000 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2020-11-08 13:41:15 +0000 |
commit | 9bdc626106b85814d488a506b2e44fe8789e75f7 (patch) | |
tree | a9eeb5d9c59bce83fb4e7cea0e4526b6d4f39887 /spdlog | |
parent | 602b81f9cb5aa7f274ac74a61d5ab8142e983749 (diff) | |
download | contrib-9bdc626106b85814d488a506b2e44fe8789e75f7.tar.gz contrib-9bdc626106b85814d488a506b2e44fe8789e75f7.tar.xz |
spdlog: updated cmake syntax
Diffstat (limited to 'spdlog')
-rw-r--r-- | spdlog/.signature | 4 | ||||
-rw-r--r-- | spdlog/Pkgfile | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/spdlog/.signature b/spdlog/.signature index 09a0aade0..73f912d20 100644 --- a/spdlog/.signature +++ b/spdlog/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF36ikHXGocyRQjoWKREOkw2cibFxYB2ZaM6013FzQks1W4bHqjA5W4RdV8RyHY9W0sLx17C1Q4d8dnwcsVRyeLwA= -SHA256 (Pkgfile) = 8efe8e458c5ec5d2b8100eaad4fbbc260209dac574c5ee6db884849c360f7b08 +RWSagIOpLGJF39EsJVnnpBIPVZyFGM4KCQP1bjO0LXnDlPzPkL/+pcQSRiga1m6HRv8vub3xR/TtZqi1yJXo5U74DoAUmPGd+Qs= +SHA256 (Pkgfile) = 785bfaa5b3ca848b2f12c3d918c9c745c1d5adf33787cbf3b6d3294af6b98592 SHA256 (.footprint) = a183c6b4321c6243854e00228577e6bd9149c6fb2fd1483622411f28b242bfbd SHA256 (spdlog-1.8.1.tar.gz) = 5197b3147cfcfaa67dd564db7b878e4a4b3d9f3443801722b3915cdeced656cb diff --git a/spdlog/Pkgfile b/spdlog/Pkgfile index 4b5d1326a..1f7509b8d 100644 --- a/spdlog/Pkgfile +++ b/spdlog/Pkgfile @@ -1,7 +1,7 @@ # Description: Fast C++ logging library # URL: https://github.com/gabime/spdlog # Maintainer: Tim Biermann, tbier at posteo dot de -# Depends on: cmake fmt ninja +# Depends on: cmake fmt name=spdlog version=1.8.1 @@ -9,9 +9,13 @@ release=1 source=(https://github.com/gabime/spdlog/archive/v$version/$name-$version.tar.gz) build() { - cmake -S$name-$version -Bbuild -G Ninja \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib + [[ -e /usr/bin/ninja ]] && PKGMK_SPDLOG+=' -G Ninja' + cmake -S $name-$version -B build $PKGMK_SPDLOG \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_INSTALL_LIBDIR=lib \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \ + -Wno-dev cmake --build build DESTDIR=$PKG cmake --install build } |