summaryrefslogtreecommitdiff
path: root/print/a2ps43-letter
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1998-10-30 08:35:38 +0000
committerSatoshi Asami <asami@FreeBSD.org>1998-10-30 08:35:38 +0000
commit02d389691c3cd1c3cbf642bf5dcb6519dadc31c8 (patch)
tree940430104440ac0ca1ccb8db3418c9518321e161 /print/a2ps43-letter
parent(1) Add new variables LOOP_VAR and LOOP_OPTIONS to implement building several (diff)
Make thise ports use LOOP_VAR and LOOP_OPTIONS for PAPERSIZE. While
I'm here, make a2ps43's Makefile detect the missing PAPERSIZE correctly, and add -${PAPERSIZE} in lprps's PKGNAME.
Notes
Notes: svn path=/head/; revision=14259
Diffstat (limited to 'print/a2ps43-letter')
-rw-r--r--print/a2ps43-letter/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/print/a2ps43-letter/Makefile b/print/a2ps43-letter/Makefile
index 404e66e3eb14..57a12177af36 100644
--- a/print/a2ps43-letter/Makefile
+++ b/print/a2ps43-letter/Makefile
@@ -3,7 +3,7 @@
# Date created: 6 November 1994
# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu)
#
-# $Id: Makefile,v 1.15 1998/02/25 02:35:23 obrien Exp $
+# $Id: Makefile,v 1.16 1998/04/04 07:36:44 asami Exp $
#
DISTNAME= a2ps
@@ -15,7 +15,8 @@ DISTFILES= a2ps.V4.3.tar.gz
MAINTAINER= obrien@FreeBSD.org
NO_LATEST_LINK= yes
-MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter A4
+LOOP_VAR= PAPERSIZE
+LOOP_OPTIONS= letter a4
MAKE_FLAGS?= WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f
NO_WRKSUBDIR= yes
MAN1= a2ps.1
@@ -33,12 +34,16 @@ a4-install::
${MAKE} PAPERSIZE=a4 install
-.if !defined(PAPERSIZE) || ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER || ${PAPERSIZE} == Letter
+.if !defined(PAPERSIZE)
+PAPERSIZE_UNSPECIFIED= yes
+PAPERSIZE=letter
+.endif
+
+.if ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER || ${PAPERSIZE} == Letter
PAPERSIZE=letter
WIDTH=8.5
HEIGHT=11.0
A4_PAPERSIZE=0
-PAPERSIZE_UNSPECIFIED= yes
.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4
PAPERSIZE=a4
WIDTH=8.27
@@ -46,7 +51,7 @@ HEIGHT=11.64
A4_PAPERSIZE=1
.else
PAPERSIZE_INVALID= yes
-.endif # not defined PAPERSIZE
+.endif
pre-fetch: