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

PortSystem      1.0

name            xz-devel
version         5.1.1alpha
categories      archivers
# some executables are GPL, libs and everything else are public domain
license         {public-domain GPL-2+}
platforms       darwin
maintainers     afb openmaintainer
description     XZ Utils

long_description \
XZ utils consist of a few relatively separate submodules: \
* LZMA/XZ encoder/decoder command line tool similar to gzip/bzip2 \
* Scripts to ease grepping, diffing and viewing (lz*grep, lzdiff/lzcmp, lzmore/lzless)

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

checksums       sha1    2aabed5bde3e233d020425e8f76695d73410b70b \
                rmd160  894dfc76a80ee5d4b3bd20974ed39023aa800901

patchfiles      patch-clock-gettime.diff
patch.pre_args  -p1

use_autoreconf  yes

depends_lib     port:libiconv port:gettext

configure.args  --with-libiconv-prefix=${prefix} --with-libintl-prefix=${prefix}

# document that we always need legacy symlinks now that "lzmautils" refers here
configure.args-append --enable-lzma-links

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

livecheck.type  none
