change build.sh to use ffmpeg 0.6 under Linux; fixes video playback

This commit is contained in:
Flameshadowxeroshin
2010-09-25 10:41:08 -05:00
parent 1aab17e2e0
commit c1d5f51a01
+18 -17
View File
@@ -64,10 +64,10 @@ usage () {
} }
version () { version () {
echo 'build.sh (StepMania) 2.6' echo 'build.sh (StepMania) 2.61'
echo 'Copyright (C) 2006-2009 Steve Checkoway' echo 'Copyright (C) 2006-2009 Steve Checkoway'
echo 'StepMania is Copyright (C) 2001-2009 Chris Danford et al.' echo 'StepMania is Copyright (C) 2001-2009 Chris Danford et al.'
echo 'sm-ssc is Copyright (C) 2009 the spinal shark collective' echo 'sm-ssc is Copyright (C) 2009-2010 the spinal shark collective'
exit 0 exit 0
} }
@@ -103,15 +103,19 @@ while [ $# -gt 0 ]; do
*) usage 1 ;; *) usage 1 ;;
esac esac
done done
revision=8448 version=0.6
repository=svn://svn.mplayerhq.hu/ffmpeg/trunk/ ffmpeg=ffmpeg-$version
ffmpeg=ffmpeg-r$revision directory=http://ffmpeg.org/releases
swscale_rev=26201
swscale_repo=svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
if [ ! -d $ffmpeg ]; then if [ ! -d $ffmpeg ]; then
message 'Downloading ffmpeg' message 'Downloading ffmpeg'
if ! which svn &>/dev/null; then if which bzip2 &>/dev/null; then
failure 'Install subversion.' zipcommand=jxf
ffmarc=ffmpeg-$version.tar.bz2
elif which gzip &>/dev/null
zipcommand=zxf
ffmarc=ffmpeg-$version.tar.gz
else
failure 'Install either bzip2 or gzip.'
fi fi
if which curl &>/dev/null; then if which curl &>/dev/null; then
get='curl -O' get='curl -O'
@@ -120,14 +124,11 @@ if [ ! -d $ffmpeg ]; then
else else
failure 'Install either curl or wget.' failure 'Install either curl or wget.'
fi fi
call svn co --ignore-externals -r $revision $repository $ffmpeg call $get $directory/$ffmarc
call svn co -r $swscale_rev $swscale_repo $ffmpeg/libswscale message 'Extracting ffmpeg'
message 'Downloading ffmpeg patch' call tar -$zipcommand $ffmarc
cd $ffmpeg message 'Cleaning up temporary files'
call $get http://stepmania.sourceforge.net/ffmpeg-r8448-avi.patch call rm $ffmarc
message 'Patching ffmpeg'
call 'patch -p1 < ffmpeg-r8448-avi.patch'
cd ..
fi fi
if [ -n "$s_download" ]; then exit 0; fi if [ -n "$s_download" ]; then exit 0; fi