# $Id: Portfile,v 1.1 2004/12/30 07:11:38 toby Exp $
# Based on: http://www.openbsd.org/cgi-bin/cvsweb/ports/textproc/par/Makefile

PortSystem 1.0

name			par
version			1.52
categories		textproc
platforms		darwin
maintainers		qbarnes@prairienet.org
description		paragraph reflow for email
long_description	${description}
homepage		http://www.nicemice.net/${name}/
master_sites		${homepage}
distname		[string totitle $name][string map {. {}} $version]
checksums		md5 4ccacd824171ba2c2f14fb8aba78b9bf

configure {
	file copy ${worksrcpath}/protoMakefile ${worksrcpath}/Makefile
	reinplace "s|\$(CC) \$<|\$(CC) \$(CFLAGS) \$<|" ${worksrcpath}/Makefile
}

build.target

destroot {
	xinstall -m 555 "${worksrcpath}/${name}" "${destroot}${prefix}/bin/"
	xinstall -m 444 "${worksrcpath}/${name}.1" "${destroot}${prefix}/share/man/man1/"
}
