# $Id: Portfile 57416 2009-09-11 01:28:22Z jeremyhu@macports.org $
# 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		gmail.com:qbarnes
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/"
}
