# HG changeset patch # User albeu # Date 1014499216 0 # Node ID e2df1d29d0f7970009d11290038a1ac68b124737 # Parent d25b898c4c4437bc2d2c66cd8db0d66254569035 Change in configure relative to lirc, same thing in Makefile plus some cleanup (COMMONS_LIB is now really common :) diff -r d25b898c4c44 -r e2df1d29d0f7 Makefile --- a/Makefile Sat Feb 23 21:18:40 2002 +0000 +++ b/Makefile Sat Feb 23 21:20:16 2002 +0000 @@ -51,7 +51,7 @@ A_LIBS = $(ALSA_LIB) $(NAS_LIB) $(MAD_LIB) $(VORBIS_LIB) $(SGIAUDIO_LIB) CODEC_LIBS = -Lg72x -lg72x -Lmp3lib -lMP3 -Llibac3 -lac3 -Lliba52 -la52 -Lxa -lxa -Llibmpeg2 -lmpeg2 $(AV_LIB) -COMMON_LIBS = -Llinux -losdep -Lpostproc -lpostproc +COMMON_LIBS = $(CODEC_LIBS) -Llibmpdemux -lmpdemux $(NEW_INPUT_LIB) $(LIB_LOADER) $(A_LIBS) $(CSS_LIB) $(ARCH_LIB) $(DECORE_LIB) $(TERMCAP_LIB) $(STREAMING_LIB) $(Z_LIB) $(GTK_LIBS) $(PNG_LIB) -Llinux -losdep -Lpostproc -lpostproc -lm ifeq ($(VIDIX),yes) MISC_LIBS += -Llibdha -ldha -Lvidix -lvidix endif @@ -99,7 +99,7 @@ .c.o: $(CC) -c $(CFLAGS) -o $@ $< -COMMON_DEPS = g72x/libg72x.a libmpdemux/libmpdemux.a libao2/libao2.a libac3/libac3.a liba52/liba52.a mp3lib/libMP3.a libmpeg2/libmpeg2.a linux/libosdep.a postproc/libpostproc.a opendivx/libdecore.a xa/libxa.a +COMMON_DEPS = g72x/libg72x.a libmpdemux/libmpdemux.a libao2/libao2.a libac3/libac3.a liba52/liba52.a mp3lib/libMP3.a libmpeg2/libmpeg2.a linux/libosdep.a postproc/libpostproc.a opendivx/libdecore.a xa/libxa.a input/libinput.a ifeq ($(VIDIX),yes) COMMON_DEPS += libdha/libdha.so vidix/libvidix.a @@ -179,7 +179,7 @@ input/libinput.a: $(MAKE) -C input -MPLAYER_DEP = $(OBJS_MPLAYER) $(LOADER_DEP) $(MP1E_DEP) $(AV_DEP) $(COMMON_DEPS) input/libinput.a +MPLAYER_DEP = $(OBJS_MPLAYER) $(LOADER_DEP) $(MP1E_DEP) $(AV_DEP) $(COMMON_DEPS) MENCODER_DEP = $(OBJS_MENCODER) $(LOADER_DEP) $(MP1E_DEP) $(AV_DEP) $(COMMON_DEPS) ifeq ($(GUI),yes) @@ -194,14 +194,14 @@ endif $(PRG): $(MPLAYER_DEP) - $(CC) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) $(CODEC_LIBS) -Llibmpdemux -lmpdemux $(VO_LIBS) $(GUI_LIBS) $(AO_LIBS) $(LIB_LOADER) $(COMMON_LIBS) $(EXTRA_LIB) $(A_LIBS) $(V_LIBS) $(LIRC_LIB) $(CSS_LIB) $(ARCH_LIB) $(DECORE_LIB) $(TERMCAP_LIB) $(STATIC_LIB) $(GTK_LIBS) $(PNG_LIB) $(Z_LIB) $(STREAMING_LIB) $(VIDIX_LIBS) -Linput -linput -lm + $(CC) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) $(VO_LIBS) $(COMMON_LIBS) $(EXTRA_LIB) $(V_LIBS) $(AO_LIBS) $(VIDIX_LIBS) $(GUI_LIBS) $(LIRC_LIB) $(STATIC_LIB) $(PRG_FIBMAP): fibmap_mplayer.o $(CC) -o $(PRG_FIBMAP) fibmap_mplayer.o ifeq ($(MENCODER),yes) $(PRG_MENCODER): $(MENCODER_DEP) - $(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) $(CODEC_LIBS) $(MLIB_LIB) -Llibmpdemux -lmpdemux $(LIB_LOADER) $(COMMON_LIBS) $(EXTRA_LIB) $(A_LIBS) $(CSS_LIB) $(GTK_LIBS) $(PNG_LIB) $(Z_LIB) $(ARCH_LIB) $(DECORE_LIB) $(ENCORE_LIB) $(TERMCAP_LIB) $(STREAMING_LIB) -lm + $(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) $(COMMON_LIBS) $(EXTRA_LIB) $(ENCORE_LIB) $(MLIB_LIB) endif # Every mplayer dependancy depends on version.h, to force building version.h diff -r d25b898c4c44 -r e2df1d29d0f7 configure --- a/configure Sat Feb 23 21:18:40 2002 +0000 +++ b/configure Sat Feb 23 21:20:16 2002 +0000 @@ -136,7 +136,7 @@ --disable-streaming disable network streaming support (support for: http/mms/rtp) [enable] --disable-vidix disable VIDIX stuff [enable] - --enable-new-input enable new input system [disable] + --disable-new-input disable new input system [enable] --enable-joystick enable joystick support in new input [disable] Video: --enable-gl build with OpenGL render support [autodetect] @@ -2705,26 +2705,6 @@ fi echores "$_mencoder" -echocheck "lirc" -if test "$_lirc" = auto ; then - _lirc=no - if test -c /dev/lirc ; then - cat > $TMPC < -int main(void) { return 0; } -EOF - cc_check -llirc_client && _lirc=yes - fi -fi -if test "$_lirc" = yes ; then - _def_lirc='#define HAVE_LIRC 1' - _ld_lirc='-llirc_client' -else - _def_lirc='#undef HAVE_LIRC' -fi -echores "$_lirc" - - echocheck "fastmemcpy" # fastmemcpy check is done earlier with tests of CPU & binutils features if test "$_fastmemcpy" = yes ; then @@ -2962,6 +2942,7 @@ echo Checking for new input ... "$_new_input" if test "$_new_input" = yes ; then _def_new_input='#define HAVE_NEW_INPUT 1' + _ld_new_input="-Linput -linput" if test "$_joystick" = yes ; then if linux ; then # TODO add some check @@ -2973,6 +2954,31 @@ echo Checking for joystick ... "$_joystick" fi +echocheck "lirc" +if test "$_lirc" = auto ; then + _lirc=no + if test -c /dev/lirc ; then + cat > $TMPC < +int main(void) { return 0; } +EOF + cc_check -llirc_client && _lirc=yes + fi +fi +if test "$_lirc" = yes ; then + _def_lirc='#define HAVE_LIRC 1' + if test "$_new_input" = yes ; then + _ld_new_input="-llirc_client $_ld_new_input" + else + _ld_lirc='-llirc_client' + fi +else + _def_lirc='#undef HAVE_LIRC' +fi +echores "$_lirc" + + + ############################################################################# echo "Creating config.mak" cat > config.mak << EOF @@ -3047,6 +3053,7 @@ MENCODER = $_mencoder ENCORE_LIB = $_ld_encore $_ld_mp3lame DIRECTFB_LIB = $_ld_directfb +NEW_INPUT_LIB = $_ld_new_input # --- Some stuff for autoconfigure ---- $_target_arch