summaryrefslogtreecommitdiff
path: root/repo/libmatroska
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-07-15 00:52:21 +0100
committerdavidovski <david@davidovski.xyz>2022-07-15 00:52:21 +0100
commit9a26d3fdc7fca2df6f824b56034ab9a823e898d8 (patch)
tree278bbf05c72536a30e701eebbd3546ba137543e7 /repo/libmatroska
parentf6332a43c35387c4a2dea1746be5fd092890ae0e (diff)
added python deps for libvirt
Diffstat (limited to 'repo/libmatroska')
-rw-r--r--repo/libmatroska/libmatroska.xibuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/repo/libmatroska/libmatroska.xibuild b/repo/libmatroska/libmatroska.xibuild
new file mode 100644
index 0000000..330ebac
--- /dev/null
+++ b/repo/libmatroska/libmatroska.xibuild
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+NAME="libmatroska"
+DESC="Extensible multimedia container format based on EBML"
+
+MAKEDEPS="cmake libebml ninja"
+
+PKG_VER=1.6.3
+SOURCE="https://dl.matroska.org/downloads/libmatroska/libmatroska-$PKG_VER.tar.xz"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ $CMAKE_CROSSOPTS
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --build build --target install
+}
+