# xanim 2.80.1
# ============
# Create directories for the tarballs and source:
mkdir -p -m 0700 ~/installed/xanim ~/src
# Remove old directories that we used to use in this howto
test -d ~/installed/xanim && rm -r ~/installed/xanim
test -d ~/src/xanim && rm -r ~/src/xanim
cd
test -f installed/xanim2801.tar.gz && mv installed/xanim2801.tar.gz .
test ! -f xanim2801.tar.gz &&
wget http://xanim.polter.net/files/xanim2801.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "xanim*" -exec rm -r {} \;
tar xzvf ~/xanim2801.tar.gz
cd xanim2801
test $UID = 0 && chown -R root:root .
# If you previously installed MPlayer and it's xanim codecs into
# /usr/local/lib/xanim/mods, change XA_DLL_PATH in Imakefile to point there
# instead. ...or you can add something like this to your /etc/profile (or
# .bash_login, or create a /etc/profile.d/xanim):
# export XANIM_MOD_DIR=/usr/local/lib/xanim/mods
#
# The default location for them is /usr/local/xanim/mods
xmkmf
# xmkmf ass|u|me-s that the actual .h files are in /usr/X11R6/include, but
# in the case of Slackware 10.0 anyway, that's not correct - they're in
# /usr/X11R6/include/X11 (aka. /usr/include/X11):
cat Makefile | sed 's/\/usr\/X11R6\/include/\/usr\/X11R6\/include\/X11/g' \
> Makefile.new
test -s Makefile.new &&
mv -f Makefile Makefile.old &&
mv -f Makefile.new Makefile
make xanim
su -c "make install ; strip /usr/X11R6/bin/xanim"
cd
rm -f installed/xanim/xanim*.tar.*
mv xanim2801.tar.gz installed/xanim/
# Install the codecs:
cd ~/installed/xanim
su
mkdir -p /usr/local/xanim/mods
for codec in vid_h261_1.0_linuxELFx86g21.tgz vid_h263_1.0_linuxELFx86g21.tgz \
vid_iv32_2.1_linuxELFx86g21.tgz vid_iv41_1.0_linuxELFx86g21.tgz \
vid_iv50_1.0_linuxELFx86g21.tgz vid_cvid_2.0_linuxELFx86g21.tgz \
vid_cyuv_1.0_linuxELFx86g21.tgz; do
test ! -f $codec && wget http://xanim.polter.net/dlls/$codec
test -s $codec && tar xzvf $codec -C /usr/local/xanim/mods/
echo "Hit enter to get the next one..."
read
done
chown -R $USER .
chown -R root:root /usr/local/xanim/mods
find /usr/local/xanim/mods -type f -name "*.readme" -exec chmod 644 {} \;
find /usr/local/xanim/mods -type f -name "*.xa" -exec chmod 755 {} \;
exit
# If you ever want to uninstall xanim, this should do it:
su
rm -f /usr/X11R6/bin/xanim
test -d /usr/local/xanim && rm -r /usr/local/xanim
exit
find ~/src -maxdepth 1 -type d -name "xanim-*" -exec rm -r {} \;
rm -f ~/installed/xanim-*.tar.*