diff options
Diffstat (limited to 'repo/libmatroska')
-rw-r--r-- | repo/libmatroska/libmatroska.xibuild | 29 |
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 +} + |