summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile10
-rwxr-xr-xconfigure49
2 files changed, 33 insertions, 26 deletions
diff --git a/Makefile b/Makefile
index df19a28b60..856da2c548 100644
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,7 @@ AO_LIBS = -Llibao2 -lao2
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 @@ all: $(ALL_PRG)
.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 @@ g72x/libg72x.a:
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 @@ VIDIX_LIBS += -Lvidix -lvidix
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 --git a/configure b/configure
index 75055288ae..c867c380df 100755
--- a/configure
+++ b/configure
@@ -136,7 +136,7 @@ Optional features:
--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 @@ if test "$_mencoder" = yes ; then
fi
echores "$_mencoder"
-echocheck "lirc"
-if test "$_lirc" = auto ; then
- _lirc=no
- if test -c /dev/lirc ; then
- cat > $TMPC <<EOF
-#include <lirc/lirc_client.h>
-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 @@ _def_joystick='#undef HAVE_JOYSTICK'
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 @@ if test "$_new_input" = yes ; then
echo Checking for joystick ... "$_joystick"
fi
+echocheck "lirc"
+if test "$_lirc" = auto ; then
+ _lirc=no
+ if test -c /dev/lirc ; then
+ cat > $TMPC <<EOF
+#include <lirc/lirc_client.h>
+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 @@ DECORE_LIB = $_ld_decore
MENCODER = $_mencoder
ENCORE_LIB = $_ld_encore $_ld_mp3lame
DIRECTFB_LIB = $_ld_directfb
+NEW_INPUT_LIB = $_ld_new_input
# --- Some stuff for autoconfigure ----
$_target_arch