1
0
forked from ports/contrib
contrib/fdk-aac/Pkgfile

22 lines
645 B
Plaintext
Raw Normal View History

# Description: Fraunhofer Advanced Audio Coding, extracted from the Android Open Source Project
2016-12-11 16:08:35 +11:00
# URL: https://sourceforge.net/projects/opencore-amr/
# Maintainer: John McQuah, jmcquah at disroot dot org
2016-12-11 16:08:35 +11:00
name=fdk-aac
2021-04-30 19:38:11 +10:00
version=2.0.2
release=2
2017-03-19 18:57:52 +11:00
source=(https://downloads.sourceforge.net/project/opencore-amr/$name/$name-$version.tar.gz)
2016-12-11 16:08:35 +11:00
build() {
cmake -S $name-$version -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-Wno-dev
2016-12-11 16:08:35 +11:00
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
2016-12-11 16:08:35 +11:00
}