# $Id: Portfile 64926 2010-03-17 21:41:01Z toby@macports.org $

PortSystem 1.0

name             libarchive
version          2.8.3
categories       archivers
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 fe8d917e101d4b37580124030842a1d0 \
                 sha1 e0634a326cce2b46c8dc637de84d7556257e59e0 \
                 rmd160 7c77a87cdfc096417f67182bfc74141eab61aea4

depends_lib      port:bzip2 port:zlib port:openssl

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
}
