mirror of
https://github.com/mpv-player/mpv
synced 2025-01-12 01:49:33 +00:00
add libmpdvdkit lib
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5778 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
22e2f50044
commit
e1a3e103b8
8
Makefile
8
Makefile
@ -51,7 +51,7 @@ MISC_LIBS += -Llibdha -ldha -Lvidix -lvidix
|
|||||||
endif
|
endif
|
||||||
CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader $(VO_INC) $(EXTRA_INC) # -Wall
|
CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader $(VO_INC) $(EXTRA_INC) # -Wall
|
||||||
|
|
||||||
PARTS = libfame libmpdemux libmpcodecs mp3lib liba52 libmp1e libmpeg2 libavcodec libao2 drivers drivers/syncfb linux postproc input
|
PARTS = libfame libmpdemux libmpcodecs mp3lib liba52 libmp1e libmpeg2 libavcodec libao2 drivers drivers/syncfb linux postproc input libmpdvdkit
|
||||||
ifeq ($(VIDIX),yes)
|
ifeq ($(VIDIX),yes)
|
||||||
PARTS += libdha vidix
|
PARTS += libdha vidix
|
||||||
endif
|
endif
|
||||||
@ -101,6 +101,12 @@ COMMON_DEPS += libvo2/libvo2.a
|
|||||||
else
|
else
|
||||||
COMMON_DEPS += libvo/libvo.a
|
COMMON_DEPS += libvo/libvo.a
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(DVDKIT),yes)
|
||||||
|
COMMON_DEPS += libmpdvdkit/libmpdvdkit.a
|
||||||
|
endif
|
||||||
|
|
||||||
|
libmpdvdkit/libmpdvdkit.a:
|
||||||
|
$(MAKE) -C libmpdvdkit
|
||||||
|
|
||||||
loader/libloader.a:
|
loader/libloader.a:
|
||||||
$(MAKE) -C loader
|
$(MAKE) -C loader
|
||||||
|
61
configure
vendored
61
configure
vendored
@ -145,6 +145,8 @@ Optional features:
|
|||||||
--enable-i18n GNU internationalisation [disable]
|
--enable-i18n GNU internationalisation [disable]
|
||||||
--disable-runtime-cpudetection disable runtime CPU detection [enable]
|
--disable-runtime-cpudetection disable runtime CPU detection [enable]
|
||||||
--disable-dvdnav Disable dvdnav support [autodetect]
|
--disable-dvdnav Disable dvdnav support [autodetect]
|
||||||
|
--disable-dvdread Disable libdvdread support [autodetect]
|
||||||
|
--disable-mpdvdkit Disable mpdvdkit support [autodetect]
|
||||||
|
|
||||||
Video:
|
Video:
|
||||||
--enable-gl build with OpenGL render support [autodetect]
|
--enable-gl build with OpenGL render support [autodetect]
|
||||||
@ -786,6 +788,7 @@ _faad=auto
|
|||||||
_css=auto
|
_css=auto
|
||||||
_dvdnav=yes
|
_dvdnav=yes
|
||||||
_dvdread=auto
|
_dvdread=auto
|
||||||
|
_dvdkit=auto
|
||||||
_xanim=auto
|
_xanim=auto
|
||||||
_xinerama=auto
|
_xinerama=auto
|
||||||
_mga=auto
|
_mga=auto
|
||||||
@ -895,6 +898,8 @@ for ac_option do
|
|||||||
--disable-css) _css=no ;;
|
--disable-css) _css=no ;;
|
||||||
--enable-dvdread) _dvdread=yes ;;
|
--enable-dvdread) _dvdread=yes ;;
|
||||||
--disable-dvdread) _dvdread=no ;;
|
--disable-dvdread) _dvdread=no ;;
|
||||||
|
--enable-mpdvdkit) _dvdkit=yes ;;
|
||||||
|
--disable-mpdvdkit) _dvdkit=no ;;
|
||||||
--enable-dvdnav) _dvdnav=yes ;;
|
--enable-dvdnav) _dvdnav=yes ;;
|
||||||
--disable-dvdnav) _dvdnav=no ;;
|
--disable-dvdnav) _dvdnav=no ;;
|
||||||
--enable-xanim) _xanim=yes ;;
|
--enable-xanim) _xanim=yes ;;
|
||||||
@ -2448,8 +2453,19 @@ else
|
|||||||
echores "not supported on this OS"
|
echores "not supported on this OS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echocheck "DVD support (libmpdvdkit)"
|
||||||
|
if test "$_dvdkit" = auto ; then
|
||||||
|
_dvdkit=no
|
||||||
|
test -f "./libmpdvdkit/Makefile" && _dvdkit=yes
|
||||||
|
fi
|
||||||
|
if test "$_dvdkit" = yes ; then
|
||||||
|
echores "yes"
|
||||||
|
_inputmodules="mpdvdkit $_inputmodules"
|
||||||
|
_dvdread=included
|
||||||
|
else
|
||||||
|
echores "no"
|
||||||
|
_noinputmodules="mpdvdkit $_noinputmodules"
|
||||||
|
fi
|
||||||
|
|
||||||
echocheck "DVD support (libcss - old style)"
|
echocheck "DVD support (libcss - old style)"
|
||||||
if test "$_css" = auto ; then
|
if test "$_css" = auto ; then
|
||||||
@ -2489,17 +2505,27 @@ EOF
|
|||||||
_dvdread=yes
|
_dvdread=yes
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if test "$_dvdread" = yes ; then
|
case "$_dvdread" in
|
||||||
_largefiles=yes
|
yes)
|
||||||
_def_dvdread='#define USE_DVDREAD 1'
|
_largefiles=yes
|
||||||
_ld_css='-ldvdread'
|
_def_dvdread='#define USE_DVDREAD 1'
|
||||||
_inputmodules="dvdread $_inputmodules"
|
_ld_css='-ldvdread'
|
||||||
echores "yes"
|
_inputmodules="dvdread $_inputmodules"
|
||||||
else
|
echores "yes"
|
||||||
_def_dvdread='#undef USE_DVDREAD'
|
;;
|
||||||
_noinputmodules="dvdread $_noinputmodules"
|
no)
|
||||||
echores "no"
|
_def_dvdread='#undef USE_DVDREAD'
|
||||||
fi
|
_noinputmodules="dvdread $_noinputmodules"
|
||||||
|
echores "no"
|
||||||
|
;;
|
||||||
|
included)
|
||||||
|
_largefiles=yes
|
||||||
|
_def_dvdread='#define USE_DVDREAD 1'
|
||||||
|
_ld_css='-Llibmpdvdkit -lmpdvdkit'
|
||||||
|
_noinputmodules="dvdread $_noinputmodules"
|
||||||
|
echores "disabled by libmpdvdkit"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
echocheck "libdvdnav"
|
echocheck "libdvdnav"
|
||||||
if test "$_dvdnav" = yes ; then
|
if test "$_dvdnav" = yes ; then
|
||||||
@ -2508,10 +2534,10 @@ if test "$_dvdnav" = yes ; then
|
|||||||
int main(void) { dvdnav_t *dvd=0; return 0; }
|
int main(void) { dvdnav_t *dvd=0; return 0; }
|
||||||
EOF
|
EOF
|
||||||
_dvdnav=no
|
_dvdnav=no
|
||||||
if test -n "$_dvdnavdir" ; then
|
test -n "$_dvdnavdir" && _legal_dvdnavdir=-L$_dvdnavdir/.libs
|
||||||
_legal_dvdnavdir=-L$_dvdnavdir/.libs
|
_used_css=
|
||||||
fi
|
test "$_dvdkit" = no && _used_css=$_ld_css
|
||||||
cc_check $_inc_extra -I$_dvdnavdir $_legal_dvdnavdir -ldvdnav $_ld_css $_ld_dl && _dvdnav=yes
|
cc_check $_inc_extra -I$_dvdnavdir $_legal_dvdnavdir -ldvdnav $_used_css $_ld_dl && _dvdnav=yes
|
||||||
fi
|
fi
|
||||||
if test "$_dvdnav" = yes ; then
|
if test "$_dvdnav" = yes ; then
|
||||||
_largefiles=yes
|
_largefiles=yes
|
||||||
@ -3410,6 +3436,7 @@ TERMCAP_LIB = $_ld_termcap
|
|||||||
LIRC_LIB = $_ld_lirc
|
LIRC_LIB = $_ld_lirc
|
||||||
CSS_USE = $_css
|
CSS_USE = $_css
|
||||||
CSS_LIB = $_ld_css
|
CSS_LIB = $_ld_css
|
||||||
|
DVDKIT = $_dvdkit
|
||||||
SDL_INC = $_inc_sdl
|
SDL_INC = $_inc_sdl
|
||||||
W32_DEP = $_dep_win32
|
W32_DEP = $_dep_win32
|
||||||
W32_LIB = $_ld_win32
|
W32_LIB = $_ld_win32
|
||||||
|
Loading…
Reference in New Issue
Block a user