comparison configure @ 32313:ad6178f15dd1

Use a single svn:externals declaration for all of FFmpeg. This avoids duplicating parts of the FFmpeg build system locally, which is a brittle and maintenance-heavy process.
author diego
date Tue, 28 Sep 2010 20:46:19 +0000
parents 50f2498749da
children d7de0c0de45c
comparison
equal deleted inserted replaced
32312:362540be208e 32313:ad6178f15dd1
581 ffmpeg_so=auto 581 ffmpeg_so=auto
582 _libavcodec_mpegaudio_hp=yes 582 _libavcodec_mpegaudio_hp=yes
583 _libopencore_amrnb=auto 583 _libopencore_amrnb=auto
584 _libopencore_amrwb=auto 584 _libopencore_amrwb=auto
585 libopenjpeg=auto 585 libopenjpeg=auto
586 libavdecoders_all=$(sed -n 's/^[^#]*DEC.*(.*, *\(.*\)).*/\1_decoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]') 586 libavdecoders_all=$(sed -n 's/^[^#]*DEC.*(.*, *\(.*\)).*/\1_decoder/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
587 libavdecoders=$(echo $libavdecoders_all | sed -e 's/ LIB[A-Z0-9_]*_DECODER//g') 587 libavdecoders=$(echo $libavdecoders_all | sed -e 's/ LIB[A-Z0-9_]*_DECODER//g')
588 libavencoders_all=$(sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]') 588 libavencoders_all=$(sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
589 libavencoders=$(echo $libavencoders_all | sed -e 's/ LIB[A-Z0-9_]*_ENCODER//g' -e s/AAC_ENCODER//) 589 libavencoders=$(echo $libavencoders_all | sed -e 's/ LIB[A-Z0-9_]*_ENCODER//g' -e s/AAC_ENCODER//)
590 libavparsers_all=$(sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]') 590 libavparsers_all=$(sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
591 libavparsers=$libavparsers_all 591 libavparsers=$libavparsers_all
592 libavbsfs_all=$(sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]') 592 libavbsfs_all=$(sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
593 libavbsfs=$libavbsfs_all 593 libavbsfs=$libavbsfs_all
594 libavhwaccels_all=$(sed -n 's/^[^#]*HWACCEL.*(.*, *\(.*\)).*/\1_hwaccel/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]') 594 libavhwaccels_all=$(sed -n 's/^[^#]*HWACCEL.*(.*, *\(.*\)).*/\1_hwaccel/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
595 # Disable all hardware accelerators for now. 595 # Disable all hardware accelerators for now.
596 libavhwaccels= 596 libavhwaccels=
597 libavdemuxers_all=$(sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]') 597 libavdemuxers_all=$(sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' ffmpeg/libavformat/allformats.c | tr '[a-z]' '[A-Z]')
598 libavdemuxers=$(echo $libavdemuxers_all | sed -e 's/ LIB[A-Z0-9_]*_DEMUXER//g' -e s/REDIR_DEMUXER// -e s/AVISYNTH_DEMUXER//) 598 libavdemuxers=$(echo $libavdemuxers_all | sed -e 's/ LIB[A-Z0-9_]*_DEMUXER//g' -e s/REDIR_DEMUXER// -e s/AVISYNTH_DEMUXER//)
599 libavmuxers_all=$(sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]') 599 libavmuxers_all=$(sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' ffmpeg/libavformat/allformats.c | tr '[a-z]' '[A-Z]')
600 libavmuxers=$(echo $libavmuxers_all | sed -e 's/ LIB[A-Z0-9_]*_MUXER//g' -e s/RTP_MUXER// -e s/RTSP_MUXER//) 600 libavmuxers=$(echo $libavmuxers_all | sed -e 's/ LIB[A-Z0-9_]*_MUXER//g' -e s/RTP_MUXER// -e s/RTSP_MUXER//)
601 libavprotocols_all=$(sed -n 's/^[^#]*PROTOCOL.*(.*, *\(.*\)).*/\1_protocol/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]') 601 libavprotocols_all=$(sed -n 's/^[^#]*PROTOCOL.*(.*, *\(.*\)).*/\1_protocol/p' ffmpeg/libavformat/allformats.c | tr '[a-z]' '[A-Z]')
602 libavprotocols=$libavprotocols_all 602 libavprotocols=$libavprotocols_all
603 _mencoder=yes 603 _mencoder=yes
604 _mplayer=yes 604 _mplayer=yes
605 _x11=auto 605 _x11=auto
606 _xshape=auto 606 _xshape=auto
1474 if test $(echo $host_arch) != "x86_64" ; then 1474 if test $(echo $host_arch) != "x86_64" ; then
1475 host_arch=$(echo $host_arch | tr '_' '-') 1475 host_arch=$(echo $host_arch | tr '_' '-')
1476 fi 1476 fi
1477 fi 1477 fi
1478 1478
1479 extra_cflags="-I. $extra_cflags" 1479 extra_cflags="-I. -Iffmpeg $extra_cflags"
1480 _timer=timer-linux.c 1480 _timer=timer-linux.c
1481 _getch=getch2.c 1481 _getch=getch2.c
1482 if freebsd ; then 1482 if freebsd ; then
1483 extra_ldflags="$extra_ldflags -L/usr/local/lib" 1483 extra_ldflags="$extra_ldflags -L/usr/local/lib"
1484 extra_cflags="$extra_cflags -I/usr/local/include" 1484 extra_cflags="$extra_cflags -I/usr/local/include"
6932 fi 6932 fi
6933 echores "$_librtmp" 6933 echores "$_librtmp"
6934 6934
6935 6935
6936 echocheck "FFmpeg" 6936 echocheck "FFmpeg"
6937 test -d libavutil || 6937 test -d ffmpeg/libavutil ||
6938 die "MPlayer will not compile without libavutil in the source tree." 6938 die "MPlayer will not compile without libavutil in the source tree."
6939 ffmpeg=no 6939 ffmpeg=no
6940 if test "$ffmpeg_a" = auto ; then 6940 if test "$ffmpeg_a" = auto ; then
6941 test -d libavcore && ffmpeg_a=yes && ffmpeg=yes 6941 test -d ffmpeg/libavcore && ffmpeg_a=yes && ffmpeg=yes
6942 elif test "$ffmpeg_so" = auto ; then 6942 elif test "$ffmpeg_so" = auto ; then
6943 ffmpeg_so=no 6943 ffmpeg_so=no
6944 if $_pkg_config --exists libavcore ; then 6944 if $_pkg_config --exists libavcore ; then
6945 inc_ffmpeg=$($_pkg_config --cflags libpostproc libswscale libavformat libavcodec libavutil libavcore) 6945 inc_ffmpeg=$($_pkg_config --cflags libpostproc libswscale libavformat libavcodec libavutil libavcore)
6946 _ld_tmp=$($_pkg_config --libs libpostproc libswscale libavformat libavcodec libavutil libavcore) 6946 _ld_tmp=$($_pkg_config --libs libpostproc libswscale libavformat libavcodec libavutil libavcore)
8249 YASM = $_yasm 8249 YASM = $_yasm
8250 YASMDEP = $_yasm 8250 YASMDEP = $_yasm
8251 YASMFLAGS = $YASMFLAGS 8251 YASMFLAGS = $YASMFLAGS
8252 8252
8253 CONFIG_STATIC = yes 8253 CONFIG_STATIC = yes
8254 SRC_PATH = .. 8254 SRC_PATH = ../..
8255 BUILD_ROOT = .. 8255 BUILD_ROOT = ..
8256 LIBPREF = lib 8256 LIBPREF = lib
8257 LIBSUF = .a 8257 LIBSUF = .a
8258 LIBNAME = \$(LIBPREF)\$(NAME)\$(LIBSUF) 8258 LIBNAME = \$(LIBPREF)\$(NAME)\$(LIBSUF)
8259 FULLNAME = \$(NAME)\$(BUILDSUF) 8259 FULLNAME = \$(NAME)\$(BUILDSUF)
8826 $def_av_fast_unaligned 8826 $def_av_fast_unaligned
8827 #endif /* AVUTIL_AVCONFIG_H */ 8827 #endif /* AVUTIL_AVCONFIG_H */
8828 EOF 8828 EOF
8829 8829
8830 # Do not overwrite an unchanged avconfig.h to avoid superfluous rebuilds. 8830 # Do not overwrite an unchanged avconfig.h to avoid superfluous rebuilds.
8831 cmp -s "$TMPH" libavutil/avconfig.h || mv -f "$TMPH" libavutil/avconfig.h 8831 cmp -s "$TMPH" ffmpeg/libavutil/avconfig.h || mv -f "$TMPH" ffmpeg/libavutil/avconfig.h
8832 8832
8833 8833
8834 if x86; then 8834 if x86; then
8835 # Create a skeleton config.asm with just the ARCH_ definitions for FFmpeg. 8835 # Create a skeleton config.asm with just the ARCH_ definitions for FFmpeg.
8836 > "$TMPS" 8836 > "$TMPS"
8839 echo "%define ARCH_${part}" >> "$TMPS" 8839 echo "%define ARCH_${part}" >> "$TMPS"
8840 done 8840 done
8841 8841
8842 cmp -s "$TMPS" config.asm || mv -f "$TMPS" config.asm 8842 cmp -s "$TMPS" config.asm || mv -f "$TMPS" config.asm
8843 fi 8843 fi
8844
8845
8846 # Create a config.mak for FFmpeg that includes MPlayer's config.mak.
8847 cat > ffmpeg/config.mak << EOF
8848 include ../../config.mak
8849 EOF
8844 8850
8845 ############################################################################# 8851 #############################################################################
8846 8852
8847 cat << EOF 8853 cat << EOF
8848 8854