diff -urN mplayer-svn-r27654.orig/configure mplayer-svn-r27654/configure --- mplayer-svn-r27654.orig/configure 2008-09-22 00:11:33 +0300 +++ mplayer-svn-r27654/configure 2008-09-22 01:06:06 +0300 @@ -129,7 +129,7 @@ x86_64() { case "$host_arch" in - x86_64|amd64) return 0 ;; + x86-64|x86_64|amd64) return 0 ;; *) return 1 ;; esac } @@ -1307,7 +1307,7 @@ case "`uname -m 2>&1`" in i[3-9]86*|x86|x86pc|k5|k6|k6_2|k6_3|k6-2|k6-3|pentium*|athlon*|i586_i686|i586-i686|BePC) host_arch=i386 ;; ia64) host_arch=ia64 ;; - x86_64|amd64) + x86-64|x86_64|amd64) if [ -n "`$_cc -dumpmachine | sed -n '/^x86_64-/p;/^amd64-/p'`" -a \ -z "`echo $CFLAGS | grep -- -m32`" ]; then host_arch=x86_64 @@ -1894,7 +1894,7 @@ _optimizing='' ;; - x86_64|amd64) + x86-64|x86_64|amd64) _arch='X86 X86_64' _target_arch='ARCH_X86_64 = yes' _target_arch_x86="ARCH_X86 = yes" @@ -2932,6 +2932,7 @@ _noinputmodules="network $_noinputmodules" _def_network='#undef CONFIG_NETWORK' _ftp=no + _live=no fi echores "$_network" @@ -3357,7 +3358,7 @@ echocheck "termcap" -if test "$_termcap" = auto ; then +if test "$_termcap" != no ; then cat > $TMPC < #include @@ -3382,7 +3383,7 @@ _def_termios='#undef HAVE_TERMIOS' _def_termios_h='#undef HAVE_TERMIOS_H' _def_termios_sys_h='#undef HAVE_SYS_TERMIOS_H' -if test "$_termios" = auto ; then +if test "$_termios" != no ; then _termios=no for _termios_header in "sys/termios.h" "termios.h"; do cat > $TMPC < $TMPC << EOF @@ -5253,7 +5256,7 @@ echores "$_jack" echocheck "OpenAL" -if test "$_openal" = auto ; then +if test "$_openal" != no ; then _openal=no cat > $TMPC << EOF #ifdef OPENAL_AL_H @@ -5699,7 +5702,7 @@ _res_comment="freetype support needed" fi echocheck "fontconfig" -if test "$_fontconfig" = auto ; then +if test "$_fontconfig" != no ; then cat > $TMPC << EOF #include #include @@ -6013,7 +6016,7 @@ echores "$_speex" echocheck "OggTheora support" -if test "$_theora" = auto ; then +if test "$_theora" != no ; then _theora=no cat > $TMPC << EOF #include @@ -6179,7 +6182,7 @@ echocheck "FAAC (AAC encoder) support" -if test "$_faac" = auto ; then +if test "$_faac" != no ; then cat > $TMPC < #include @@ -6303,7 +6306,7 @@ echocheck "Win32 codecs" -if test "$_win32dll" = auto ; then +if test "$_win32dll" != no ; then _win32dll=no if x86_32 && ! qnx; then _win32dll=yes @@ -6412,56 +6415,6 @@ fi echores "$_nemesi" -echocheck "LIVE555 Streaming Media libraries" -if test "$_live" = auto && test "$_network" = yes ; then - cat > $TMPCPP << EOF -#include -#if (LIVEMEDIA_LIBRARY_VERSION_INT < 1141257600) -#error Please upgrade to version 2006.03.03 or later of the "LIVE555 Streaming Media" libraries - available from -#endif -int main(void) { return 0; } -EOF - - _live=no - for I in $_inc_extra "-I$_libdir/live" "-I/usr/lib/live" "-I/usr/local/live" "-I/usr/local/lib/live" ; do - cxx_check $I/liveMedia/include $I/UsageEnvironment/include \ - $I/groupsock/include && _livelibdir=`echo $I| sed s/-I//` && \ - _ld_extra="$_livelibdir/liveMedia/libliveMedia.a \ - $_livelibdir/groupsock/libgroupsock.a \ - $_livelibdir/UsageEnvironment/libUsageEnvironment.a \ - $_livelibdir/BasicUsageEnvironment/libBasicUsageEnvironment.a \ - $_ld_extra -lstdc++" \ - _inc_extraxx="-I$_livelibdir/liveMedia/include \ - -I$_livelibdir/UsageEnvironment/include \ - -I$_livelibdir/BasicUsageEnvironment/include \ - -I$_livelibdir/groupsock/include" && \ - _live=yes && break - done - if test "$_live" != yes ; then - if cxx_check -I/usr/include/liveMedia -I/usr/include/UsageEnvironment -I/usr/include/groupsock; then - _live_dist=yes - fi - fi -fi -if test "$_live" = yes && test "$_network" = yes; then - _res_comment="using $_livelibdir" - _def_live='#define CONFIG_LIVE555 1' - _inputmodules="live555 $_inputmodules" -elif test "$_live_dist" = yes && test "$_network" = yes; then - _res_comment="using distribution version" - _live="yes" - _def_live='#define CONFIG_LIVE555 1' - _ld_extra="$_ld_extra -lliveMedia -lgroupsock -lUsageEnvironment -lBasicUsageEnvironment -lstdc++" - _inc_extraxx="-I/usr/include/liveMedia -I/usr/include/UsageEnvironment \ - -I/usr/include/BasicUsageEnvironment -I/usr/include/groupsock" - _inputmodules="live555 $_inputmodules" -else - _live=no - _def_live='#undef CONFIG_LIVE555' - _noinputmodules="live555 $_noinputmodules" -fi -echores "$_live" - echocheck "FFmpeg libavutil" if test "$_libavutil_a" = auto ; then @@ -6471,7 +6424,7 @@ else die "MPlayer will not compile without libavutil in the source tree." fi -elif test "$_libavutil_so" = auto ; then +elif test "$_libavutil_so" != no ; then _libavutil_so=no cat > $TMPC << EOF #include @@ -6509,7 +6462,7 @@ _libavcodec_a="yes" _res_comment="static" fi -elif test "$_libavcodec_so" = auto ; then +elif test "$_libavcodec_so" != no ; then _libavcodec_so=no _res_comment="libavcodec.so is discouraged over static libavcodec" cat > $TMPC << EOF @@ -6553,7 +6506,7 @@ _libavformat_a=yes _res_comment="static" fi -elif test "$_libavformat_so" = auto ; then +elif test "$_libavformat_so" != no ; then _libavformat_so=no cat > $TMPC < @@ -6589,7 +6542,7 @@ _libpostproc_a='yes' _res_comment="static" fi -elif test "$_libpostproc_so" = auto ; then +elif test "$_libpostproc_so" != no ; then _libpostproc_so=no cat > $TMPC << EOF #include @@ -6649,7 +6602,7 @@ echores "$_libswscale" echocheck "libamr narrowband" -if test "$_libamr_nb" = auto ; then +if test "$_libavcodec_a" = yes -a "$_libamr_nb" = auto ; then _libamr_nb=no cat > $TMPC << EOF #include @@ -6677,7 +6630,7 @@ echocheck "libamr wideband" -if test "$_libamr_wb" = auto ; then +if test "$_libavcodec_a" = yes -a "$_libamr_wb" = auto ; then _libamr_wb=no cat > $TMPC << EOF #include @@ -6724,7 +6677,7 @@ echocheck "Xvid" -if test "$_xvid" = auto ; then +if test "$_xvid" != no ; then _xvid=no cat > $TMPC << EOF #include @@ -6763,7 +6716,7 @@ echocheck "x264" -if test "$_x264" = auto ; then +if test "$_x264" != no ; then cat > $TMPC << EOF #include #include @@ -6871,7 +6824,7 @@ echores "$_libschroedinger_lavc" echocheck "libnut" -if test "$_libnut" = auto ; then +if test "$_libnut" != no ; then cat > $TMPC << EOF #include #include @@ -7321,6 +7274,57 @@ fi echores "$_ftp" +echocheck "LIVE555 Streaming Media libraries" +if test "$_live" != no && test "$_network" = yes ; then + cat > $TMPCPP << EOF +#include +#if (LIVEMEDIA_LIBRARY_VERSION_INT < 1141257600) +#error Please upgrade to version 2006.03.03 or later of the "LIVE555 Streaming Media" libraries - available from +#endif +int main(void) { return 0; } +EOF + + _live=no + for I in "$_inc_extra" -I"$_libdir/live" -I"/usr/lib/live" -I"/usr/local/live" -I"/usr/local/lib/live" ; do + cxx_check $I/liveMedia/include $I/UsageEnvironment/include \ + $I/groupsock/include && _livelibdir=`echo $I | sed s/^-I//` && \ + _ld_extra="$_livelibdir/liveMedia/libliveMedia.a \ + $_livelibdir/groupsock/libgroupsock.a \ + $_livelibdir/UsageEnvironment/libUsageEnvironment.a \ + $_livelibdir/BasicUsageEnvironment/libBasicUsageEnvironment.a \ + $_ld_extra -lstdc++" \ + _inc_extraxx="-I$_livelibdir/liveMedia/include \ + -I$_livelibdir/UsageEnvironment/include \ + -I$_livelibdir/BasicUsageEnvironment/include \ + -I$_livelibdir/groupsock/include" && \ + _live=yes && break + done + if test "$_live" != yes ; then + if cxx_check -I/usr/include/liveMedia -I/usr/include/UsageEnvironment -I/usr/include/groupsock; then + _live_dist=yes + fi + fi +fi +if test "$_live" = yes && test "$_network" = yes; then + _res_comment="using $_livelibdir" + _def_live='#define CONFIG_LIVE555 1' + _inputmodules="live555 $_inputmodules" +elif test "$_live_dist" = yes && test "$_network" = yes; then + _res_comment="using distribution version" + _live="yes" + _def_live='#define CONFIG_LIVE555 1' + _ld_extra="$_ld_extra -lliveMedia -lgroupsock -lUsageEnvironment -lBasicUsageEnvironment -lstdc++" + _inc_extraxx="-I/usr/include/liveMedia -I/usr/include/UsageEnvironment \ + -I/usr/include/BasicUsageEnvironment -I/usr/include/groupsock" + _inputmodules="live555 $_inputmodules" +else + _live=no + _def_live='#undef CONFIG_LIVE555' + _noinputmodules="live555 $_noinputmodules" +fi +echores "$_live" + + echocheck "vstream client" if test "$_vstream" = auto ; then _vstream=no @@ -7402,7 +7406,7 @@ if darwin ; then _ld_extra="$_ld_extra ${_xmmslibdir}/libxmms.dylib" else - _ld_extra="$_ld_extra ${_xmmslibdir}/libxmms.so.1 -export-dynamic" + _ld_extra="$_ld_extra `xmms-config --libs`" fi else _def_xmms='#undef CONFIG_XMMS' @@ -7462,10 +7466,7 @@ if test "$_gui" = yes ; then # Required libraries - if test "$_libavcodec" != yes || - ! echo $_libavdecoders | grep -q PNG_DECODER ; then - die "The GUI requires libavcodec with PNG support (needs zlib)." - fi + test "$_libavcodec" = yes || die "The GUI requires libavcodec with PNG support." test "$_freetype" = no && test "$_bitmap_font" = no && \ die "The GUI requires either FreeType or bitmap font support." if ! win32 ; then diff -urN mplayer-svn-r27654.orig/Makefile mplayer-svn-r27654/Makefile --- mplayer-svn-r27654.orig/Makefile 2008-09-22 00:11:33 +0300 +++ mplayer-svn-r27654/Makefile 2008-09-22 01:06:18 +0300 @@ -883,7 +883,7 @@ ###### tests / tools ####### -TEST_OBJS = mp_msg-mencoder.o mp_fifo.o osdep/$(GETCH) osdep/$(TIMER) -ltermcap -lm +TEST_OBJS = mp_msg-mencoder.o mp_fifo.o osdep/$(GETCH) osdep/$(TIMER) codec-cfg-test$(EXESUF): codec-cfg.c codecs.conf.h codec-cfg.h $(TEST_OBJS) $(CC) -I. -DTESTING -o $@ $^ @@ -919,6 +919,7 @@ TOOLS/asfinfo$(EXESUF) \ TOOLS/avi-fix$(EXESUF) \ TOOLS/avisubdump$(EXESUF) \ + TOOLS/bmovl-test$(EXESUF) \ TOOLS/compare$(EXESUF) \ TOOLS/dump_mp4$(EXESUF) \ TOOLS/movinfo$(EXESUF) \ @@ -926,12 +927,7 @@ TOOLS/subrip$(EXESUF) \ TOOLS/vivodump$(EXESUF) \ -ifdef ARCH_X86 -TOOLS += TOOLS/modify_reg$(EXESUF) -endif - ALLTOOLS = $(TOOLS) \ - TOOLS/bmovl-test$(EXESUF) \ TOOLS/vfw2menc$(EXESUF) \ tools: $(TOOLS)