1
0
forked from ports/contrib

25 lines
745 B
Plaintext
Raw Normal View History

2020-11-07 16:29:54 +00:00
# Description: A library for reading and writing files with the Extensible Binary Meta Language, a binary pendant to XML.
2017-10-12 21:47:31 +11:00
# URL: https://github.com/Matroska-Org/libebml
2014-11-10 23:28:07 +11:00
# Maintainer: Danny Rawlins, crux at romster dot me
2020-11-07 16:29:54 +00:00
# Depends on: cmake
2008-02-13 15:08:48 -05:00
name=libebml
2021-02-19 19:35:58 +11:00
version=1.4.2
2008-02-13 15:08:48 -05:00
release=1
2017-10-12 21:47:31 +11:00
source=(https://dl.matroska.org/downloads/$name/$name-$version.tar.xz)
2008-02-13 15:08:48 -05:00
2010-12-15 00:12:38 +11:00
build() {
2020-11-08 11:41:27 +00:00
[[ -e /usr/bin/ninja ]] && PKGMK_LIBEBML+=' -G Ninja'
cmake -S $name-$version -B build $PKGMK_LIBEBML \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
2020-12-06 23:56:29 +00:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2020-11-08 11:41:27 +00:00
-D BUILD_SHARED_LIBS=ON \
-Wno-dev
2015-04-22 23:59:00 +10:00
2020-07-04 19:54:03 +10:00
cmake --build build
2020-07-08 13:01:36 +00:00
DESTDIR=$PKG cmake --install build
2008-02-13 15:08:48 -05:00
}