# $Id: Portfile 129406 2014-12-12 20:05:16Z ryandesign@macports.org $ PortSystem 1.0 name pbzip2 version 1.1.11 set branch [join [lrange [split ${version} .] 0 1] .] categories archivers platforms darwin maintainers ryandesign openmaintainer license Permissive installs_libs no description parallel bzip2 long_description PBZIP2 is a parallel implementation of the bzip2 \ block-sorting file compressor that uses pthreads and achieves \ near-linear speedup on SMP machines. homepage http://compression.ca/pbzip2/ master_sites https://launchpad.net/pbzip2/${branch}/${version}/+download/ depends_lib port:bzip2 checksums rmd160 1ca41176a070697910fab02f76adde19422e0f2c \ sha256 b4861389bd99c73d304a03b0dc0731a8a26905da8e94ca4cef873b96e1ab0e7f patchfiles patch-Makefile.diff use_configure no variant universal {} pre-build { build.env-append \ CXX="${configure.cxx}" \ CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \ LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" } destroot.destdir PREFIX=${destroot}${prefix} post-destroot { delete ${destroot}${prefix}/bin/pbunzip2 delete ${destroot}${prefix}/bin/pbzcat ln -s pbzip2 ${destroot}${prefix}/bin/pbunzip2 ln -s pbzip2 ${destroot}${prefix}/bin/pbzcat set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \ ${destroot}${docdir} } variant debug description {Enable debugging code} { configure.cxxflags-append -DPBZIP_DEBUG } livecheck.type regex livecheck.url https://launchpad.net/pbzip2 livecheck.regex {pbzip2-(\d+(?:\.\d+)*).tar.gz}