40-libdvdread.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/bin/bash
  2. SCRIPT_REPO="https://code.videolan.org/videolan/libdvdread.git"
  3. SCRIPT_COMMIT="ba2227bb8619724c2bfadcc4d8f25d741a3398ac"
  4. ffbuild_enabled() {
  5. [[ $VARIANT == lgpl* ]] && return -1
  6. [[ $ADDINS_STR == *4.4* ]] && return -1
  7. [[ $ADDINS_STR == *5.0* ]] && return -1
  8. [[ $ADDINS_STR == *5.1* ]] && return -1
  9. [[ $ADDINS_STR == *6.0* ]] && return -1
  10. [[ $ADDINS_STR == *6.1* ]] && return -1
  11. return 0
  12. }
  13. ffbuild_dockerbuild() {
  14. autoreconf -i
  15. local myconf=(
  16. --prefix="$FFBUILD_PREFIX"
  17. --disable-shared
  18. --enable-static
  19. --with-pic
  20. --disable-apidoc
  21. --with-libdvdcss
  22. )
  23. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  24. myconf+=(
  25. --host="$FFBUILD_TOOLCHAIN"
  26. )
  27. else
  28. echo "Unknown target"
  29. return -1
  30. fi
  31. ./configure "${myconf[@]}"
  32. make -j$(nproc)
  33. make install
  34. }
  35. ffbuild_configure() {
  36. echo --enable-libdvdread
  37. }
  38. ffbuild_unconfigure() {
  39. [[ $ADDINS_STR == *4.4* ]] && return 0
  40. [[ $ADDINS_STR == *5.0* ]] && return 0
  41. [[ $ADDINS_STR == *5.1* ]] && return 0
  42. [[ $ADDINS_STR == *6.0* ]] && return 0
  43. [[ $ADDINS_STR == *6.1* ]] && return 0
  44. echo --disable-libdvdread
  45. }