2021-06-20 20:15:10 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
FDK_REPO="https://github.com/mstorsjo/fdk-aac.git"
|
2021-08-22 21:54:38 +00:00
|
|
|
FDK_COMMIT="7f328b93ee2aa8bb4e94613b6ed218e7525d8dc0"
|
2021-06-20 20:15:10 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
[[ $VARIANT == nonfree* ]] || return -1
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
|
|
|
git-mini-clone "$FDK_REPO" "$FDK_COMMIT" fdk
|
|
|
|
cd fdk
|
|
|
|
|
|
|
|
./autogen.sh
|
|
|
|
|
|
|
|
local myconf=(
|
|
|
|
--prefix="$FFBUILD_PREFIX"
|
|
|
|
--disable-shared
|
|
|
|
--enable-static
|
|
|
|
--with-pic
|
|
|
|
--disable-example
|
|
|
|
)
|
|
|
|
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
|
|
myconf+=(
|
|
|
|
--host="$FFBUILD_TOOLCHAIN"
|
|
|
|
)
|
|
|
|
else
|
|
|
|
echo "Unknown target"
|
|
|
|
return -1
|
|
|
|
fi
|
|
|
|
|
|
|
|
./configure "${myconf[@]}"
|
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-libfdk-aac
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-libfdk-aac
|
|
|
|
}
|