Mercurial > mplayer.hg
comparison Makefile @ 11592:bbf3898360e7
removed the historic libcss support
author | alex |
---|---|
date | Mon, 08 Dec 2003 21:34:05 +0000 |
parents | 90953d955165 |
children | 0d5cfe5358bc |
comparison
equal
deleted
inserted
replaced
11591:96206a53e2c5 | 11592:bbf3898360e7 |
---|---|
5 # * DVD support | 5 # * DVD support |
6 | 6 |
7 include config.mak | 7 include config.mak |
8 | 8 |
9 PRG = mplayer | 9 PRG = mplayer |
10 PRG_FIBMAP = fibmap_mplayer | |
11 PRG_CFG = codec-cfg | 10 PRG_CFG = codec-cfg |
12 PRG_MENCODER = mencoder | 11 PRG_MENCODER = mencoder |
13 | 12 |
14 # Do not strip the binaries at installation | 13 # Do not strip the binaries at installation |
15 ifeq ($(STRIPBINARIES),yes) | 14 ifeq ($(STRIPBINARIES),yes) |
34 OBJS_MPLAYER = $(SRCS_MPLAYER:.c=.o) | 33 OBJS_MPLAYER = $(SRCS_MPLAYER:.c=.o) |
35 | 34 |
36 VO_LIBS = $(AA_LIB) $(X_LIB) $(SDL_LIB) $(GGI_LIB) $(MP1E_LIB) $(MLIB_LIB) $(SVGA_LIB) $(DIRECTFB_LIB) | 35 VO_LIBS = $(AA_LIB) $(X_LIB) $(SDL_LIB) $(GGI_LIB) $(MP1E_LIB) $(MLIB_LIB) $(SVGA_LIB) $(DIRECTFB_LIB) |
37 AO_LIBS = $(ARTS_LIB) $(ESD_LIB) $(NAS_LIB) $(SGIAUDIO_LIB) | 36 AO_LIBS = $(ARTS_LIB) $(ESD_LIB) $(NAS_LIB) $(SGIAUDIO_LIB) |
38 CODEC_LIBS = $(AV_LIB) $(FAME_LIB) $(MAD_LIB) $(VORBIS_LIB) $(THEORA_LIB) $(FAAD_LIB) $(LIBLZO_LIB) $(DECORE_LIB) $(XVID_LIB) $(PNG_LIB) $(Z_LIB) $(JPEG_LIB) $(ALSA_LIB) $(XMMS_LIB) $(MATROSKA_LIB) | 37 CODEC_LIBS = $(AV_LIB) $(FAME_LIB) $(MAD_LIB) $(VORBIS_LIB) $(THEORA_LIB) $(FAAD_LIB) $(LIBLZO_LIB) $(DECORE_LIB) $(XVID_LIB) $(PNG_LIB) $(Z_LIB) $(JPEG_LIB) $(ALSA_LIB) $(XMMS_LIB) $(MATROSKA_LIB) |
39 COMMON_LIBS = libmpcodecs/libmpcodecs.a mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a $(W32_LIB) $(DS_LIB) libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a $(CSS_LIB) $(CODEC_LIBS) $(FREETYPE_LIB) $(TERMCAP_LIB) $(CDPARANOIA_LIB) $(MPLAYER_NETWORK_LIB) $(WIN32_LIB) $(GIF_LIB) $(MACOSX_FRAMEWORKS) $(SMBSUPPORT_LIB) $(FRIBIDI_LIB) $(FLAC_LIB) $(FONTCONFIG_LIB) | 38 COMMON_LIBS = libmpcodecs/libmpcodecs.a mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a $(W32_LIB) $(DS_LIB) libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a $(DVDREAD_LIB) $(CODEC_LIBS) $(FREETYPE_LIB) $(TERMCAP_LIB) $(CDPARANOIA_LIB) $(MPLAYER_NETWORK_LIB) $(WIN32_LIB) $(GIF_LIB) $(MACOSX_FRAMEWORKS) $(SMBSUPPORT_LIB) $(FRIBIDI_LIB) $(FLAC_LIB) $(FONTCONFIG_LIB) |
40 | 39 |
41 CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader -Ilibvo $(FREETYPE_INC) $(EXTRA_INC) $(CDPARANOIA_INC) $(SDL_INC) $(X11_INC) $(FRIBIDI_INC) $(DVB_INC) $(XVID_INC) $(FONTCONFIG_INC) # -Wall | 40 CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader -Ilibvo $(FREETYPE_INC) $(EXTRA_INC) $(CDPARANOIA_INC) $(SDL_INC) $(X11_INC) $(FRIBIDI_INC) $(DVB_INC) $(XVID_INC) $(FONTCONFIG_INC) # -Wall |
42 | 41 |
43 PARTS = libmpdemux libmpcodecs mp3lib liba52 libmpeg2 libavcodec libao2 drivers osdep postproc input libvo libaf | 42 PARTS = libmpdemux libmpcodecs mp3lib liba52 libmpeg2 libavcodec libao2 drivers osdep postproc input libvo libaf |
44 ifeq ($(INTERNAL_FAAD),yes) | 43 ifeq ($(INTERNAL_FAAD),yes) |
73 | 72 |
74 ALL_PRG = $(PRG) | 73 ALL_PRG = $(PRG) |
75 ifeq ($(MENCODER),yes) | 74 ifeq ($(MENCODER),yes) |
76 ALL_PRG += $(PRG_MENCODER) | 75 ALL_PRG += $(PRG_MENCODER) |
77 endif | 76 endif |
78 ifeq ($(CSS_USE),yes) | |
79 ALL_PRG += $(PRG_FIBMAP) | |
80 endif | |
81 | 77 |
82 COMMON_DEPS = $(W32_DEP) $(DS_DEP) $(MP1E_DEP) $(AV_DEP) libmpdemux/libmpdemux.a libmpcodecs/libmpcodecs.a libao2/libao2.a liba52/liba52.a mp3lib/libMP3.a libmpeg2/libmpeg2.a osdep/libosdep.a postproc/libswscale.a input/libinput.a libvo/libvo.a libaf/libaf.a | 78 COMMON_DEPS = $(W32_DEP) $(DS_DEP) $(MP1E_DEP) $(AV_DEP) libmpdemux/libmpdemux.a libmpcodecs/libmpcodecs.a libao2/libao2.a liba52/liba52.a mp3lib/libMP3.a libmpeg2/libmpeg2.a osdep/libosdep.a postproc/libswscale.a input/libinput.a libvo/libvo.a libaf/libaf.a |
83 | 79 |
84 ifeq ($(INTERNAL_FAAD),yes) | 80 ifeq ($(INTERNAL_FAAD),yes) |
85 COMMON_DEPS += libfaad2/libfaad2.a | 81 COMMON_DEPS += libfaad2/libfaad2.a |
227 $(CC) $(CFLAGS) -Wall -shared -Wl,-rpath,/usr/local/lib -Wl,-Bsymbolic -o mplayer.exe.so $(OBJS_MPLAYER) mplayer.exe.spec.c libvo/libvo.a libao2/libao2.a $(MENU_LIBS) $(VIDIX_LIBS) $(GUI_LIBS) $(COMMON_LIBS) $(GTK_LIBS) $(VO_LIBS) $(AO_LIBS) $(EXTRA_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(STATIC_LIB) $(ARCH_LIB) -lwine -lm | 223 $(CC) $(CFLAGS) -Wall -shared -Wl,-rpath,/usr/local/lib -Wl,-Bsymbolic -o mplayer.exe.so $(OBJS_MPLAYER) mplayer.exe.spec.c libvo/libvo.a libao2/libao2.a $(MENU_LIBS) $(VIDIX_LIBS) $(GUI_LIBS) $(COMMON_LIBS) $(GTK_LIBS) $(VO_LIBS) $(AO_LIBS) $(EXTRA_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(STATIC_LIB) $(ARCH_LIB) -lwine -lm |
228 | 224 |
229 mplayer_wine.so: $(MPLAYER_DEP) | 225 mplayer_wine.so: $(MPLAYER_DEP) |
230 ./darwinfixlib.sh $(MPLAYER_DEP) | 226 ./darwinfixlib.sh $(MPLAYER_DEP) |
231 $(CC) $(CFLAGS) -shared -Wl,-Bsymbolic -o mplayer_wine.so mplayer_wine.spec.c $(OBJS_MPLAYER) libvo/libvo.a libao2/libao2.a $(MENU_LIBS) $(VIDIX_LIBS) $(GUI_LIBS) $(COMMON_LIBS) $(GTK_LIBS) $(VO_LIBS) $(AO_LIBS) $(EXTRA_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(STATIC_LIB) -lwine $(ARCH_LIB) -lm | 227 $(CC) $(CFLAGS) -shared -Wl,-Bsymbolic -o mplayer_wine.so mplayer_wine.spec.c $(OBJS_MPLAYER) libvo/libvo.a libao2/libao2.a $(MENU_LIBS) $(VIDIX_LIBS) $(GUI_LIBS) $(COMMON_LIBS) $(GTK_LIBS) $(VO_LIBS) $(AO_LIBS) $(EXTRA_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(STATIC_LIB) -lwine $(ARCH_LIB) -lm |
232 | |
233 $(PRG_FIBMAP): fibmap_mplayer.o mp_msg.o | |
234 $(CC) -o $(PRG_FIBMAP) fibmap_mplayer.o mp_msg.o | |
235 | 228 |
236 ifeq ($(MENCODER),yes) | 229 ifeq ($(MENCODER),yes) |
237 $(PRG_MENCODER): $(MENCODER_DEP) | 230 $(PRG_MENCODER): $(MENCODER_DEP) |
238 ./darwinfixlib.sh $(MENCODER_DEP) libmpcodecs/libmpencoders.a | 231 ./darwinfixlib.sh $(MENCODER_DEP) libmpcodecs/libmpencoders.a |
239 $(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) libmpcodecs/libmpencoders.a $(ENCORE_LIB) $(COMMON_LIBS) $(EXTRA_LIB) $(MLIB_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(ARCH_LIB) $(I18NLIBS) -lm | 232 $(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) libmpcodecs/libmpencoders.a $(ENCORE_LIB) $(COMMON_LIBS) $(EXTRA_LIB) $(MLIB_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(ARCH_LIB) $(I18NLIBS) -lm |
305 if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi | 298 if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi |
306 $(INSTALL) -m 755 $(INSTALLSTRIP) libmpdvdkit/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so | 299 $(INSTALL) -m 755 $(INSTALLSTRIP) libmpdvdkit/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so |
307 endif | 300 endif |
308 endif | 301 endif |
309 endif | 302 endif |
310 ifeq ($(CSS_USE),yes) | |
311 @echo "The following task requires root privileges. If it fails don't panic," | |
312 @echo "however it means you can't use fibmap_mplayer." | |
313 @echo "Without this (or without running mplayer as root) you won't be" | |
314 @echo "able to play encrypted DVDs." | |
315 -$(INSTALL) -o 0 -g 0 -m 4755 $(INSTALLSTRIP) $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP) | |
316 endif | |
317 | 303 |
318 uninstall: | 304 uninstall: |
319 -rm -f $(BINDIR)/$(PRG) $(BINDIR)/gmplayer $(MANDIR)/man1/mplayer.1 | 305 -rm -f $(BINDIR)/$(PRG) $(BINDIR)/gmplayer $(MANDIR)/man1/mplayer.1 |
320 -rm -f $(BINDIR)/$(PRG_FIBMAP) | |
321 -rm -f $(BINDIR)/$(PRG_MENCODER) $(MANDIR)/man1/mencoder.1 | 306 -rm -f $(BINDIR)/$(PRG_MENCODER) $(MANDIR)/man1/mencoder.1 |
322 @echo "Uninstall completed" | 307 @echo "Uninstall completed" |
323 | 308 |
324 clean: | 309 clean: |
325 -rm -f *.o *~ $(OBJS) codecs.conf.h | 310 -rm -f *.o *~ $(OBJS) codecs.conf.h |
326 | 311 |
327 distclean: | 312 distclean: |
328 -rm -f *~ $(PRG) $(PRG_FIBMAP) $(PRG_MENCODER) $(PRG_CFG) $(OBJS) | 313 -rm -f *~ $(PRG) $(PRG_MENCODER) $(PRG_CFG) $(OBJS) |
329 -rm -f *.o *.a .depend configure.log codecs.conf.h | 314 -rm -f *.o *.a .depend configure.log codecs.conf.h |
330 @for a in $(PARTS); do $(MAKE) -C $$a distclean; done | 315 @for a in $(PARTS); do $(MAKE) -C $$a distclean; done |
331 -$(MAKE) -C libavcodec distclean LIBPREF=lib LIBSUF=.a | 316 -$(MAKE) -C libavcodec distclean LIBPREF=lib LIBSUF=.a |
332 | 317 |
333 strip: | 318 strip: |