50-fdk-aac.sh 772 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/mstorsjo/fdk-aac.git"
  3. SCRIPT_COMMIT="716f4394641d53f0d79c9ddac3fa93b03a49f278"
  4. ffbuild_enabled() {
  5. [[ $VARIANT == nonfree* ]] || return -1
  6. return 0
  7. }
  8. ffbuild_dockerbuild() {
  9. ./autogen.sh
  10. local myconf=(
  11. --prefix="$FFBUILD_PREFIX"
  12. --disable-shared
  13. --enable-static
  14. --with-pic
  15. --disable-example
  16. )
  17. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  18. myconf+=(
  19. --host="$FFBUILD_TOOLCHAIN"
  20. )
  21. else
  22. echo "Unknown target"
  23. return -1
  24. fi
  25. ./configure "${myconf[@]}"
  26. make -j$(nproc)
  27. make install
  28. }
  29. ffbuild_configure() {
  30. echo --enable-libfdk-aac
  31. }
  32. ffbuild_unconfigure() {
  33. echo --disable-libfdk-aac
  34. }