# $Id: pkgconfig-0.23-r3.smage2 3117 2009-10-13 14:24:22Z niro $ PNAME="pkgconfig" PVER="0.25" PBUILD="r2" PCATEGORIE="dev-util" STATE="unstable" DESCRIPTION="pkg-config is a helper tool used when compiling applications and libraries." HOMEPAGE="http://pkgconfig.freedesktop.org/" DEPEND=">= virtual/glibc" SRCFILE="pkg-config-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/pkg-config-${PVER}" sminclude mbuild SRC_URI=( http://pkgconfig.freedesktop.org/releases/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-ac-regression.patch ) # use pkg-config as tarballname UP2TARBALL="pkg-config" UP2DATE="updatecmd_freedesktop ${PNAME} gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes a regression with >=autoconf-2.66, for more details see: # http://thread.gmane.org/gmane.comp.sysutils.autoconf.general/13133/focus=13153 mpatch ${PNAME}-${PVER}-ac-regression.patch || die } src_compile() { cd ${SRCDIR} # set pc_path to /usr/lib/pkgconfig instead of /usr/lib/pkg-config # >=0.19 is fixed upstream but we force this to prevent many problems mconfigure --with-pc-path="\${libdir}/pkgconfig:\${datadir}/pkgconfig" || die mmake || die }