mirror of https://github.com/mpv-player/mpv
compile and install fibmap_mplayer ofly if libcss is used. gmplayer link is created
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2094 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fab6ae366c
commit
423e6107f2
14
Makefile
14
Makefile
|
@ -34,12 +34,17 @@ endif
|
||||||
LOADER_DEP = $(W32_DEP) $(DS_DEP)
|
LOADER_DEP = $(W32_DEP) $(DS_DEP)
|
||||||
LIB_LOADER = $(W32_LIB) $(DS_LIB)
|
LIB_LOADER = $(W32_LIB) $(DS_LIB)
|
||||||
|
|
||||||
|
ALL_PRG = $(PRG)
|
||||||
|
ifeq ($(CSS_USE),yes)
|
||||||
|
ALL_PRG += $(PRG_FIBMAP)
|
||||||
|
endif
|
||||||
|
|
||||||
.SUFFIXES: .c .o
|
.SUFFIXES: .c .o
|
||||||
|
|
||||||
# .PHONY: all clean
|
# .PHONY: all clean
|
||||||
|
|
||||||
all: $(PRG) $(PRG_FIBMAP)
|
all: $(ALL_PRG)
|
||||||
|
|
||||||
# $(PRG_AVIP)
|
# $(PRG_AVIP)
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
|
@ -112,20 +117,25 @@ $(MPLAYER_DEP): version.h
|
||||||
$(PRG_CFG): version.h codec-cfg.c codec-cfg.h
|
$(PRG_CFG): version.h codec-cfg.c codec-cfg.h
|
||||||
$(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML
|
$(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML
|
||||||
|
|
||||||
install: $(PRG) $(PRG_FIBMAP)
|
install: $(ALL_PRG)
|
||||||
if [ ! -e $(BINDIR) ]; then \
|
if [ ! -e $(BINDIR) ]; then \
|
||||||
mkdir -p $(BINDIR); \
|
mkdir -p $(BINDIR); \
|
||||||
fi
|
fi
|
||||||
install -m 755 -s $(PRG) $(BINDIR)/$(PRG)
|
install -m 755 -s $(PRG) $(BINDIR)/$(PRG)
|
||||||
|
ifeq ($(GUI),yes)
|
||||||
|
-ln -s $(BINDIR)/$(PRG) $(BINDIR)/gmplayer
|
||||||
|
endif
|
||||||
if [ ! -e $(prefix)/man/man1 ]; then \
|
if [ ! -e $(prefix)/man/man1 ]; then \
|
||||||
mkdir -p $(prefix)/man/man1; \
|
mkdir -p $(prefix)/man/man1; \
|
||||||
fi
|
fi
|
||||||
install -c -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
|
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 "Following task requires root privs. If it fails don't panic"
|
||||||
@echo "however it means you can't use fibmap_mplayer."
|
@echo "however it means you can't use fibmap_mplayer."
|
||||||
@echo "Without this (or without running mplayer as root) you won't be"
|
@echo "Without this (or without running mplayer as root) you won't be"
|
||||||
@echo "able to play encrypted DVDs."
|
@echo "able to play encrypted DVDs."
|
||||||
-install -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
|
-install -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
|
||||||
|
endif
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *~ $(OBJS)
|
rm -f *.o *~ $(OBJS)
|
||||||
|
|
|
@ -1681,13 +1681,14 @@ if [ $_gl = yes ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
_cssdef='#undef HAVE_LIBCSS'
|
||||||
_csslib=''
|
_csslib=''
|
||||||
_cssinc=''
|
_cssinc=''
|
||||||
|
|
||||||
if [ $_dvdread = yes ]; then
|
if [ $_dvdread = yes ]; then
|
||||||
_css='#undef HAVE_LIBCSS'
|
|
||||||
_csslib='-ldvdread'
|
_csslib='-ldvdread'
|
||||||
_dvdreaddef='#define USE_DVDREAD'
|
_dvdreaddef='#define USE_DVDREAD'
|
||||||
|
_css='no'
|
||||||
else
|
else
|
||||||
_dvdreaddef='#undef USE_DVDREAD'
|
_dvdreaddef='#undef USE_DVDREAD'
|
||||||
|
|
||||||
|
@ -1697,14 +1698,12 @@ if [ $_css = yes ]; then
|
||||||
else
|
else
|
||||||
_csslib='-lcss'
|
_csslib='-lcss'
|
||||||
fi
|
fi
|
||||||
_css='#define HAVE_LIBCSS'
|
_cssdef='#define HAVE_LIBCSS'
|
||||||
if [ ! -z "$_cssincdir" ]; then
|
if [ ! -z "$_cssincdir" ]; then
|
||||||
_cssinc="-I${_cssincdir}"
|
_cssinc="-I${_cssincdir}"
|
||||||
else
|
else
|
||||||
_cssinc=""
|
_cssinc=""
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
_css='#undef HAVE_LIBCSS'
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
@ -2148,6 +2147,7 @@ X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_x
|
||||||
TERMCAP_LIB=$_libtermcap
|
TERMCAP_LIB=$_libtermcap
|
||||||
XMM_LIBS = $_xmmplibs
|
XMM_LIBS = $_xmmplibs
|
||||||
LIRC_LIBS = $_lirclibs
|
LIRC_LIBS = $_lirclibs
|
||||||
|
CSS_USE=$_css
|
||||||
CSS_LIB = $_csslib
|
CSS_LIB = $_csslib
|
||||||
CSS_INC = $_cssinc
|
CSS_INC = $_cssinc
|
||||||
SDL_INC = $_sdlcflags
|
SDL_INC = $_sdlcflags
|
||||||
|
@ -2274,7 +2274,7 @@ $_have_libkstat
|
||||||
$_lircdefs
|
$_lircdefs
|
||||||
|
|
||||||
/* DeCSS support using libcss */
|
/* DeCSS support using libcss */
|
||||||
$_css
|
$_cssdef
|
||||||
|
|
||||||
/* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */
|
/* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */
|
||||||
#define MPEG12_POSTPROC
|
#define MPEG12_POSTPROC
|
||||||
|
|
Loading…
Reference in New Issue