forked from ports/contrib
libmatroska: updated cmake syntax
This commit is contained in:
parent
886e53038f
commit
71e80e517f
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3y46K3769rbAtp08YpndAb6gCsEo5JGLWGKK2/xlea8KGsLWOGOOPRop/Ajx1ssF/iVKPha2/7X0qJ17ToOmmw4=
|
||||
SHA256 (Pkgfile) = 44128a3091c404a6b87d48ff466306b2be5d3d25ffb83d7f3dae1437914d6525
|
||||
RWSagIOpLGJF3x6MQkR+p+D7qsk2K00q6kazQzgReugSu1+X+yqvzWnOe5ub86y8Jdwo1lbXYuAaTv+lK3IRTausl/Ckbhf65Qk=
|
||||
SHA256 (Pkgfile) = 90309e5ba6ea2584c535d8dd45af2958a3d5536a26af301e750d0398674bb803
|
||||
SHA256 (.footprint) = d3335d028ed596f2f5989ebd78e3346c3af69f3bfffeb61136ad9fc86d7c336e
|
||||
SHA256 (libmatroska-1.6.2.tar.xz) = bc4479aa8422ab07643df6a1fa5a19e4bed4badfd41ca77e081628620d1e1990
|
||||
|
@ -9,15 +9,15 @@ release=1
|
||||
source=(https://dl.matroska.org/downloads/$name/$name-$version.tar.xz)
|
||||
|
||||
build() {
|
||||
[[ -e /usr/bin/ninja ]] && PKGMK_LIBMATROSKA_OPTIONS=' -GNinja'
|
||||
cmake -S$name-$version -Bbuild $PKGMK_LIBMATROSKA_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_LIBMATROSKA+=' -G Ninja'
|
||||
cmake -S $name-$version -B build $PKGMK_LIBMATROSKA \
|
||||
-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