# libdca/libdts 0.0.5
# ===================
# You'll see both libdca and libdts all over the place, the directory
# name for 0.0.2 was one, with 0.0.5 it's the other, both are used
# interchangeably in the README. I get that DCA = DTS Coherent Acoustics,
# but I'm not sure which name is "correct".
cd
test -f installed/libdca-0.0.5.tar.bz2 &&
mv installed/libdca-0.0.5.tar.bz2 .
test ! -f libdca-0.0.5.tar.bz2 &&
wget http://download.videolan.org/pub/videolan/libdca/0.0.5/\
libdca-0.0.5.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libdts-*" -exec rm -r {} \;
find -maxdepth 1 -type d -name "libdca-*" -exec rm -r {} \;
tar xjvf ~/libdca-0.0.5.tar.bz2
cd libdca-0.0.5
test $UID = 0 && chown -R root:root .
./configure
make
# Become root to install it
su
# Remove old library files, install it
( cd /usr/local/lib ; rm -f libdts.* libdts_pic.* )
make install
ldconfig
# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+w .
# If you ever want to uninstall libdca/libdts, this should do it:
cd
su
test -d src/libdca-* && ( cd src/libdca-* ; make uninstall )
( cd /usr/local/bin ; rm -f dtsdec extract_dts )
( cd /usr/local/lib ; rm -f libdts.* libdts_pic.* )
( cd /usr/local/man/man1 ; rm -f dtsdec.1 extract_dts.1 )
rm -f /usr/local/lib/pkgconfig/libdts.pc \
/usr/local/include/dts.h
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libdca-*" -exec rm -r {} \;
rm -f ~/installed/libdca-*.tar.*