Commit ebb35e01 authored by Rafaël Carré's avatar Rafaël Carré

contrib: dvdread: fix static linking of dvdcss on osx

parent cba2b87e
--- dvdread/configure.ac.orig 2011-11-23 00:23:45.017580484 -0500
+++ dvdread/configure.ac 2011-11-23 00:24:23.381770721 -0500
@@ -170,9 +170,10 @@
saved_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -L$dvdcss_path/lib"
AC_CHECK_LIB(dvdcss, dvdcss_interface_2,
- [ CSS_LIBS="-L$dvdcss_path/lib -R$dvdcss_path/lib -ldvdcss"
+ [ CSS_LIBS="-L$dvdcss_path/lib -R$dvdcss_path/lib -ldvdcss -Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
CSS_CFLAGS=-I$dvdcss_path/include ],
- AC_MSG_ERROR(You need libdvdcss.so.2 or later)
+ AC_MSG_ERROR(You need libdvdcss.so.2 or later),
+ [-Wl,-framework,CoreFoundation -Wl,-framework,IOKit]
)
CFLAGS=$saved_CFLAGS
dnl -w added to shutup GCC3.1's cpp warning about -I/usr/local
......@@ -18,6 +18,9 @@ $(TARBALLS)/libdvdread-$(LIBDVDREAD_VERSION).tar.bz2:
dvdread: libdvdread-$(LIBDVDREAD_VERSION).tar.bz2 .sum-dvdread
$(UNPACK)
$(APPLY) $(SRC)/dvdread/dvdread-css-static.patch
ifdef HAVE_MACOSX
$(APPLY) $(SRC)/dvdread/dvdread-css-static-osx.patch
endif
ifdef HAVE_WIN32
$(APPLY) $(SRC)/dvdread/dvdread-win32.patch
endif
......
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