# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem              1.0
PortGroup               github 1.0
PortGroup               legacysupport 1.1

# _SC_NPROCESSORS_ONLN
legacysupport.newest_darwin_requires_legacy 8

# link legacysupport statically for archiver
legacysupport.use_static              yes

github.setup            kjn lbzip2 2.5 v
revision                3

categories              archivers
maintainers             {eborisch @eborisch} openmaintainer
license                 GPL-3+

description             ${name} - parallel bzip2 compression utility

long_description        ${name} is a free, multi-threaded compression utility \
                        with support for bzip2 compressed file format.

# Change to one of these with next version update.
#github.tarball_from     archive
#github.tarball_from     releases
master_sites            macports_distfiles

checksums \
    rmd160  47346a01d26754ff6d3b78deebad2f6aaa2704bb \
    sha256  46c75ee93cc95eedc6005625442b2b8e59a2bef3ba80987d0491f055185650e9 \
    size    651399

patchfiles-append       vasnprintf.patch

configure.args-append   --disable-silent-rules \
                        --enable-largefile

variant debug \
  description { Enable tracing and other options useful to developers } {
    configure.args-append \
                            --enable-tracing \
                            --enable-warnings \
                            --disable-silent-rules
    configure.optflags      -g
}

test.run                yes
test.target             check
