# As of version 1.1, mpeg4ip no longer overwrites SDL with a modified version.
# If you want to ensure that you don't have old files from a previous version
# lying around when you upgrade, you may want to cd into the old version's
# source directory and run 'make uninstall' before proceeding here.
cd
test -f installed/mpeg4ip-1.4.1.tar.gz && mv mpeg4ip-1.4.1.tar.gz .
test ! -f mpeg4ip-1.4.1.tar.gz &&
wget http://download.sf.net/mpeg4ip/mpeg4ip-1.4.1.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "mpeg4ip-*" -exec rm -r {} \;
tar xzvf ~/mpeg4ip-1.4.1.tar.gz
cd mpeg4ip-1.4.1
test $UID = 0 && chown -R root:root .
# I add --disable-server below because I don't need the mp4live server. If
# you do, leave that off of the configure line.