0010-extras-.-ios-compilation-fix.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. From ddc3391e6423dbad343595f367ba0da6a5c641eb Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
  3. Date: Wed, 27 Feb 2013 20:58:35 +0100
  4. Subject: [PATCH 10/10] extras/.../ios: compilation fix
  5. ---
  6. configure.ac | 7 +++----
  7. extras/package/ios/build.sh | 2 +-
  8. modules/access/Modules.am | 2 +-
  9. 3 files changed, 5 insertions(+), 6 deletions(-)
  10. diff --git a/configure.ac b/configure.ac
  11. index b36390e..0b76b1e 100644
  12. --- a/configure.ac
  13. +++ b/configure.ac
  14. @@ -1885,13 +1885,12 @@ AC_ARG_ENABLE(screen,
  15. [disable screen capture (default enabled)])])
  16. if test "${enable_screen}" != "no"; then
  17. if test "${SYS}" = "darwin"; then
  18. - AC_CHECK_HEADERS(OpenGL/gl.h, [
  19. - AC_CHECK_HEADERS(ApplicationServices/ApplicationServices.h, [
  20. - VLC_ADD_PLUGIN([screen])
  21. - ])
  22. + AC_CHECK_HEADERS(ApplicationServices/ApplicationServices.h, [
  23. + VLC_ADD_PLUGIN([screen])
  24. ])
  25. fi
  26. fi
  27. +AM_CONDITIONAL(HAVE_MAC_SCREEN, [test "${SYS}" = "darwin" -a "x${enable_screen}" != "xno"])
  28. dnl
  29. dnl Real RTSP plugin
  30. diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh
  31. index d666ec6..0d4d7c7 100755
  32. --- a/extras/package/ios/build.sh
  33. +++ b/extras/package/ios/build.sh
  34. @@ -199,7 +199,6 @@ fi
  35. --disable-caca \
  36. --disable-gettext \
  37. --disable-mpcdec \
  38. - --disable-screen \
  39. --disable-upnp \
  40. --disable-gme \
  41. --disable-tremor \
  42. @@ -320,6 +319,7 @@ ${VLCROOT}/configure \
  43. --enable-speex \
  44. --enable-theora \
  45. --enable-flac \
  46. + --disable-screen \
  47. --disable-freetype \
  48. --disable-taglib \
  49. --disable-mmx > ${out} # MMX and SSE support requires llvm which is broken on Simulator
  50. diff --git a/modules/access/Modules.am b/modules/access/Modules.am
  51. index d4bfa25..bc9cfae 100644
  52. --- a/modules/access/Modules.am
  53. +++ b/modules/access/Modules.am
  54. @@ -180,7 +180,7 @@ libscreen_plugin_la_SOURCES += screen/win32.c
  55. libscreen_plugin_la_LIBADD += -lgdi32
  56. libvlc_LTLIBRARIES += libscreen_plugin.la
  57. endif
  58. -if HAVE_DARWIN
  59. +if HAVE_MAC_SCREEN
  60. libscreen_plugin_la_SOURCES += screen/mac.c
  61. libscreen_plugin_la_LDFLAGS = $(AM_LDFLAGS)
  62. libscreen_plugin_la_LDFLAGS += "-Wl,-framework,OpenGL,-framework,ApplicationServices"
  63. --
  64. 1.7.12.4 (Apple Git-37)