1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +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:
pontscho 2002-04-21 21:18:28 +00:00
parent 22e2f50044
commit e1a3e103b8
2 changed files with 51 additions and 18 deletions

View File

@ -51,7 +51,7 @@ MISC_LIBS += -Llibdha -ldha -Lvidix -lvidix
endif
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)
PARTS += libdha vidix
endif
@ -101,6 +101,12 @@ COMMON_DEPS += libvo2/libvo2.a
else
COMMON_DEPS += libvo/libvo.a
endif
ifeq ($(DVDKIT),yes)
COMMON_DEPS += libmpdvdkit/libmpdvdkit.a
endif
libmpdvdkit/libmpdvdkit.a:
$(MAKE) -C libmpdvdkit
loader/libloader.a:
$(MAKE) -C loader

61
configure vendored
View File

@ -145,6 +145,8 @@ Optional features:
--enable-i18n GNU internationalisation [disable]
--disable-runtime-cpudetection disable runtime CPU detection [enable]
--disable-dvdnav Disable dvdnav support [autodetect]
--disable-dvdread Disable libdvdread support [autodetect]
--disable-mpdvdkit Disable mpdvdkit support [autodetect]
Video:
--enable-gl build with OpenGL render support [autodetect]
@ -786,6 +788,7 @@ _faad=auto
_css=auto
_dvdnav=yes
_dvdread=auto
_dvdkit=auto
_xanim=auto
_xinerama=auto
_mga=auto
@ -895,6 +898,8 @@ for ac_option do
--disable-css) _css=no ;;
--enable-dvdread) _dvdread=yes ;;
--disable-dvdread) _dvdread=no ;;
--enable-mpdvdkit) _dvdkit=yes ;;
--disable-mpdvdkit) _dvdkit=no ;;
--enable-dvdnav) _dvdnav=yes ;;
--disable-dvdnav) _dvdnav=no ;;
--enable-xanim) _xanim=yes ;;
@ -2448,8 +2453,19 @@ else
echores "not supported on this OS"
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)"
if test "$_css" = auto ; then
@ -2489,17 +2505,27 @@ EOF
_dvdread=yes
fi
fi
if test "$_dvdread" = yes ; then
_largefiles=yes
_def_dvdread='#define USE_DVDREAD 1'
_ld_css='-ldvdread'
_inputmodules="dvdread $_inputmodules"
echores "yes"
else
_def_dvdread='#undef USE_DVDREAD'
_noinputmodules="dvdread $_noinputmodules"
echores "no"
fi
case "$_dvdread" in
yes)
_largefiles=yes
_def_dvdread='#define USE_DVDREAD 1'
_ld_css='-ldvdread'
_inputmodules="dvdread $_inputmodules"
echores "yes"
;;
no)
_def_dvdread='#undef USE_DVDREAD'
_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"
if test "$_dvdnav" = yes ; then
@ -2508,10 +2534,10 @@ if test "$_dvdnav" = yes ; then
int main(void) { dvdnav_t *dvd=0; return 0; }
EOF
_dvdnav=no
if test -n "$_dvdnavdir" ; then
_legal_dvdnavdir=-L$_dvdnavdir/.libs
fi
cc_check $_inc_extra -I$_dvdnavdir $_legal_dvdnavdir -ldvdnav $_ld_css $_ld_dl && _dvdnav=yes
test -n "$_dvdnavdir" && _legal_dvdnavdir=-L$_dvdnavdir/.libs
_used_css=
test "$_dvdkit" = no && _used_css=$_ld_css
cc_check $_inc_extra -I$_dvdnavdir $_legal_dvdnavdir -ldvdnav $_used_css $_ld_dl && _dvdnav=yes
fi
if test "$_dvdnav" = yes ; then
_largefiles=yes
@ -3410,6 +3436,7 @@ TERMCAP_LIB = $_ld_termcap
LIRC_LIB = $_ld_lirc
CSS_USE = $_css
CSS_LIB = $_ld_css
DVDKIT = $_dvdkit
SDL_INC = $_inc_sdl
W32_DEP = $_dep_win32
W32_LIB = $_ld_win32