Linux HOWTOs

About | Home | Search


HOWTO: libmad
Description: High-quality mpeg audio decoder
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


# libmad 0.15.1b
# ==============
# Slackware 9.0's 'mad' package includes 0.14.2b, 9.1's 'libmad' package
# includes 0.15.0b, 10.0 and 10.1's include 0.15.1b

# Prerequisites:
# gawk
# sed
# grep

cd
test -f installed/libmad-0.15.1b.tar.gz &&
 mv installed/libmad-0.15.1b.tar.gz .
test ! -f libmad-0.15.1b.tar.gz &&
 wget http://download.sf.net/mad/libmad-0.15.1b.tar.gz

# Verify tarball w/ md5sum:
echo "1be543bc30c56fb6bea1d7bf6a64e66c  libmad-0.15.1b.tar.gz" | md5sum -c

# Verify tarball w/ sha1sum:
echo "cac19cd00e1a907f3150cc040ccc077783496d76  libmad-0.15.1b.tar.gz" | \
 sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 4BF38A33 > /dev/null 2>&1 || gpg --recv-keys 4BF38A33 ) &&
 wget -nc http://download.sf.net/mad/libmad-0.15.1b.tar.gz.sign &&
 gpg --verify libmad-0.15.1b.tar.gz.sign && rm libmad-0.15.1b.tar.gz.sign

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libmad-*" -exec rm -r {} \;
tar xzvf ~/libmad-0.15.1b.tar.gz
cd libmad-0.15.1b
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --disable-debugging
make

# Become root to install it
su
removepkg mad libmad
rm -f /usr/lib/libmad.*
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libmad-*.tar.*
mv libmad-0.15.1b.tar.gz installed/

Back to the list


Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>