summaryrefslogtreecommitdiff
path: root/libmatroska
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2020-11-07 16:30:25 +0000
committerTim Biermann <tbier@posteo.de>2020-11-07 16:30:25 +0000
commit434b3b9e737fd4c8f9e65ac5c03014090a7178b5 (patch)
tree2b429d05ac721c1ec1802b108d797fb10b974f09 /libmatroska
parentc89b510153363da45f7c287e5bd0e0664bf301ea (diff)
downloadcontrib-434b3b9e737fd4c8f9e65ac5c03014090a7178b5.tar.gz
contrib-434b3b9e737fd4c8f9e65ac5c03014090a7178b5.tar.xz
libmatroska: updated cmake syntax
Diffstat (limited to 'libmatroska')
-rw-r--r--libmatroska/.signature4
-rw-r--r--libmatroska/Pkgfile10
2 files changed, 9 insertions, 5 deletions
diff --git a/libmatroska/.signature b/libmatroska/.signature
index d8ff3f90a..abf9c2277 100644
--- a/libmatroska/.signature
+++ b/libmatroska/.signature
@@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF31GefLF+wYPN0FsQ0KUu5nWjXW8KPttlOr2/TQ9qYfBQ7+ZRqjFYl2EeiQALqRJww+EvpVukIv0R4qYTmaJPkgY=
-SHA256 (Pkgfile) = c1467be47bc12a632708ab3145886893dd37a9ed4087e9baeffb66db97b9becd
+RWSagIOpLGJF3y46K3769rbAtp08YpndAb6gCsEo5JGLWGKK2/xlea8KGsLWOGOOPRop/Ajx1ssF/iVKPha2/7X0qJ17ToOmmw4=
+SHA256 (Pkgfile) = 44128a3091c404a6b87d48ff466306b2be5d3d25ffb83d7f3dae1437914d6525
SHA256 (.footprint) = d3335d028ed596f2f5989ebd78e3346c3af69f3bfffeb61136ad9fc86d7c336e
SHA256 (libmatroska-1.6.2.tar.xz) = bc4479aa8422ab07643df6a1fa5a19e4bed4badfd41ca77e081628620d1e1990
diff --git a/libmatroska/Pkgfile b/libmatroska/Pkgfile
index 5904e1ce5..d7590bed4 100644
--- a/libmatroska/Pkgfile
+++ b/libmatroska/Pkgfile
@@ -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_LIBMATROSKA_OPTIONS=' -GNinja'
+ cmake -S$name-$version -Bbuild $PKGMK_LIBMATROSKA_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

Generated by cgit