Linux HOWTOs

About | Home | Search


HOWTO: libcdaudio
Description: Library for controlling audio CDs
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


# libcdaudio 0.99.12p2
# ====================
# Prerequisites:
# gawk
# grep
# sed
# pkg-config

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


# If you ever want to uninstall libcdaudio, this should do it:
cd
su
test -d src/libcdaudio-* && ( cd src/libcdaudio-* ; make uninstall )
rm -f /usr/local/bin/libcdaudio-config /usr/local/include/cdaudio.h \
 /usr/local/lib/libcdaudio.* /usr/local/share/aclocal/libcdaudio.m4 \
 /usr/local/lib/pkgconfig/libcdaudio.pc
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libcdaudio-*" -exec rm -r {} \;
rm -f ~/installed/libcdaudio-*.tar.*

Back to the list


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