Mercurial > mplayer.hg
changeset 5777:578a48174545
add libmpdvdkit lib
author | pontscho |
---|---|
date | Sun, 21 Apr 2002 21:18:28 +0000 |
parents | 1f320716fe92 |
children | f2586f1a3a96 |
files | Makefile configure |
diffstat | 2 files changed, 51 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sun Apr 21 19:11:43 2002 +0000 +++ b/Makefile Sun Apr 21 21:18:28 2002 +0000 @@ -51,7 +51,7 @@ 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 @@ 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
--- a/configure Sun Apr 21 19:11:43 2002 +0000 +++ b/configure Sun Apr 21 21:18:28 2002 +0000 @@ -145,6 +145,8 @@ --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 @@ _css=auto _dvdnav=yes _dvdread=auto +_dvdkit=auto _xanim=auto _xinerama=auto _mga=auto @@ -895,6 +898,8 @@ --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 @@ 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 @@ _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 @@ 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 @@ 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