forked from ports/contrib
cmark: updated cmake syntax
This commit is contained in:
parent
509f8d1c1c
commit
bb2a969932
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3+kmr9CST9kPQbnKX+Lkj7L6mBWgQw172dBlDPZZPlYtV/Yp4Mp2CyZt5COKbA56TwuRH6RVQJqgzU94z2P54wk=
|
||||
SHA256 (Pkgfile) = 1e00090ed8413ed5beb1a05e1f0aafb2a1148d02a506caf4278b5ae97002c9fe
|
||||
RWSagIOpLGJF3+VCKQyv5KT6fE+OprZXdzU8DoEtvuvj643B2mRai31jwvubQ5JZ1ui+uL1kvRscoRuBkmCsQH02YtZGv7mjyQc=
|
||||
SHA256 (Pkgfile) = 17a6d92aae52e9b272ce08cf0052c7b416e7b946e6299708bd3f476ca99c8b7b
|
||||
SHA256 (.footprint) = e5a7f390dd93c1251814952881cfb05354403794e97231863ff9f35071099529
|
||||
SHA256 (cmark-0.29.0.tar.gz) = 2558ace3cbeff85610de3bda32858f722b359acdadf0c4691851865bb84924a6
|
||||
|
@ -9,16 +9,15 @@ release=1
|
||||
source=(https://github.com/jgm/$name/archive/$version/$name-$version.tar.gz)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
cmake .. \
|
||||
[[ -e /usr/bin/ninja ]] && PKGMK_CMARK_OPTIONS=' -GNinja'
|
||||
cmake -S$name-$version -Bbuild $PKGMK_CMARK_OPTIONS \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
||||
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
||||
-Wno-dev
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user