# -*- 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
name pigz
version 2.4
categories archivers
license zlib Apache-2
platforms darwin
maintainers {danchr @danchr} openmaintainer
description parallel gzip
long_description pigz, which stands for parallel implementation of gzip, \
is a fully functional replacement for gzip that exploits \
multiple processors and multiple cores to the hilt when \
compressing data. pigz was written by Mark Adler, and \
uses the zlib and pthread libraries.
homepage http://www.zlib.net/pigz/
master_sites ${homepage}
checksums rmd160 99ffd6ca6acbf29c436d80e814a144dfd1bd3337 \
sha256 a4f816222a7b4269bd232680590b579ccc72591f1bb5adafcd7208ca77e14f73
depends_lib port:zlib
patchfiles patch-Makefile.diff
use_configure no
variant universal {}
build.target
build.env-append CC=${configure.cc} \
"CFLAGS=${configure.cflags} [get_canonical_archflags cc]" \
"LDFLAGS=${configure.ldflags} [get_canonical_archflags ld]"
destroot {
xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
ln -s ${name} ${destroot}${prefix}/bin/un${name}
}
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex {pigz-(\d+(?:\.\d+)*).tar.gz}