50-libtheora.sh 822 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/xiph/theora.git"
  3. SCRIPT_COMMIT="7180717276af1ebc7da15c83162d6c5d6203aabf"
  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. --with-pic
  14. --disable-examples
  15. --disable-oggtest
  16. --disable-vorbistest
  17. --disable-spec
  18. --disable-doc
  19. )
  20. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  21. myconf+=(
  22. --host="$FFBUILD_TOOLCHAIN"
  23. )
  24. else
  25. echo "Unknown target"
  26. return -1
  27. fi
  28. ./configure "${myconf[@]}"
  29. make -j$(nproc)
  30. make install
  31. }
  32. ffbuild_configure() {
  33. echo --enable-libtheora
  34. }
  35. ffbuild_unconfigure() {
  36. echo --disable-libtheora
  37. }