diff options
author | Tim Biermann <tbier@posteo.de> | 2020-11-03 20:20:26 +0000 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2020-11-03 20:20:26 +0000 |
commit | 3cabffe73c9529f7ed0c2bf7e17376329b12b14e (patch) | |
tree | db21351e55a949330609328bea1f2f65908adb45 | |
parent | 1f50b8002a161d1effefa79addc4a2d80bc65077 (diff) | |
download | contrib-3cabffe73c9529f7ed0c2bf7e17376329b12b14e.tar.gz contrib-3cabffe73c9529f7ed0c2bf7e17376329b12b14e.tar.xz |
pugixml: updated cmake syntax
-rw-r--r-- | pugixml/.signature | 4 | ||||
-rw-r--r-- | pugixml/Pkgfile | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/pugixml/.signature b/pugixml/.signature index c950593eb..029acae6b 100644 --- a/pugixml/.signature +++ b/pugixml/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF3+yvOP8/79JMaoJF1xaIL09JYZCZhoJnrMV6qFf8Z5yQWgGFNp5gu2KZws1e4fczKubWP0fsKH5n/x1pKa0TWQ0= -SHA256 (Pkgfile) = de3f3dfe5d71253ce0eeb4979acb01ca6b78373d93ddb4ebc4d2c6e3a2ebc47d +RWSagIOpLGJF3zGvhupKuxs/2Rdk++KJzPGWjKquweqfADN2Y3UWn0XRoVdv3vrK/zvE+v9I9romRwizMjxgAhYcCUS8EI7r/Qs= +SHA256 (Pkgfile) = b4ca5a073b85f0c82512b4a5bf3f1ce7f404637b5cc19a6fcf32e75c8ee90f8e SHA256 (.footprint) = 74da7330ff4c0c28b8154ea9b835616c23adcc2c1554994577e1d96c8cfc2509 SHA256 (pugixml-1.10.tar.gz) = 55f399fbb470942410d348584dc953bcaec926415d3462f471ef350f29b5870a diff --git a/pugixml/Pkgfile b/pugixml/Pkgfile index e024432b7..d6509f1ea 100644 --- a/pugixml/Pkgfile +++ b/pugixml/Pkgfile @@ -9,11 +9,12 @@ release=1 source=(http://github.com/zeux/pugixml/releases/download/v$version/$name-$version.tar.gz) build() { - cmake -S$name-$version -Bbuild \ + [[ -e /usr/bin/ninja ]] && PKGMK_PUGIXML_OPTIONS=' -GNinja' + cmake -S$name-$version -Bbuild $PKGMK_PUGIXML_OPTIONS \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ - -DBUILD_SHARED_LIBS=ON ../ + -DBUILD_SHARED_LIBS=ON cmake --build build DESTDIR=$PKG cmake --install build } |