cmatrix: updated cmake syntax
This commit is contained in:
parent
9987583aef
commit
bb34add6e3
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3y8HQc7KhzVBR3dz/zPYcyNsjebRSkpBRisuIYHU3u1TgvcgqAx5SKCOl5jDCjwGnGyulspt7UpmgeMMADIS8wg=
|
||||
SHA256 (Pkgfile) = e7932fe2a274f86421e64ef85d115bffdd173102f07aee5e1fe182f1dc429446
|
||||
RWSagIOpLGJF38Q5xgw6a31sEBPKyqs+GZcfkDVsz1ksT3M/L67JMOCvdww+YpdqIKHHUkTeMBmf/ZQKF/6iSl4H138L22tdoAQ=
|
||||
SHA256 (Pkgfile) = 42bd8f9ac715dcfbba8a2013a1e9adaf42ff3d9eca75b2a85091ad7c4d4418e0
|
||||
SHA256 (.footprint) = 813bd11d0a2f4c0c1cfc48afb74507d985dd8fc000753fbd13e52eb6c46c8ae3
|
||||
SHA256 (cmatrix-v2.0.tar.gz) = ad93ba39acd383696ab6a9ebbed1259ecf2d3cf9f49d6b97038c66f80749e99a
|
||||
|
@ -10,8 +10,12 @@ release=1
|
||||
source=(https://github.com/abishekvashok/cmatrix/archive/v$version/$name-v$version.tar.gz)
|
||||
|
||||
build() {
|
||||
cmake -S$name-$version -Bbuild \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
[[ -e /usr/bin/ninja ]] && PKGMK_CMATRIX+=' -G Ninja'
|
||||
cmake -S $name-$version -B build $PKGMK_CMATRIX \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
||||
-Wno-dev
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user