diff options
author | davidovski <david@davidovski.xyz> | 2023-02-02 14:10:02 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-02-02 14:10:02 +0000 |
commit | f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch) | |
tree | 76fe6267f8307e7630fc6f53ff99a9767ad40de0 /repo/libebml/libebml.xibuild | |
parent | 05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff) |
Work
Diffstat (limited to 'repo/libebml/libebml.xibuild')
-rw-r--r-- | repo/libebml/libebml.xibuild | 29 |
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 +} + |