[Mplayer-cvslog] CVS: main Makefile,1.71,1.72 configure,1.173,1.174

Arpi of Ize arpi at mplayer.dev.hu
Fri Oct 5 15:40:03 CEST 2001


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

Modified Files:
	Makefile configure 
Log Message:
compile and install fibmap_mplayer ofly if libcss is used. gmplayer link is created

Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/Makefile,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- Makefile	5 Oct 2001 00:39:38 -0000	1.71
+++ Makefile	5 Oct 2001 13:39:43 -0000	1.72
@@ -34,12 +34,17 @@
 LOADER_DEP = $(W32_DEP) $(DS_DEP)
 LIB_LOADER = $(W32_LIB) $(DS_LIB)
 
+ALL_PRG = $(PRG)
+ifeq ($(CSS_USE),yes)
+ALL_PRG += $(PRG_FIBMAP)
+endif
 
 .SUFFIXES: .c .o
 
 # .PHONY: all clean
 
-all:	$(PRG) $(PRG_FIBMAP)
+all:	$(ALL_PRG)
+
 # $(PRG_AVIP)
 
 .c.o:
@@ -112,20 +117,25 @@
 $(PRG_CFG): version.h codec-cfg.c codec-cfg.h
 	$(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML
 
-install: $(PRG) $(PRG_FIBMAP)
+install: $(ALL_PRG)
 	if [ ! -e $(BINDIR) ]; then \
 		mkdir -p $(BINDIR); \
 	fi
 	install -m 755 -s $(PRG) $(BINDIR)/$(PRG)
+ifeq ($(GUI),yes)
+	-ln -s $(BINDIR)/$(PRG) $(BINDIR)/gmplayer
+endif
 	if [ ! -e $(prefix)/man/man1 ]; then \
 		mkdir -p $(prefix)/man/man1; \
 	fi
 	install -c -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
+ifeq ($(CSS_USE),yes)
 	@echo "Following task requires root privs. If it fails don't panic"
 	@echo "however it means you can't use fibmap_mplayer."
 	@echo "Without this (or without running mplayer as root) you won't be"
 	@echo "able to play encrypted DVDs."
 	-install -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
+endif
 
 clean:
 	rm -f *.o *~ $(OBJS)

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -r1.173 -r1.174
--- configure	5 Oct 2001 09:29:27 -0000	1.173
+++ configure	5 Oct 2001 13:39:43 -0000	1.174
@@ -1681,13 +1681,14 @@
    fi
 fi
 
+_cssdef='#undef HAVE_LIBCSS'
 _csslib=''
 _cssinc=''
 
 if [ $_dvdread = yes ]; then
-   _css='#undef HAVE_LIBCSS'
    _csslib='-ldvdread'
    _dvdreaddef='#define USE_DVDREAD'
+   _css='no'
 else
    _dvdreaddef='#undef USE_DVDREAD'
 
@@ -1697,14 +1698,12 @@
    else
      _csslib='-lcss'
    fi
-   _css='#define HAVE_LIBCSS'
+   _cssdef='#define HAVE_LIBCSS'
    if [ ! -z "$_cssincdir" ]; then
      _cssinc="-I${_cssincdir}"
    else
      _cssinc=""
    fi
-else
-   _css='#undef HAVE_LIBCSS'
 fi
 
 fi
@@ -2148,6 +2147,7 @@
 TERMCAP_LIB=$_libtermcap
 XMM_LIBS = $_xmmplibs
 LIRC_LIBS = $_lirclibs
+CSS_USE=$_css
 CSS_LIB = $_csslib
 CSS_INC = $_cssinc
 SDL_INC = $_sdlcflags
@@ -2274,7 +2274,7 @@
 $_lircdefs
 
 /* DeCSS support using libcss */
-$_css
+$_cssdef
 
 /* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */
 #define MPEG12_POSTPROC




More information about the MPlayer-cvslog mailing list