Advertisement
LouisDK

Untitled

Aug 23rd, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. if enabled libbluray_external; then
  2. if $(pkg-config --atleast-version="0.9.3" libbluray); then
  3. use_pkg_config libbluray libbluray libbluray/bluray.h bd_open
  4. else
  5. case $target_os in
  6. linux)
  7. # Some older supported linux versions don't have a
  8. # libbluray current enough to support MythTV. Allow
  9. # only those systems to reach the bottom of the
  10. # following case statement. This list should only
  11. # shrink over time.
  12. . /etc/os-release
  13. case $ID in
  14. centos)
  15. if test $VERSION_ID -gt 7; then
  16. die "ERROR: can not find libbluray."
  17. fi
  18. ;;
  19. ubuntu)
  20. case $VERSION_ID in
  21. 17*|18*|19*|2*)
  22. die "ERROR: can not find libbluray."
  23. ;;
  24. esac
  25. ;;
  26. debian)
  27. if test $VERSION_ID -gt 8; then
  28. die "ERROR: can not find libbluray."
  29. fi
  30. ;;
  31. *)
  32. die "ERROR: can not find libbluray."
  33. ;;
  34. esac
  35. disable libbluray_external
  36. ;;
  37. *)
  38. # FreeBSD provides libbluray 1.0.2
  39. # All others unknown.
  40. die "ERROR: can not find libbluray."
  41. ;;
  42. esac
  43. fi
  44. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement