[Mplayer-cvslog] CVS: main Makefile,1.177,1.178 configure,1.430,1.431

Zoltan Ponekker pontscho at mplayerhq.hu
Sun Apr 21 23:18:37 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv2050

Modified Files:
	Makefile configure 
Log Message:
add libmpdvdkit lib

Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/Makefile,v
retrieving revision 1.177
retrieving revision 1.178
diff -u -r1.177 -r1.178
--- Makefile	17 Apr 2002 21:51:17 -0000	1.177
+++ Makefile	21 Apr 2002 21:18:28 -0000	1.178
@@ -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

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.430
retrieving revision 1.431
diff -u -r1.430 -r1.431
--- configure	21 Apr 2002 02:44:25 -0000	1.430
+++ configure	21 Apr 2002 21:18:28 -0000	1.431
@@ -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




More information about the MPlayer-cvslog mailing list