From 9a26d3fdc7fca2df6f824b56034ab9a823e898d8 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 15 Jul 2022 00:52:21 +0100 Subject: added python deps for libvirt --- repo/libmatroska/libmatroska.xibuild | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 repo/libmatroska/libmatroska.xibuild (limited to 'repo/libmatroska/libmatroska.xibuild') 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 +} + -- cgit v1.2.1