forked from ports/contrib
libebml: updated cmake syntax
This commit is contained in:
parent
8d55d1b9e2
commit
b5edc518ae
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF35tCjJ6I/GngDKu/80+iLD4AWQ6at2pnEEeL86bqLpYvR2uuH+avMvxy2DTQlOpcGz+C6iwK7dbUKK77by7w5QM=
|
||||
SHA256 (Pkgfile) = 720b0f8b8b5f8b419cbcd162a5d1a3c5d617e52914efed041525c7f74bba6d67
|
||||
RWSagIOpLGJF3xyFd695HiWxRKpQd/XUTWu4kDSa0dMa+PPjann/Uk8GY5WGsBuQWlGyNPO6mf8KN2AaNe099/q/D0cQkXKYsQA=
|
||||
SHA256 (Pkgfile) = 08759cf25f5f90cf973ec05a086cb754b0b968aeec0d247f50cb2a286c35bde4
|
||||
SHA256 (.footprint) = 544f95100b22804152c894eef787a4c56485af7619fc745d26f072742172c902
|
||||
SHA256 (libebml-1.4.0.tar.xz) = 80abc9a82549615018798ee704997270a39b43de9a6e7e0d23b62f8ce682c4b3
|
||||
|
@ -9,15 +9,15 @@ release=1
|
||||
source=(https://dl.matroska.org/downloads/$name/$name-$version.tar.xz)
|
||||
|
||||
build() {
|
||||
[[ -e /usr/bin/ninja ]] && PKGMK_LIBEBML_OPTIONS=' -GNinja'
|
||||
cmake -S$name-$version -Bbuild $PKGMK_LIBEBML_OPTIONS \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-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
|
||||
[[ -e /usr/bin/ninja ]] && PKGMK_LIBEBML+=' -G Ninja'
|
||||
cmake -S $name-$version -B build $PKGMK_LIBEBML \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_INSTALL_LIBDIR=lib \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
||||
-D BUILD_SHARED_LIBS=ON \
|
||||
-Wno-dev
|
||||
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
|
Loading…
x
Reference in New Issue
Block a user