# $Id: Portfile 84059 2011-09-16 01:52:34Z jmr@macports.org $

PortSystem 1.0

name             libarchive
version          2.8.4
categories       archivers
license          BSD
maintainers      toby
description      functions for reading and writing streaming archives
long_description \
	Libarchive is a programming library that can create and \
	read several different streaming archive formats, including \
	most popular tar variants and several cpio formats. It can \
	also write shar archives.
homepage         http://code.google.com/p/libarchive/
platforms        darwin

master_sites     googlecode

checksums        md5 83b237a542f27969a8d68ac217dc3796 \
                 sha1 b9cc3bbd20bd71f996be9ec738f19fda8653f7af \
                 rmd160 4df65456c9026cdcf05b285db33518f4ff734c6e

depends_lib      port:bzip2 port:zlib port:openssl port:libxml2

configure.args   --enable-bsdtar=shared --enable-bsdcpio=shared \
                 --without-lzmadec --without-lzma

livecheck.regex  files/libarchive-(\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)\\.tar\\.gz

variant lzma description "LZMA support" {
    configure.args-delete   --without-lzma
    depends_lib-append      port:liblzma
}
