50-libbluray.sh 975 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/bin/bash
  2. SCRIPT_REPO="https://code.videolan.org/videolan/libbluray.git"
  3. SCRIPT_COMMIT="bb5bc108ec695889855f06df338958004ff289ef"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerbuild() {
  8. ./bootstrap
  9. local myconf=(
  10. --prefix="$FFBUILD_PREFIX"
  11. --disable-shared
  12. --enable-static
  13. --with-pic
  14. --disable-doxygen-doc
  15. --disable-doxygen-dot
  16. --disable-doxygen-html
  17. --disable-doxygen-ps
  18. --disable-doxygen-pdf
  19. --disable-examples
  20. --disable-bdjava-jar
  21. )
  22. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  23. myconf+=(
  24. --host="$FFBUILD_TOOLCHAIN"
  25. )
  26. else
  27. echo "Unknown target"
  28. return -1
  29. fi
  30. export CPPFLAGS="${CPPFLAGS} -Ddec_init=libbr_dec_init"
  31. ./configure "${myconf[@]}"
  32. make -j$(nproc)
  33. make install
  34. }
  35. ffbuild_configure() {
  36. echo --enable-libbluray
  37. }
  38. ffbuild_unconfigure() {
  39. echo --disable-libbluray
  40. }