diff options
author | jmz <jmz@FreeBSD.org> | 1996-05-13 23:41:00 +0800 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 1996-05-13 23:41:00 +0800 |
commit | e922291d0a2612a88889b7be815091a99cf83a29 (patch) | |
tree | 86ff4731484ef2cb809115693a965332004f0bae /print/psutils-letter/Makefile | |
parent | a30f55e025db6dc86a87b1050c3764d88e41832b (diff) | |
download | freebsd-ports-gnome-e922291d0a2612a88889b7be815091a99cf83a29.tar.gz freebsd-ports-gnome-e922291d0a2612a88889b7be815091a99cf83a29.tar.zst freebsd-ports-gnome-e922291d0a2612a88889b7be815091a99cf83a29.zip |
Setting the PAPERSIZE variable will allows to build packages with different
default paper size. For instance, make PAPERSIZE=letter will build a package
for US-letter paper size as default.
Reviewed by: jmz
Submitted by: David E. O'Brien <obrien@Nuxi.cs.ucdavis.edu>
Diffstat (limited to 'print/psutils-letter/Makefile')
-rw-r--r-- | print/psutils-letter/Makefile | 48 |
1 files changed, 46 insertions, 2 deletions
diff --git a/print/psutils-letter/Makefile b/print/psutils-letter/Makefile index ea43c58f2aea..6d6f0d8bd8c7 100644 --- a/print/psutils-letter/Makefile +++ b/print/psutils-letter/Makefile @@ -1,12 +1,13 @@ # New ports collection makefile for: psutils # Version required: 1.13 # Date created: 21 September 1994 -# Whom: jmz +# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu) # -# $Id: Makefile,v 1.7 1995/11/22 13:18:23 asami Exp $ +# $Id: Makefile,v 1.8 1996/03/28 23:25:40 jmz Exp rootk $ # DISTNAME= psutils-1.13 +PKGNAME= psutils-${PAPERSIZE}-1.13 CATEGORIES+= print MASTER_SITES= ftp://ftp.sunet.se/pub/text-processing/postscript/utilities/psutils/ @@ -14,6 +15,49 @@ MAINTAINER= jmz@FreeBSD.org WRKSRC= $(WRKDIR)/src-1.3 +MAKE_FLAGS?= PAPERSIZE=${PAPERSIZE} -f + +##package:: letter a4 + +letter:: + ${MAKE} PAPERSIZE=letter + +letter-install:: + ${MAKE} PAPERSIZE=letter install + +a4:: + ${MAKE} PAPERSIZE=a4 + + +.if !defined(PAPERSIZE) +PAPERSIZE=a4 +PAPERSIZE_UNSPECIFIED= yes +.else +.if ${PAPERSIZE} != A3 && ${PAPERSIZE} != a3 && ${PAPERSIZE} != A4 \ + && ${PAPERSIZE} != a4 && ${PAPERSIZE} != A5 && ${PAPERSIZE} != a5 \ + && ${PAPERSIZE} != B5 && ${PAPERSIZE} != b5 \ + && ${PAPERSIZE} != letter && ${PAPERSIZE} != legal \ + && ${PAPERSIZE} != ledger && ${PAPERSIZE} != tabloid \ + && ${PAPERSIZE} != statement && ${PAPERSIZE} != executive \ + && ${PAPERSIZE} != folio && ${PAPERSIZE} != quarto && ${PAPERSIZE} != 10x14 +PAPERSIZE_INVALID= yes +.endif +.endif + +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: A3, A4 (default), A5, B5, letter, legal," + @echo " ledger, tabloid, statement, executive, folio, quarto, and 10x14." +.elif defined(PAPERSIZE_INVALID) + @echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" + @echo "Possible values are: A3, A4 (default), A5, B5, letter, legal," + @echo " ledger, tabloid, statement, executive, folio, quarto, and 10x14." + @/usr/bin/false +.endif + pre-install: @mkdir -p ${PREFIX}/share/psutils |