summaryrefslogtreecommitdiff
path: root/repo/libebml
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
commitf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch)
tree76fe6267f8307e7630fc6f53ff99a9767ad40de0 /repo/libebml
parent05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff)
Work
Diffstat (limited to 'repo/libebml')
-rw-r--r--repo/libebml/libebml.xibuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/repo/libebml/libebml.xibuild b/repo/libebml/libebml.xibuild
new file mode 100644
index 0000000..b2df189
--- /dev/null
+++ b/repo/libebml/libebml.xibuild
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+NAME="libebml"
+DESC="C++ library to parse Extensible Binary Meta-Language files"
+
+MAKEDEPS="cmake ninja"
+
+PKG_VER=1.4.3
+SOURCE="http://dl.matroska.org/downloads/libebml/libebml-$PKG_VER.tar.xz"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+
+ CXXFLAGS="$CXXFLAGS -flto=auto" \
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=None \
+ $CMAKE_CROSSOPTS
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
+