# FAME (Fast Assembly Mpeg Encoder)
# ====
# The FAME projects consists of libfame, fame, and recmpeg. All three are
# covered here.
# Create a directory for the source and tarballs
mkdir -p -m 0700 ~/installed/fame ~/src/fame
# libfame 0.9.1
# =============
cd
test -f installed/fame/libfame-0.9.1.tar.gz &&
mv installed/fame/libfame-0.9.1.tar.gz .
test ! -f libfame-0.9.1.tar.gz &&
wget http://easynews.dl.sourceforge.net/sourceforge/fame/\
libfame-0.9.1.tar.gz
cd src/fame
find -maxdepth 1 -type d -name "libfame-*" -exec rm -r {} \;
tar xzvf ~/libfame-0.9.1.tar.gz
cd libfame-0.9.1
test $UID = 0 && chown -R root:root .
# Apply this patch if you use gcc 3.4.x Without the patch, libfame will
# build and install OK, but when you try to build apps that use it, they
# will fail to build with an error like "undefined symbol: _mmx_one".
wget -nc http://englanders.cc/pub/linux/patches/notmine/\
libfame-0.9.1-gcc34-1.patch &&
patch -p1 < libfame-0.9.1-gcc34-1.patch
# Quiet the (harmless) error about 'missing' being too old or missing:
touch NEWS ChangeLog
autoreconf -f -i
# If you want to semi-fix the two 'test' errors that will show when
# configure is run:
cat configure | sed 's/$CC --version |/$CC --version | head -1 |/' \
> configure.new
test -s configure.new &&
( mv -f configure configure.old
mv -f configure.new configure
chmod +x configure )
./configure
make
su -c "make install ; ldconfig"
cd
rm -f installed/fame/libfame-*.tar.*
mv libfame-0.9.1.tar.gz installed/fame/
# If you ever want to uninstall libfame, cd into the source directory
# and run 'su -c "make uninstall"'