PortSystem			1.0

name				mpage
version				2.5.5
categories			print
# Most source files only allow distribution of unmodified copies
license				Restrictive GPL-2+
maintainers			nomaintainer
description			Print several pages on a single sheet of paper
long_description	${description}

platforms			darwin sunos

homepage			http://www.mesa.nl/pub/mpage/
master_sites		${homepage} \
				${homepage}/old
extract.suffix		.tgz

checksums			md5 0caccc549b3f9e8d8af465023b264a49 \
					sha1 5c53a31c2dc40c867ba1ca31e9912c99c90f3e74 \
					rmd160 35c1acb0889f952c42eee52d013fb78dceb9db66

patchfiles			patch-Makefile

use_configure		no

build.target
build.args			PAGESIZE=Letter PREFIX=${prefix}

destroot.args		PREFIX=${prefix} MANDIR=${prefix}/share/man/man1

variant mediaA4 description {Use A4 page size instead of Letter} {
	build.args-delete	PAGESIZE=Letter
	build.args-append	PAGESIZE=A4
}
