22 lines
690 B
Plaintext
22 lines
690 B
Plaintext
# Description: Fraunhofer Advanced Audio Coding, extracted from the Android Open Source Project
|
|
# URL: https://sourceforge.net/projects/opencore-amr/
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
|
|
|
name=fdk-aac
|
|
version=2.0.3
|
|
release=1
|
|
source=(https://downloads.sourceforge.net/project/opencore-amr/$name/$name-$version.tar.gz)
|
|
|
|
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
|
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
DESTDIR=$PKG ninja -C build install
|
|
}
|