# libdvdread
# ==========
# I include the latest version (0.9.7) and also version 0.9.4 because that
# is the latest unpatched version that works with dvdbackup.
# I do include a patch for 0.9.7 too.
# libdvdread 0.9.7
# ================
cd
test -f installed/libdvdread-0.9.7.tar.gz &&
mv installed/libdvdread-0.9.7.tar.gz .
test ! -f libdvdread-0.9.7.tar.gz &&
wget http://www.dtek.chalmers.se/groups/dvd/dist/libdvdread-0.9.7.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libdvdread-*" -exec rm -r {} \;
tar xzvf ~/libdvdread-0.9.7.tar.gz
cd libdvdread-0.9.7
test $UID = 0 && chown -R root:root .
# Apply this patch if you'll be building dvdbackup against this version of
# libdvdread.
wget -nc http://englanders.cc/pub/linux/patches/\
libdvdread-0.9.7-udf.patch &&
patch -p0 < libdvdread-0.9.7-udf.patch
autoreconf -f -i
./configure
make
# Become root to install it
su
rm -f /usr/local/lib/libdvdread.*
make install
ldconfig
# If you ever want to uninstall libdvdread, this should do it:
cd
su
test -d src/libdvdread-* && ( cd src/libdvdread-* ; make uninstall )
rm -f /usr/local/lib/libdvdread.*
test -d /usr/local/include/dvdread && rm -r /usr/local/include/dvdread
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libdvdread-*" -exec rm -r {} \;
rm -f ~/installed/libdvdread-*.tar.*