# $Id: Portfile,v 1.3 2006/08/04 06:48:25 blb Exp $

PortSystem			1.0
name				mpage
version				2.5.4
categories			print
maintainers			darwinports@opendarwin.org
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}
extract.suffix		.tgz

checksums			md5 c14d58e24e7fdebe0c9eeb57ef1895f4 \
					sha1 5e734f8e4d5992fa79e358653c9f72a59fc530b2 \
					rmd160 87c58c4d243efe5790c0240b17130382e705fadc

patchfiles			patch-Makefile patch-mpage.h

use_configure		no

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

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

variant mediaA4 {
	build.args-delete	PAGESIZE=Letter
	build.args-append	PAGESIZE=A4
}

