fdk-aac: adopted; new build system cmake/ninja

This commit is contained in:
John McQuah 2023-03-10 22:01:26 -05:00
parent 3a724539fb
commit 754ae7cefe
3 changed files with 22 additions and 14 deletions

View File

@ -8,9 +8,13 @@ drwxr-xr-x root/root usr/include/fdk-aac/
-rw-r--r-- root/root usr/include/fdk-aac/machine_type.h
-rw-r--r-- root/root usr/include/fdk-aac/syslib_channelMapDescr.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libfdk-aac.a
-rwxr-xr-x root/root usr/lib/libfdk-aac.la
lrwxrwxrwx root/root usr/lib/libfdk-aac.so -> libfdk-aac.so.2.0.2
drwxr-xr-x root/root usr/lib/cmake/
drwxr-xr-x root/root usr/lib/cmake/fdk-aac/
-rw-r--r-- root/root usr/lib/cmake/fdk-aac/fdk-aac-config-version.cmake
-rw-r--r-- root/root usr/lib/cmake/fdk-aac/fdk-aac-config.cmake
-rw-r--r-- root/root usr/lib/cmake/fdk-aac/fdk-aac-targets-release.cmake
-rw-r--r-- root/root usr/lib/cmake/fdk-aac/fdk-aac-targets.cmake
lrwxrwxrwx root/root usr/lib/libfdk-aac.so -> libfdk-aac.so.2
lrwxrwxrwx root/root usr/lib/libfdk-aac.so.2 -> libfdk-aac.so.2.0.2
-rwxr-xr-x root/root usr/lib/libfdk-aac.so.2.0.2
drwxr-xr-x root/root usr/lib/pkgconfig/

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF35v557RxOT4DARyJCGxL3r/ges3lcC+jkhOhsV+Mb9bVtTumBa7LWabFPGTpyu2bs3fyV7VPystlyP4oxQoRjAg=
SHA256 (Pkgfile) = 1df12504d319bd7d32637e19a2e3597899972065a7e065d181390c04f992bf25
SHA256 (.footprint) = de4c0f8753ad2e91fa3667519ae0c91d9bfed872ae4d7975c31e9c686385e3f9
RWSagIOpLGJF352o7SE4XpB29+MXOZlW+3aaYt2W9cFRbRnGsGmUUf4Jh7gDNff0MST9Re4/yw7fNMeHWtkHkjMsqUTB+ikanQY=
SHA256 (Pkgfile) = d84eebfc0d31b1abe057e5075eeced728531ce7f666dd8c713054aa9a5acf02d
SHA256 (.footprint) = 1059395308429c48ff28ca27f6a3ad41788b14aec1bcfdda1e997ec39695c672
SHA256 (fdk-aac-2.0.2.tar.gz) = c9e8630cf9d433f3cead74906a1520d2223f89bcd3fa9254861017440b8eb22f

View File

@ -1,17 +1,21 @@
# Description: Library of OpenCORE Framework implementation of Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.
# Description: Fraunhofer Advanced Audio Coding, extracted from the Android Open Source Project
# URL: https://sourceforge.net/projects/opencore-amr/
# Maintainer: Danny Rawlins, crux at romster dot me
# Maintainer: John McQuah, jmcquah at disroot dot org
name=fdk-aac
version=2.0.2
release=1
release=2
source=(https://downloads.sourceforge.net/project/opencore-amr/$name/$name-$version.tar.gz)
build() {
cd $name-$version
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
./configure --prefix=/usr
make
make DESTDIR=$PKG install
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
}