contrib/libebur128/Pkgfile

23 lines
708 B
Plaintext
Raw Normal View History

# Description: A library that implements the EBU R 128 standard for loudness normalisation.
# URL: https://github.com/jiixyj/libebur128
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: cmake
name=libebur128
2021-02-14 16:13:54 +01:00
version=1.2.6
release=1
source=(https://github.com/jiixyj/libebur128/archive/v$version/$name-$version.tar.gz)
build() {
2020-11-08 12:42:17 +01:00
[[ -e /usr/bin/ninja ]] && PKGMK_LIBEBUR128+=' -G Ninja'
cmake -S $name-$version -B build $PKGMK_LIBEBUR128 \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
2020-12-07 00:56:38 +01:00
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2020-11-08 12:42:17 +01:00
-D BUILD_STATIC_LIBS=OFF \
-Wno-dev
2020-11-03 20:21:42 +01:00
cmake --build build
DESTDIR=$PKG cmake --install build
}