# $Id$ PNAME="libarchive" PVER="3.0.4" PBUILD="r2" PCAT="app-arch" DESCRIPTION="A library that can create and read several streaming archive formats." HOMEPAGE="http://people.freebsd.org/~kientzle/libarchive/" DEPEND=">= app-arch/bzip2-1.0.6 >= app-arch/xz-utils-5.0.1 >= dev-libs/openssl-1.0.0 >= sys-libs/zlib-1.2 >= sys-apps/attr-2.4 >= sys-apps/acl-2.2" SDEPEND=">= sys-fs/e2fsprogs-1.41 >= virtual/kernel-headers" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( https://github.com/downloads/${PNAME}/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-gcc47.patch ) UP2DATE="updatecmd https://github.com/${PNAME}/${PNAME}/downloads | firsttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix compile issues with gcc-4.7 mpatch ${PNAME}-${PVER}-gcc47.patch || die } src_compile() { cd ${SRCDIR} # without-lzmadec is disabled because we use the newer lzma lib from xz-utils mconfigure \ --disable-dependency-tracking \ --enable-bsdtar=shared \ --enable-bsdcpio=shared \ --enable-acl \ --enable-xattr \ --with-zlib \ --with-bz2lib\ --with-lzma \ --without-lzmadec \ || die mmake || die }