summaryrefslogtreecommitdiff
path: root/repo/libebml/libebml.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/libebml/libebml.xibuild')
-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
+}
+