# $Id$ PNAME="libarchive" PVER="2.7.1" PBUILD="r1" PCATEGORIE="app-arch" STATE="unstable" DESCRIPTION="" HOMEPAGE="http://people.freebsd.org/~kientzle/libarchive/" DEPEND=">= app-arch/bzip2-1.0.5 >= sys-libs/zlib-1.2" SDEPEND=">= sys-fs/e2fsprogs-1.41 >= virtual/kernel-headers" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( http://libarchive.googlecode.com/files/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-2.7.0-fortified-sources.patch mirror://${PNAME}/${PNAME}-2.7.0-pipe.patch ) UP2DATE="updatecmd http://code.google.com/p/${PNAME}/downloads/list | firsttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} mpatch ${PNAME}-2.7.0-fortified-sources.patch || die mpatch ${PNAME}-2.7.0-pipe.patch || die } src_compile() { cd ${SRCDIR} mconfigure \ --disable-dependency-tracking \ --bindir=/bin \ --enable-bsdtar=shared \ --enable-bsdcpio=shared \ --disable-acl \ --disable-xattr \ --with-zlib \ --with-bz2lib\ --without-lzma \ || die mmake || die }