1 --- sm-ssc/Utils/build.sh.orig 2011-08-13 23:59:46.353081910 +0300
2 +++ sm-ssc/Utils/build.sh 2011-08-13 23:59:25.519566995 +0300
4 echo "CONFIGURE_OPTIONS are passed to StepMania's configure."
6 echo ' -d, --download stop after ffmpeg download.'
7 - echo ' -f, --ffmpeg stop after building ffmpeg.'
8 echo ' -c, --configure stop after configuring StepMania.'
9 echo ' -s, --stepmania stop after building StepMania'
10 echo ' (do not copy binaries).'
22 -d|--download) s_download=yes ;;
23 - -f|--ffmpeg) s_ffmpeg=yes ;;
24 -c|--configure) s_configure=yes ;;
25 -s|--stepmania) s_stepmania=yes ;;
32 -ffmpeg=ffmpeg-$version
33 -directory=http://ffmpeg.org/releases
34 -if [ ! -d $ffmpeg ]; then
35 - message 'Downloading ffmpeg'
36 - if which bzip2 &>/dev/null; then
38 - ffmarc=ffmpeg-$version.tar.bz2
39 - elif which gzip &>/dev/null; then
41 - ffmarc=ffmpeg-$version.tar.gz
43 - failure 'Install either bzip2 or gzip.'
45 - if which curl &>/dev/null; then
47 - elif which wget &>/dev/null; then
50 - failure 'Install either curl or wget.'
52 - call $get $directory/$ffmarc
53 - message 'Extracting ffmpeg'
54 - call tar -$zipcommand $ffmarc
55 - message 'Cleaning up temporary files'
59 -if [ -n "$s_download" ]; then exit 0; fi
60 -args='--enable-static --disable-debug
61 ---enable-memalign-hack --disable-network --enable-small
62 ---disable-encoders --disable-ffserver
64 ---enable-demuxer=h261 --enable-demuxer=h263 --enable-demuxer=h264
65 ---enable-demuxer=m4v --enable-demuxer=mjpeg --enable-demuxer=mov
66 ---enable-demuxer=mpegps --enable-demuxer=mpegts
67 ---enable-demuxer=mpegvideo --enable-demuxer=ogg
68 ---enable-demuxer=rawvideo --enable-demuxer=yuv4mpegpipe
69 ---enable-decoder=h261 --enable-decoder=h263
70 ---enable-decoder=h263i --enable-decoder=h264 --enable-decoder=huffyuv
71 ---enable-decoder=mjpeg --enable-decoder=mjpegb
72 ---enable-decoder=mpeg_xvmc --enable-decoder=mpeg1video
73 ---enable-decoder=mpeg2video --enable-decoder=mpeg4
74 ---enable-decoder=mpegvideo --enable-decoder=msmpeg4v1
75 ---enable-decoder=msmpeg4v2 --enable-decoder=msmpeg4v3
76 ---enable-decoder=rawvideo --enable-decoder=theora
77 ---enable-parser=h261 --enable-parser=h263 --enable-parser=h264
78 ---enable-parser=mjpeg --enable-parser=mpeg4video
79 ---enable-parser=mpegaudio --enable-parser=mpegvideo
81 ---extra-cflags=-Dattribute_deprecated='
82 -if [ ! -f $ffmpeg/_inst/lib/libavcodec.a ]; then
84 - message 'Configuring ffmpeg'
85 - call ./configure --prefix="`pwd`/_inst" $args
86 - message 'Building ffmpeg'
87 - call make --jobs="$num_jobs" install-libs install-headers
90 -if [ -n "$s_ffmpeg" ]; then exit 0; fi
91 if [ ! -f _build/src/config.h ]; then
92 message 'Configuring StepMania'
95 - call ../configure --with-ffmpeg=../$ffmpeg/_inst "$@"
96 + call ../configure --with-jpeg "$@"
99 if [ -n "$s_configure" ]; then exit 0; fi