# $Id: Portfile 83604 2011-09-07 08:07:00Z afb@macports.org $

PortSystem      1.0

name            liblzma
version         5.0.3
categories      devel
platforms       darwin
license         public-domain
maintainers     afb openmaintainer
description     LZMA encoder/decoder library

long_description \
    liblzma is a LZMA encoder/decoder library with support for multiple \
    filters (algorithms). It was written in C (C99). It has a very similar \
    API to that of zlib.

homepage        http://tukaani.org/xz/
master_sites    ${homepage}
use_bzip2       yes
distname        xz-${version}
dist_subdir     xz

checksums       sha1    79661fd1c24603437e325d76732046b1da683b32 \
                rmd160  10127da6e2e35e5e92b3125f6088c756b80931e5

# the internal "check.h" header conflicts with port check's <check.h>
configure.cppflags -I${worksrcpath}/src/liblzma/check -I${prefix}/include

build.dir       ${worksrcpath}/src/liblzma
destroot.dir    ${worksrcpath}/src/liblzma

livecheck.url   ${homepage}
livecheck.regex xz-(\[0-9.a-z\]*)\.tar\.gz
livecheck.type  regexm
