# libdvdnav 0.1.10
# ================
# Prerequisites:
# autoconf, automake, and libtool (if you have to run autoreconf below)
# doxygen (optional)
cd
test -f installed/libdvdnav-0.1.10.tar.gz &&
mv installed/libdvdnav-0.1.10.tar.gz .
test ! -f libdvdnav-0.1.10.tar.gz &&
wget http://download.sf.net/dvd/libdvdnav-0.1.10.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libdvdnav-*" -exec rm -r {} \;
tar xzvf ~/libdvdnav-0.1.10.tar.gz
cd libdvdnav-0.1.10
test $UID = 0 && chown -R root:root .
# The build system is set up for automake 1.6 (1.10 is current as I write
# this). If you don't have automake 1.6 installed, run this to quiet build
# complaints:
autoreconf -f -i
./configure
make
# Become root to install it
su
rm -f /usr/local/lib/libdvdnav.*
make install
ldconfig
# If you ever want to uninstall libdvdnav, this should do it:
cd
su
test -d src/libdvdnav-* && ( cd src/libdvdnav-* ; make uninstall )
test -d /usr/local/include/dvdnav && rm -r /usr/local/include/dvdnav
rm -f /usr/local/bin/dvdnav-config /usr/local/lib/libdvdnav.* \
/usr/local/share/aclocal/dvdnav.m4
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libdvdnav-*" -exec rm -r {} \;
rm -f ~/installed/libdvdnav-*.tar.*