1
0
forked from ports/contrib

crossguid: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-03 17:52:42 +00:00
parent 8abfc54463
commit fd173c7948
Signed by untrusted user: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3/5DHCdqIDWvULCHnCVro+G7E2+uu2eNhUImjRdNvencEDt7z/gu7Gt0bvW0SNikYX06u46CCc6fh78Lp4T8+Q4= RWSagIOpLGJF3/eUO9tdfgo4hAJq+BunElLgAabAQsBccbJIxEosPZKjGWrNCqFLLVTlDl5U6CgNQ5Y+bWTjl8i5wlb6P+Fk8wU=
SHA256 (Pkgfile) = c3e01692b45c26cf2aca1504e6de02aed82582634a60d00a68707db95425c0f2 SHA256 (Pkgfile) = dbc9fc6978ac5b261d5decf05038e228fe6184746709f040cd27a8c6878ec435
SHA256 (.footprint) = 8493818938895a7ffffb802ef89e8cc887d14324775495d043c4c0aafab78bd4 SHA256 (.footprint) = 8493818938895a7ffffb802ef89e8cc887d14324775495d043c4c0aafab78bd4
SHA256 (crossguid-0.2.2.tar.gz) = 48321928473c682b0cdc7e17bbd3390f79f4b98ab22fef3b81a852dda81fd195 SHA256 (crossguid-0.2.2.tar.gz) = 48321928473c682b0cdc7e17bbd3390f79f4b98ab22fef3b81a852dda81fd195

View File

@ -9,7 +9,9 @@ release=1
source=(https://github.com/graeme-hill/crossguid/archive/v$version/$name-$version.tar.gz) source=(https://github.com/graeme-hill/crossguid/archive/v$version/$name-$version.tar.gz)
build() { build() {
cmake -S$name-$version -Bbuild [[ -e /usr/bin/ninja ]] && PKGMK_CROSSGUID_OPTIONS=' -GNinja'
cmake -S$name-$version -Bbuild $PKGMK_CROSSGUID_OPTIONS \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build cmake --build build
install -D -m 0644 build/libxg.a $PKG/usr/lib/libxg.a install -D -m 0644 build/libxg.a $PKG/usr/lib/libxg.a
install -D -m 0644 $name-$version/Guid.hpp $PKG/usr/include/Guid.hpp install -D -m 0644 $name-$version/Guid.hpp $PKG/usr/include/Guid.hpp