2010-12-16 00:06:57 +11:00
|
|
|
# Description: An extensible open standard Audio/Video container format library.
|
2017-10-12 21:49:50 +11:00
|
|
|
# URL: https://github.com/Matroska-Org/libmatroska
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2008-02-13 15:09:14 -05:00
|
|
|
# Depends on: libebml
|
|
|
|
|
|
|
|
name=libmatroska
|
2021-02-19 19:36:21 +11:00
|
|
|
version=1.6.3
|
2008-02-13 15:09:14 -05:00
|
|
|
release=1
|
2017-10-12 21:49:50 +11:00
|
|
|
source=(https://dl.matroska.org/downloads/$name/$name-$version.tar.xz)
|
2008-02-13 15:09:14 -05:00
|
|
|
|
2010-12-15 00:17:45 +11:00
|
|
|
build() {
|
2020-11-08 11:44:14 +00:00
|
|
|
[[ -e /usr/bin/ninja ]] && PKGMK_LIBMATROSKA+=' -G Ninja'
|
|
|
|
cmake -S $name-$version -B build $PKGMK_LIBMATROSKA \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:57:05 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 11:44:14 +00:00
|
|
|
-D BUILD_SHARED_LIBS=ON \
|
|
|
|
-Wno-dev
|
2015-04-22 23:59:56 +10:00
|
|
|
|
2020-07-04 19:54:18 +10:00
|
|
|
cmake --build build
|
2020-07-08 13:01:36 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2008-02-13 15:09:14 -05:00
|
|
|
}
|