50-libdvdnav.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/bin/bash
  2. SCRIPT_REPO="https://code.videolan.org/videolan/libdvdnav.git"
  3. SCRIPT_COMMIT="9831fe01488bd0e9d1e3521195da6940cd8415eb"
  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. )
  21. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  22. myconf+=(
  23. --host="$FFBUILD_TOOLCHAIN"
  24. )
  25. else
  26. echo "Unknown target"
  27. return -1
  28. fi
  29. ./configure "${myconf[@]}"
  30. make -j$(nproc)
  31. make install
  32. }
  33. ffbuild_configure() {
  34. echo --enable-libdvdnav
  35. }
  36. ffbuild_unconfigure() {
  37. [[ $ADDINS_STR == *4.4* ]] && return 0
  38. [[ $ADDINS_STR == *5.0* ]] && return 0
  39. [[ $ADDINS_STR == *5.1* ]] && return 0
  40. [[ $ADDINS_STR == *6.0* ]] && return 0
  41. [[ $ADDINS_STR == *6.1* ]] && return 0
  42. echo --disable-libdvdnav
  43. }