blob: 8b1aedfa2c94603353592dea44cc36bd7f821277 (
plain)
1 # Description: An extensible open standard Audio/Video container format library.
2 # URL: https://github.com/Matroska-Org/libmatroska
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: libebml
5
6 name=libmatroska
7 version=1.6.2
8 release=1
9 source=(https://dl.matroska.org/downloads/$name/$name-$version.tar.xz)
10
11 build() {
12 [[ -e /usr/bin/ninja ]] && PKGMK_LIBMATROSKA+=' -G Ninja'
13 cmake -S $name-$version -B build $PKGMK_LIBMATROSKA \
14 -D CMAKE_INSTALL_PREFIX=/usr \
15 -D CMAKE_INSTALL_LIBDIR=lib \
16 -D CMAKE_BUILD_TYPE=Release \
17 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
18 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
19 -D BUILD_SHARED_LIBS=ON \
20 -Wno-dev
21
22 cmake --build build
23 DESTDIR=$PKG cmake --install build
24 }
|