# $Id: Portfile,v 1.5 2005/10/19 08:10:13 blb Exp $

PortSystem			1.0
name				enscript
version				1.6.4
revision			1
categories			print
maintainers			blb@opendarwin.org
description			Replacement for Adobe's 'enscript' program
long_description \
	GNU enscript is a drop-in replacement for the enscript program.  Enscript \
	converts ASCII files to PostScript and stores generated output to a file \
	or sends it directly to the printer.

platforms			darwin sunos

homepage			http://people.ssh.fi/mtr/genscript/
#master_sites		${homepage}
master_sites		freebsd

checksums			md5 b5174b59e4a050fb462af5dbf28ebba3 \
					sha1 9dd7128a508d4c9671659b9520028d12add50cfa

patchfiles			patch-afm_Makefile.in patch-lib_Makefile.in \
					patch-src_gsint.h patch-src_main.c patch-src_psgen.c \
					patch-src_util.c patch-states_hl_Makefile.in

configure.args		--mandir=${prefix}/share/man --with-media=Letter \
					--infodir=${prefix}/share/info

post-destroot {
	file delete -force ${destroot}${prefix}/lib/charset.alias \
		${destroot}${prefix}/share/locale/locale.alias
}

variant mediaA4 {
	configure.args-delete	--with-media=Letter
	configure.args-append	--with-media=A4
}

