forked from ports/contrib
pugixml: updated cmake syntax
This commit is contained in:
parent
1f50b8002a
commit
3cabffe73c
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user