forked from ports/contrib
libebml: updated cmake syntax
This commit is contained in:
parent
ddbe5999c0
commit
c89b510153
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF34zW87MtgqO89u7dtyha5bfej+R307Cdfet7XN+JRjq+WMdWABOB9y/Kii4VKagF5hKpi0jAGRWRRoIwkNN8Sww=
|
||||
SHA256 (Pkgfile) = 86d60de0ffe1dc099d8ab29da8e17aa1a4554526d7582ec0693aadf1b0195129
|
||||
RWSagIOpLGJF35tCjJ6I/GngDKu/80+iLD4AWQ6at2pnEEeL86bqLpYvR2uuH+avMvxy2DTQlOpcGz+C6iwK7dbUKK77by7w5QM=
|
||||
SHA256 (Pkgfile) = 720b0f8b8b5f8b419cbcd162a5d1a3c5d617e52914efed041525c7f74bba6d67
|
||||
SHA256 (.footprint) = 544f95100b22804152c894eef787a4c56485af7619fc745d26f072742172c902
|
||||
SHA256 (libebml-1.4.0.tar.xz) = 80abc9a82549615018798ee704997270a39b43de9a6e7e0d23b62f8ce682c4b3
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Description: A library for reading and writing files with the Extensible Binary Meta Language, a binary pendant to XML.
|
||||
# Description: A library for reading and writing files with the Extensible Binary Meta Language, a binary pendant to XML.
|
||||
# URL: https://github.com/Matroska-Org/libebml
|
||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
||||
# Depends on: cmake ninja
|
||||
# Depends on: cmake
|
||||
|
||||
name=libebml
|
||||
version=1.4.0
|
||||
@ -9,10 +9,14 @@ release=1
|
||||
source=(https://dl.matroska.org/downloads/$name/$name-$version.tar.xz)
|
||||
|
||||
build() {
|
||||
cmake -S$name-$version -Bbuild -GNinja \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
[[ -e /usr/bin/ninja ]] && PKGMK_LIBEBML_OPTIONS=' -GNinja'
|
||||
cmake -S$name-$version -Bbuild $PKGMK_LIBEBML_OPTIONS \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
||||
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
||||
-Wno-dev \
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
|
||||
cmake --build build
|
||||
|
Loading…
x
Reference in New Issue
Block a user