X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage5%2Fpkg%2Flibmad;h=adf404590adcb1a2b7cada6d7bea7ee44f0987a7;hb=16e556be676ab727a73d9a98bcd7d68fb5a29f4f;hp=ef8333847125d23905ffc0661bb45121ad82cdcb;hpb=3dae4c554ec18f465eb6ee5e6efdbdbe8557e13c;p=hvlinux.git diff --git a/stage5/pkg/libmad b/stage5/pkg/libmad index ef83338..adf4045 100644 --- a/stage5/pkg/libmad +++ b/stage5/pkg/libmad @@ -1,27 +1,10 @@ -#!/bin/sh -set -o errexit +#!/bin/bash -# 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" +hvbuild_post() +{ + # 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 @@ -35,8 +18,6 @@ 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 $? + sed -i -e "s!_LIBMAD_VERSION_!$(get_pkg_ver ${PACKAGE})!g" \ + /usr/lib/pkgconfig/mad.pc +}