# $Id$ PNAME="apr-util" PVER="1.3.9" PBUILD="r1" PCATEGORIE="dev-libs" STATE="unstable" DESCRIPTION="APR-Util - Apache Portable Runtime Utility library." HOMEPAGE="http://apr.apache.org/" # our supported db version DB_VERSION="4.8" DEPEND=">= dev-libs/expat-2 >= dev-libs/apr-${PVER} >= dev-db/db-${DB_VERSION}" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( http://archive.apache.org/dist/apr/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-db48.patch ) UP2DATE="updatecmd http://archive.apache.org/dist/apr/ | grep ${PNAME}-[0-9] | lasttarball" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # support for db-4.8 mpatch ${PNAME}-${PVER}-db48.patch || die autoreconf --install --force --verbose || die } src_compile() { cd ${SRCDIR} mconfigure \ --datadir=/usr/share/${PNAME}-${PVER:0:1} \ --includedir=/usr/include/apr-${PVER:0:1} \ --with-apr=/usr \ --with-expat=/usr \ --with-dbm=db${DB_VERSION/./} \ --with-berkeley-db \ --without-gdbm \ --without-mysql \ --without-pgsql \ --without-sqlite2 \ --without-sqlite3 \ || die mmake || die }