45-libvorbis.sh 702 B

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