Linux HOWTOs

About | Home | Search


HOWTO: zvbi
Description: VBI decoding library
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


# zvbi 0.2.30
# ===========
# Prerequisites:
# iconv
# libpng
# XFree86 or X.org
# gettext
# doxygen

cd
test -f installed/zvbi-0.2.30.tar.bz2 &&
 mv installed/zvbi-0.2.30.tar.bz2 .
test ! -f zvbi-0.2.30.tar.bz2 &&
 wget http://downloads.sf.net/zapping/zvbi-0.2.30.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "zvbi-*" -exec rm -r {} \;
tar xjvf ~/zvbi-0.2.30.tar.bz2
cd zvbi-0.2.30
test $UID = 0 && chown -R root:root .
./configure --disable-nls
make
make check

# Become root to install it
su

# Remove old library files, install it
( cd /usr/local/lib ; rm -f libzvbi.* libzvbi-chains.* )
make install
ldconfig

# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+w .

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/zvbi-*.tar.*
mv zvbi-0.2.30.tar.bz2 installed/


# If you ever want to uninstall zvbi, this should do it:
cd
su
test -d src/zvbi-* && ( cd src/zvbi-* ; make uninstall )
for pfx in /usr /usr/local
do
  ( cd ${pfx}/bin ; rm -f zvbi-chains zvbi-ntsc-cc )
  ( cd ${pfx}/lib ; rm -f libzvbi.* libzvbi-chains.* )
  ( cd ${pfx}/man/man1 ; rm -f zvbid.1 zvbi-chains.1 zvbi-ntsc-cc.1 )
  rm -f ${pfx}/include/libzvbi.h ${pfx}/sbin/zvbid \
   ${pfx}/lib/pkgconfig/zvbi-0.2.pc
done
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "zvbi-*" -exec rm -r {} \;
rm -f ~/installed/zvbi-*.tar.*

Back to the list


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