# Instructions for installing mjpegtools from CVS are at the bottom
# mjpegtools 1.8.0
# ================
cd
test -f installed/mjpegtools-1.8.0.tar.gz &&
mv installed/mjpegtools-1.8.0.tar.gz .
test ! -f mjpegtools-1.8.0.tar.gz &&
wget http://download.sf.net/mjpeg/mjpegtools-1.8.0.tar.gz
mkdir -p -m 0700 src
cd src
test -d ./mjpeg_play && rm -r ./mjpeg_play
find -maxdepth 1 -type d -name "mjpegtools-*" -exec rm -r {} \;
tar xzvf ~/mjpegtools-1.8.0.tar.gz
cd mjpegtools-1.8.0
test $UID = 0 && chown -R root:root .
chmod -R u+w .
./configure
make
## Make failed for me with this error using gcc 3.3.6 and 3.4.5:
# lav_io.c: In function `lav_fileno':
# lav_io.c:1370: error: dereferencing pointer to incomplete type
## No luck with a quick Google, checked the mailing lists, SF bug tracker,
## patches, etc. I went with the CVS version.