aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2022-01-12 02:58:46 +0100
committerTimo Teräs <timo.teras@iki.fi>2022-02-14 17:51:00 +0000
commitd45e1a8533d2e6af637cc5b30ece216fb12c0a93 (patch)
tree1cfd00c9c8d04f1a8962b0fc7a3d8c6f8e5e3391
parent4a65067b5751741cd41e2a31a77441c2ab8feeb9 (diff)
downloadaports-d45e1a8533d2e6af637cc5b30ece216fb12c0a93.tar.gz
aports-d45e1a8533d2e6af637cc5b30ece216fb12c0a93.tar.bz2
aports-d45e1a8533d2e6af637cc5b30ece216fb12c0a93.tar.xz
community/libmatroska: build with ninja
-rw-r--r--community/libmatroska/APKBUILD16
1 files changed, 9 insertions, 7 deletions
diff --git a/community/libmatroska/APKBUILD b/community/libmatroska/APKBUILD
index 1c1fe013cf..9853a12287 100644
--- a/community/libmatroska/APKBUILD
+++ b/community/libmatroska/APKBUILD
@@ -2,13 +2,13 @@
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libmatroska
pkgver=1.6.3
-pkgrel=0
+pkgrel=1
pkgdesc="Extensible multimedia container format based on EBML"
-url="https://www.matroska.org"
+url="https://www.matroska.org/"
arch="all"
options="!check" # Tests don't build; 'make check' target disabled by upstream
license="LGPL-2.1-or-later"
-makedepends="cmake libebml-dev>=1.4.2"
+makedepends="cmake libebml-dev>=1.4.2 samurai"
subpackages="$pkgname-dev"
source="https://dl.matroska.org/downloads/libmatroska/libmatroska-$pkgver.tar.xz"
@@ -16,7 +16,7 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
- cmake \
+ cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
@@ -24,11 +24,13 @@ build() {
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
$CMAKE_CROSSOPTS
- make
+ cmake --build build
}
package() {
- make install DESTDIR="$pkgdir"
+ DESTDIR="$pkgdir" cmake --build build --target install
}
-sha512sums="271557c4f8836411782991c069a16cd49d7f9b6f209d1f96f6694f0e8bdfdcda3bbf76512c328555252a8c3e45c5adfcfab1e738304bb2ea85786a6f45af3f41 libmatroska-1.6.3.tar.xz"
+sha512sums="
+271557c4f8836411782991c069a16cd49d7f9b6f209d1f96f6694f0e8bdfdcda3bbf76512c328555252a8c3e45c5adfcfab1e738304bb2ea85786a6f45af3f41 libmatroska-1.6.3.tar.xz
+"