mirror of
https://github.com/mpv-player/mpv
synced 2025-03-08 15:18:00 +00:00
Allow disabling internal libdvdcss.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20821 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
33b60f66f2
commit
66e1b5c8ed
18
configure
vendored
18
configure
vendored
@ -241,6 +241,7 @@ Optional features:
|
||||
--disable-dvdnav disable libdvdnav [autodetect]
|
||||
--disable-dvdread disable libdvdread [autodetect]
|
||||
--disable-dvdread-internal disable internal libdvdread [autodetect]
|
||||
--disable-libdvdcss-internal disable internal libdvdcss [autodetect]
|
||||
--disable-cdparanoia disable cdparanoia [autodetect]
|
||||
--disable-bitmap-font disable bitmap font support [enable]
|
||||
--disable-freetype disable FreeType 2 font rendering [autodetect]
|
||||
@ -1626,6 +1627,7 @@ _dvdnav=auto
|
||||
_dvdnavconfig=dvdnav-config
|
||||
_dvdread=auto
|
||||
_dvdread_internal=auto
|
||||
_libdvdcss_internal=auto
|
||||
_xanim=auto
|
||||
_real=auto
|
||||
_live=auto
|
||||
@ -1860,6 +1862,8 @@ for ac_option do
|
||||
--disable-dvdread) _dvdread=no ;;
|
||||
--enable-dvdread-internal) _dvdread_internal=yes ;;
|
||||
--disable-dvdread-internal) _dvdread_internal=no ;;
|
||||
--enable-libdvdcss-internal) _libdvdcss_internal=yes ;;
|
||||
--disable-libdvdcss-internal) _libdvdcss_internal=no ;;
|
||||
--enable-dvdnav) _dvdnav=yes ;;
|
||||
--disable-dvdnav) _dvdnav=no ;;
|
||||
--enable-xanim) _xanim=yes ;;
|
||||
@ -5197,6 +5201,19 @@ fi
|
||||
echores "$_dvdread"
|
||||
|
||||
|
||||
echocheck "internal libdvdcss"
|
||||
if test "$_libdvdcss_internal" = auto ; then
|
||||
_libdvdcss_internal=no
|
||||
test "$_dvdread_internal" = yes && _libdvdcss_internal=yes
|
||||
fi
|
||||
if test "$_libdvdcss_internal" = yes ; then
|
||||
_inputmodules="libdvdcss $_inputmodules"
|
||||
else
|
||||
_noinputmodules="libdvdcss $_noinputmodules"
|
||||
fi
|
||||
echores "$_libdvdcss_internal"
|
||||
|
||||
|
||||
echocheck "cdparanoia"
|
||||
if test "$_cdparanoia" = auto ; then
|
||||
cat > $TMPC <<EOF
|
||||
@ -7426,6 +7443,7 @@ PVR = $_pvr
|
||||
VCD = $_vcd
|
||||
DVDREAD = $_dvdread
|
||||
DVDREAD_INTERNAL = $_dvdread_internal
|
||||
DVDCSS_INTERNAL = $_libdvdcss_internal
|
||||
DVDNAV = $_dvdnav
|
||||
WIN32DLL = $_win32
|
||||
W32_DEP = $_dep_win32
|
||||
|
@ -18,9 +18,12 @@ LIB=libdvdread
|
||||
|
||||
.SUFFIXES: .c .o
|
||||
|
||||
CFLAGS= -I../libdvdcss -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE \
|
||||
-DHAVE_DVDCSS_DVDCSS_H -DSTDC_HEADERS -DHAVE_LIMITS_H \
|
||||
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
||||
CFLAGS= -I.. $(OPTFLAGS) -D__USE_UNIX98 -D_GNU_SOURCE -DSTDC_HEADERS \
|
||||
-DHAVE_LIMITS_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
||||
|
||||
ifeq ($(DVDCSS_INTERNAL),yes)
|
||||
CFLAGS += -I../libdvdcss -DHAVE_DVDCSS_DVDCSS_H
|
||||
endif
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
Loading…
Reference in New Issue
Block a user