Linux HOWTOs

About | Home | Search


HOWTO: libdv
Description: Decoder for DV format video, used by digital camcorders
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# libdv 1.0.0
# ===========
# Prerequisites:
# gawk
# sed
# grep
# pkg-config
# GLib >= 1.2.4
# GTK+ >= 1.2.4
# popt
# XFree86 or X.org

cd
test -f installed/libdv-1.0.0.tar.gz && mv installed/libdv-1.0.0.tar.gz .
test ! -f libdv-1.0.0.tar.gz &&
 wget http://download.sf.net/libdv/libdv-1.0.0.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libdv-*" -exec rm -r {} \;
tar xzvf ~/libdv-1.0.0.tar.gz
cd libdv-1.0.0
test $UID = 0 && chown -R root:root .
./configure
make

# Become root to install it
su

rm -f /usr/local/lib/libdv.*
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libdv-*.tar.*
mv libdv-1.0.0.tar.gz installed/


# If you ever want to uninstall libdv, this should do it:
# ('make uninstall' will do it if you have the source)
cd
su
test -d src/libdv-* && ( cd src/libdv-* ; make uninstall )
( cd /usr/local/bin ; rm -f encodedv dubdv dvconnect playdv )
test -d /usr/local/include/libdv && rm -r /usr/local/include/libdv
( cd /usr/local/man/man1 ; rm -f dubdv.1 dvconnect.1 encodedv.1 playdv.1 )
( cd /usr/local/share/man1 ; rm -f dubdv.1 dvconnect.1 encodedv.1 playdv.1 )
rm -f /usr/local/lib/libdv.* /usr/local/lib/pkgconfig/libdv.pc
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libdv-*" -exec rm -r {} \;
rm -f ~/installed/libdv-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>