12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #!/bin/bash
- SCRIPT_REPO="https://github.com/mstorsjo/fdk-aac.git"
- SCRIPT_COMMIT="716f4394641d53f0d79c9ddac3fa93b03a49f278"
- ffbuild_enabled() {
- [[ $VARIANT == nonfree* ]] || return -1
- return 0
- }
- ffbuild_dockerbuild() {
- ./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
- }
|