patch-configure_in 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --- xbmc-13.0rc1.orig/configure.in 2014-04-30 15:45:07.000000000 +0200
  2. +++ xbmc-13.0rc1/configure.in 2014-05-03 11:22:45.000000000 +0200
  3. @@ -600,7 +600,12 @@ PKG_PROG_PKG_CONFIG
  4. MAKE="${MAKE:-make}"
  5. OBJDUMP="${OBJDUMP:-objdump}"
  6. -use_external_ffmpeg=no
  7. +if test "x$use_external_libraries" != no;then
  8. + use_external_ffmpeg=yes
  9. +else
  10. + use_external_ffmpeg=no
  11. +fi
  12. +
  13. use_static_ffmpeg=no
  14. # ffmpeg needs the output of uname -s (e.x. linux, darwin) for the target_os
  15. @@ -626,21 +631,21 @@ case $host in
  16. use_x11=no
  17. build_shared_lib=yes
  18. ;;
  19. - i*86*-linux-gnu*|i*86*-*-linux-uclibc*)
  20. + i*86*-linux-*)
  21. ARCH="i486-linux"
  22. if test "$use_cpu" = "no" -a "$cross_compiling" = "yes"; then
  23. use_arch="x86"
  24. use_cpu="i686"
  25. fi
  26. - use_static_ffmpeg=yes
  27. + use_static_ffmpeg=no
  28. ;;
  29. - x86_64-*-linux-gnu*|x86_64-*-linux-uclibc*)
  30. + x86_64-*-linux-*)
  31. ARCH="x86_64-linux"
  32. if test "$use_cpu" = "no" -a "$cross_compiling" = "yes"; then
  33. use_arch="x86_64"
  34. use_cpu="x86_64"
  35. fi
  36. - use_static_ffmpeg=yes
  37. + use_static_ffmpeg=no
  38. ;;
  39. i386-*-freebsd*)
  40. ARCH="x86-freebsd"
  41. @@ -686,7 +691,7 @@ case $host in
  42. powerpc64-*-linux-gnu*|powerpc64-*-linux-uclibc*)
  43. ARCH="powerpc64-linux"
  44. ;;
  45. - arm*-*-linux-gnu*|arm*-*-linux-uclibc*)
  46. + arm*-*-linux-*)
  47. ARCH="arm"
  48. use_arch="arm"
  49. ffmpeg_target_os=linux
  50. @@ -696,7 +701,7 @@ case $host in
  51. use_sdl=no
  52. use_x11=no
  53. use_wayland=no
  54. - use_static_ffmpeg=yes
  55. + use_static_ffmpeg=no
  56. ;;
  57. arm*-*linux-android*)
  58. target_platform=target_android
  59. @@ -1047,7 +1052,7 @@ if test "$use_gles" = "yes"; then
  60. AC_DEFINE([HAVE_LIBEGL],[1],["Define to 1 if you have the `EGL' library (-lEGL)."])
  61. AC_DEFINE([HAVE_LIBGLESV2],[1],["Define to 1 if you have the `GLESv2' library (-lGLESv2)."])
  62. AC_MSG_RESULT(== WARNING: OpenGLES support is assumed.)
  63. - LIBS="$LIBS -lEGL -lGLESv2 -lbcm_host -lvcos -lvchiq_arm"
  64. + LIBS="$LIBS -lEGL -lGLESv2 -lbcm_host -lvcos -lvchiq_arm -lkhrn_static -lpthread -lm"
  65. else
  66. AC_CHECK_LIB([EGL], [main],, AC_MSG_ERROR($missing_library))
  67. AC_CHECK_LIB([GLESv2],[main],, AC_MSG_ERROR($missing_library))