2023-03-10 22:01:26 -05:00
|
|
|
# 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/
|
2023-03-10 22:01:26 -05:00
|
|
|
# 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
|
2023-03-10 22:01:26 -05:00
|
|
|
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() {
|
2023-03-10 22:01:26 -05:00
|
|
|
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
|
|
|
|
2023-03-10 22:01:26 -05:00
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG ninja -C build install
|
2016-12-11 16:08:35 +11:00
|
|
|
}
|