diff options
Diffstat (limited to 'print/a2ps43-letter/Makefile')
-rw-r--r-- | print/a2ps43-letter/Makefile | 61 |
1 files changed, 58 insertions, 3 deletions
diff --git a/print/a2ps43-letter/Makefile b/print/a2ps43-letter/Makefile index 5b173cc32f53..17de636268fc 100644 --- a/print/a2ps43-letter/Makefile +++ b/print/a2ps43-letter/Makefile @@ -1,13 +1,13 @@ # New ports collection makefile for: a2ps # Version required: 4.3 # Date created: 6 November 1994 -# Whom: jmz +# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu) # -# $Id: Makefile,v 1.5 1995/11/22 13:17:46 asami Exp $ +# $Id: Makefile,v 1.6 1996/04/02 20:33:42 jmz Exp $ # DISTNAME= a2ps -PKGNAME= a2ps-4.3 +PKGNAME= a2ps-${PAPERSIZE}-4.3 CATEGORIES+= print MASTER_SITES= ftp://ftp.imag.fr/archive/postscript/format.translators/ DISTFILES= a2ps.V4.3.tar.gz @@ -16,9 +16,64 @@ MAINTAINER= jmz@FreeBSD.org NO_WRKSUBDIR= yes +MAKE_FLAGS?= WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f + + +letter:: + ${MAKE} PAPERSIZE=letter + +letter-install:: + ${MAKE} PAPERSIZE=letter install + +a4:: + ${MAKE} PAPERSIZE=a4 + +a4-install:: + ${MAKE} PAPERSIZE=a4 install + + +.if !defined(PAPERSIZE) +PAPERSIZE=a4 +WIDTH=8.27 +HEIGHT=11.64 +A4_PAPERSIZE=1 +PAPERSIZE_UNSPECIFIED= yes +.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4 +PAPERSIZE=a4 +WIDTH=8.27 +HEIGHT=11.64 +A4_PAPERSIZE=1 +.elif ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER +PAPERSIZE=letter +WIDTH=8.5 +HEIGHT=11.0 +A4_PAPERSIZE=0 +.else +PAPERSIZE_INVALID= yes +.endif # not defined PAPERSIZE + + +pre-fetch: +.if defined(PAPERSIZE_UNSPECIFIED) + @echo "Defaulting to ${PAPERSIZE} sized paper." + @echo "" + @echo "Set the environment variable PAPERSIZE if you want to use other sizes." + @echo "Possible values are: A4 (default) or letter" +.elif defined(PAPERSIZE_INVALID) + @echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" + @echo "Possible values are: A4 (default) or letter" + @/usr/bin/false +.endif + pre-install: @mkdir -p ${PREFIX}/bin @mkdir -p ${PREFIX}/man/man1 @(cd ${WRKSRC}; make install.man) +post-install: +.if !defined(NOMANCOMPRESS) + gzip -nf ${PREFIX}/man/man1/a2ps.1 +.endif + strip ${PREFIX}/bin/a2ps + .include <bsd.port.mk> |