#!/bin/sh set -o errexit # First argument of this script is the package name. # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} cd ${LFS_TMP}/${1}-build ../${1}/configure \ --prefix=/usr \ --sysconfdir=/etc make make install # Some packages check for the pkg-config file for libmad. # This file is particularly needed so that Cdrdao can # recognize the installed libmad. cat > /usr/lib/pkgconfig/mad.pc << "EOF" prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: mad Description: MPEG audio decoder Requires: Version: _LIBMAD_VERSION_ Libs: -L${libdir} -lmad Cflags: -I${includedir} EOF sed -i -e "s!_LIBMAD_VERSION_!$(get_pkg_ver ${1})!g" /usr/lib/pkgconfig/mad.pc ldconfig exit $?