xanim - Audio and video player for X ChangeLog


# 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

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 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"
rm -f installed/xanim/xanim*.tar.*
mv xanim2801.tar.gz installed/xanim/

# Install the codecs:
cd ~/installed/xanim
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..."
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 {} \;

# If you ever want to uninstall xanim, this should do it:
rm -f /usr/X11R6/bin/xanim
test -d /usr/local/xanim && rm -r /usr/local/xanim
find ~/src -maxdepth 1 -type d -name "xanim-*" -exec rm -r {} \;
rm -f ~/installed/xanim-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2005-12-13 3:06pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.