50-libopus.sh 698 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/xiph/opus.git"
  3. SCRIPT_COMMIT="7db26934e4156597cb0586bb4d2e44dccdde1a59"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerdl() {
  8. default_dl .
  9. echo "./autogen.sh"
  10. }
  11. ffbuild_dockerbuild() {
  12. local myconf=(
  13. --prefix="$FFBUILD_PREFIX"
  14. --host="$FFBUILD_TOOLCHAIN"
  15. --disable-shared
  16. --enable-static
  17. --disable-extra-programs
  18. )
  19. if [[ $TARGET == winarm* ]]; then
  20. myconf+=(
  21. --disable-rtcd
  22. )
  23. fi
  24. ./configure "${myconf[@]}"
  25. make -j$(nproc)
  26. make install
  27. }
  28. ffbuild_configure() {
  29. echo --enable-libopus
  30. }
  31. ffbuild_unconfigure() {
  32. echo --disable-libopus
  33. }