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

Reenable dvdcss which was disabled accidently in [16806]. Fix the dvdnav patch...

Reenable dvdcss which was disabled accidently in [16806]. Fix the dvdnav patch to make dlopen configure check work
parent a8a5ea4c
...@@ -1027,11 +1027,11 @@ libdvdnav: libdvdnav-$(LIBDVDNAV_VERSION).tar.bz2 ...@@ -1027,11 +1027,11 @@ libdvdnav: libdvdnav-$(LIBDVDNAV_VERSION).tar.bz2
patch -p 0 < Patches/libdvdnav-mactel.patch patch -p 0 < Patches/libdvdnav-mactel.patch
(cd $@; ./autogen.sh noconfig) (cd $@; ./autogen.sh noconfig)
.dvdnav: libdvdnav .dvdnav: libdvdnav .dvdcss
ifdef HAVE_WIN32 ifdef HAVE_WIN32
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --enable-static --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -Dssize_t=long" && make && make install) (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --enable-static --prefix=$(PREFIX) --with-libdvdcss=$(PREFIX) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -Dssize_t=long" && make && make install)
else else
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --enable-static --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -Dlseek64=lseek -Doff64_t=off_t" && make && make install) (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --enable-static --prefix=$(PREFIX) --with-libdvdcss=$(PREFIX) CFLAGS="$(CFLAGS) -Dlseek64=lseek -Doff64_t=off_t" && make && make install)
endif endif
$(INSTALL_NAME) $(INSTALL_NAME)
touch $@ touch $@
......
...@@ -389,7 +389,7 @@ diff -ur libdvdnav/src/vm/vm.c libdvdnav.new/src/vm/vm.c ...@@ -389,7 +389,7 @@ diff -ur libdvdnav/src/vm/vm.c libdvdnav.new/src/vm/vm.c
+if test x"$link_dvdcss" != xyes; then +if test x"$link_dvdcss" != xyes; then
+dnl dlopen libdvdcss +dnl dlopen libdvdcss
+ AC_CHECK_FUNC( dlopen, + AC_CHECK_FUNC( dlopen,
+ [DL_LIBS="" ]. + [DL_LIBS="" ],
+ AC_CHECK_LIB( dl, dlopen, + AC_CHECK_LIB( dl, dlopen,
+ [DL_LIBS=-ld ], + [DL_LIBS=-ld ],
+ AC_MSG_ERROR(You need libdl (dlopen)) + AC_MSG_ERROR(You need libdl (dlopen))
......
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