# libmikmod 3.1.11a
# =================
# Slackware 9.0, 9.1, 10.0, and 10.1's 'libmikmod' packages include version
# 3.1.10, 10.2 and 11.0's include 3.1.11a
#
# As of Slackware 12.0, libmikmod is no longer included. See the
# ChangeLog.
# If you ever want to uninstall libmikmod, or clean up files from an old
# version before installing the new one, skip down to the bottom for
# instructions
# This used to be part of the SDL howto, so we move files in ~/installed/SDL
# to ~/installed and remove any source in ~/src/SDL:
test -d ~/installed/SDL &&
mv -f ~/installed/SDL/libmikmod-*.tar.* ~/installed/
find ~/src/SDL -maxdepth 1 -type d -name "libmikmod-*" -exec rm -r {} \;
cd
test -f installed/libmikmod-3.1.11.tar.gz &&
mv installed/libmikmod-3.1.11.tar.gz .
test ! -f libmikmod-3.1.11.tar.gz &&
wget http://mikmod.raphnet.net/files/libmikmod-3.1.11.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libmikmod-*" -exec rm -r {} \;
tar xzvf ~/libmikmod-3.1.11.tar.gz
cd libmikmod-3.1.11
test $UID = 0 && chown -R root:root .
# Apply patch from the author to bring it up to 3.1.11a:
wget -nc http://mikmod.raphnet.net/files/libmikmod-3.1.11-a.diff &&
patch -p1 < libmikmod-3.1.11-a.diff
mkdir build
cd build
../configure --prefix=/usr --disable-static
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg libmikmod
make install
ldconfig
chown -R $USER .
chmod -R u+w .
# If you ever want to uninstall libmikmod, this should do it:
cd
su
test -d src/libmikmod-* && ( cd src/libmikmod-* ; make uninstall )
for pfx in /usr /usr/local; do
rm -f ${pfx}/bin/libmikmod-config \
${pfx}/include/mikmod.h ${pfx}/info/mikmod.info \
${pfx}/lib/libmikmod.* ${pfx}/man/man1/libmikmod-config.1 \
${pfx}/share/aclocal/libmikmod.m4
done
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libmikmod-*" -exec rm -r {} \;
rm -f ~/installed/libmikmod-*.tar.*