Commit cbed01df authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* VLC now requires libmatroska 0.7.7 because from then the libs are pic enabled.

  (no longer use libmatroska_pic ebml_pic)
  Patch by Diego Petteno, +additions by me.
parent 86247ba1
...@@ -172,7 +172,7 @@ case "${host_os}" in ...@@ -172,7 +172,7 @@ case "${host_os}" in
CXXFLAGS_save="${CXXFLAGS_save} -no-cpp-precomp -D_INTL_REDIRECT_MACROS"; CXXFLAGS="${CXXFLAGS_save}" CXXFLAGS_save="${CXXFLAGS_save} -no-cpp-precomp -D_INTL_REDIRECT_MACROS"; CXXFLAGS="${CXXFLAGS_save}"
OBJCFLAGS_save="${OBJCFLAGS_save} -no-cpp-precomp -D_INTL_REDIRECT_MACROS"; OBJCFLAGS="${OBJCFLAGS_save}" OBJCFLAGS_save="${OBJCFLAGS_save} -no-cpp-precomp -D_INTL_REDIRECT_MACROS"; OBJCFLAGS="${OBJCFLAGS_save}"
VLC_ADD_LDFLAGS([vlc ffmpeg ffmpegaltivec],[-all_load]) VLC_ADD_LDFLAGS([vlc ffmpeg ffmpegaltivec],[-all_load])
VLC_ADD_LDFLAGS([mp4], [-framework IOKit -framework CoreFoundation]) VLC_ADD_LDFLAGS([mkv mp4], [-framework IOKit -framework CoreFoundation])
VLC_ADD_CFLAGS([libvlc],[-x objective-c]) VLC_ADD_CFLAGS([libvlc],[-x objective-c])
VLC_ADD_CFLAGS([vlc],[-x objective-c]) VLC_ADD_CFLAGS([vlc],[-x objective-c])
VLC_ADD_LDFLAGS([vlc],[-Wl,-m -Wl,-multiply_defined -Wl,suppress]) VLC_ADD_LDFLAGS([vlc],[-Wl,-m -Wl,-multiply_defined -Wl,suppress])
...@@ -183,6 +183,7 @@ case "${host_os}" in ...@@ -183,6 +183,7 @@ case "${host_os}" in
CXXFLAGS_save="${CXXFLAGS_save} -D_INTL_REDIRECT_MACROS"; CXXFLAGS="${CXXFLAGS_save}" CXXFLAGS_save="${CXXFLAGS_save} -D_INTL_REDIRECT_MACROS"; CXXFLAGS="${CXXFLAGS_save}"
OBJCFLAGS_save="${OBJCFLAGS_save} -D_INTL_REDIRECT_MACROS"; OBJCFLAGS="${OBJCFLAGS_save}" OBJCFLAGS_save="${OBJCFLAGS_save} -D_INTL_REDIRECT_MACROS"; OBJCFLAGS="${OBJCFLAGS_save}"
VLC_ADD_LDFLAGS([mp4], [-framework IOKit -framework CoreFoundation]) VLC_ADD_LDFLAGS([mp4], [-framework IOKit -framework CoreFoundation])
VLC_ADD_LDFLAGS([mkv mp4], [-framework IOKit -framework CoreFoundation])
VLC_ADD_CFLAGS([libvlc],[-x objective-c]) VLC_ADD_CFLAGS([libvlc],[-x objective-c])
VLC_ADD_CFLAGS([vlc],[-x objective-c]) VLC_ADD_CFLAGS([vlc],[-x objective-c])
;; ;;
...@@ -2394,7 +2395,7 @@ if test "${enable_mkv}" != "no" -a "${CXX}" != ""; then ...@@ -2394,7 +2395,7 @@ if test "${enable_mkv}" != "no" -a "${CXX}" != ""; then
#endif], #endif],
[AC_MSG_RESULT([yes]) [AC_MSG_RESULT([yes])
AC_CHECK_HEADERS(matroska/KaxVersion.h, [ AC_CHECK_HEADERS(matroska/KaxVersion.h, [
AC_MSG_CHECKING(for libmatroska version >= 0.7.5) AC_MSG_CHECKING(for libmatroska version >= 0.7.7)
AC_EGREP_CPP(yes, AC_EGREP_CPP(yes,
[#include <matroska/KaxVersion.h> [#include <matroska/KaxVersion.h>
#ifdef LIBMATROSKA_VERSION #ifdef LIBMATROSKA_VERSION
...@@ -2408,17 +2409,10 @@ if test "${enable_mkv}" != "no" -a "${CXX}" != ""; then ...@@ -2408,17 +2409,10 @@ if test "${enable_mkv}" != "no" -a "${CXX}" != ""; then
if test "${SYS}" = "darwin"; then if test "${SYS}" = "darwin"; then
VLC_ADD_CXXFLAGS([mkv],[-O1]) VLC_ADD_CXXFLAGS([mkv],[-O1])
fi fi
AC_CHECK_LIB(ebml_pic, main, [
# We have ebml_pic, that's good, we can build an mkv.so plugin !
VLC_ADD_PLUGINS([mkv])
VLC_ADD_LDFLAGS([mkv],[-lmatroska_pic -lebml_pic])
], [
AC_CHECK_LIB(ebml, main, [ AC_CHECK_LIB(ebml, main, [
# We only have libebml, make mkv.a a builtin VLC_ADD_PLUGINS([mkv])
VLC_ADD_BUILTINS([mkv])
VLC_ADD_LDFLAGS([mkv],[-lmatroska -lebml]) VLC_ADD_LDFLAGS([mkv],[-lmatroska -lebml])
]) ])
])
], ],
[AC_MSG_RESULT([no]) [AC_MSG_RESULT([no])
AC_MSG_ERROR([Your libmatroska is too old: you may get a more recent one from http://dl.matroska.org/downloads/libmatroska/. Alternatively you can use --disable-mkv to disable the matroska plugin.]) AC_MSG_ERROR([Your libmatroska is too old: you may get a more recent one from http://dl.matroska.org/downloads/libmatroska/. Alternatively you can use --disable-mkv to disable the matroska plugin.])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment