X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fcis-libmad;h=ef8333847125d23905ffc0661bb45121ad82cdcb;hb=0028eaa73ae0c3bd1dbf90c4bd508ae705bc386f;hp=00103fd5a0a8678f88cfa6aeecfc0c84ae54e52d;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage3/cis-libmad b/stage3/cis-libmad index 00103fd..ef83338 100755 --- a/stage3/cis-libmad +++ b/stage3/cis-libmad @@ -1,4 +1,6 @@ #!/bin/sh +set -o errexit + # First argument of this script is the package name. # Reading system configuration informations, functions and package versions. @@ -7,19 +9,19 @@ source ../functions source ../packages-list # Applying patches (if any) -apply_patches ${1} && +apply_patches ${1} -cd ${LFS_TMP}/${1}-build && +cd ${LFS_TMP}/${1}-build ../${1}/configure \ --prefix=/usr \ - --sysconfdir=/etc && -make && -make install && + --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" && +cat > /usr/lib/pkgconfig/mad.pc << "EOF" prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib @@ -33,9 +35,8 @@ Libs: -L${libdir} -lmad Cflags: -I${includedir} EOF -sed -i -e "s!_LIBMAD_VERSION_!$(get_pkg_ver ${1})!g" /usr/lib/pkgconfig/mad.pc && +sed -i -e "s!_LIBMAD_VERSION_!$(get_pkg_ver ${1})!g" /usr/lib/pkgconfig/mad.pc ldconfig -# Return last error exit $?