# $Id: Portfile,v 1.6 2005/08/30 18:58:53 toby Exp $

PortSystem 1.0
name             pbzip2
version          0.9.4
categories       archivers
maintainers      toby@opendarwin.org
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/
platforms        darwin
master_sites     ${homepage}
checksums        sha1 66b5daf7483e989f1e8e5485980e96b7067d8916

patchfiles       patch-Makefile
post-patch {
	reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/Makefile
}

depends_lib      port:bzip2

configure        {}

destroot.destdir PREFIX=${destroot}${prefix}
