summaryrefslogtreecommitdiff
path: root/print/psutils
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>1998-08-16 23:49:08 +0000
committerkim <kim@pkgsrc.org>1998-08-16 23:49:08 +0000
commit1f6ed4e868685ccf0c1729fad26c2ad395f5ba76 (patch)
tree9972e981fd25192b474c401a58ea7961d2b098cd /print/psutils
parentd2e2bdf9a9375a4606d1609680161922d0f9bf45 (diff)
downloadpkgsrc-1f6ed4e868685ccf0c1729fad26c2ad395f5ba76.tar.gz
Let us support PAPERSIZE=Letter for all packages.
Diffstat (limited to 'print/psutils')
-rw-r--r--print/psutils/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/print/psutils/Makefile b/print/psutils/Makefile
index 6bd5da4505b..4de589b3845 100644
--- a/print/psutils/Makefile
+++ b/print/psutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 1998/08/14 20:59:43 frueauf Exp $
+# $NetBSD: Makefile,v 1.10 1998/08/16 23:49:08 kim Exp $
# FreeBSD Id: Makefile,v 1.15 1998/01/08 18:52:13 fenner Exp
#
@@ -11,14 +11,18 @@ MAINTAINER= packages@netbsd.org
MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to letter or A4
WRKSRC= ${WRKDIR}/psutils
-MAKE_FLAGS?= PAPER=${PAPERSIZE}
+
+.include "../../mk/bsd.pkg.mk"
PAPERSIZE?= A4
+PAPER!= echo "${PAPERSIZE}" | tr '[C-Z]' '[c-z]'
+MAKE_FLAGS+= PAPER=${PAPER}
+
USE_PERL5= YES
pre-configure:
@case "X${PAPERSIZE}" in \
- XA4|Xletter) \
+ XA4|XLetter) \
;; \
XA3|XA5|XB5|Xledger|Xstatement|Xexecutive|Xfolio|Xquarto|X10x14)\
${ECHO} "Other packages do not recognise ${PAPERSIZE}"; \
@@ -26,9 +30,9 @@ pre-configure:
*) \
${ECHO} "Error: PAPERSIZE invalid: \"${PAPERSIZE}\""; \
${ECHO} "Possible values are:"; \
- ${ECHO} " A3, A4 (default), A5, B5, letter, legal,"; \
- ${ECHO} " ledger, tabloid, statement, executive,"; \
- ${ECHO} " folio, quarto, and 10x14."; \
+ ${ECHO} " A3, A4 (default), A5, B5, Letter, Legal,"; \
+ ${ECHO} " Ledger, Tabloid, Statement, Executive,"; \
+ ${ECHO} " Folio, Quarto, and 10x14."; \
${FALSE}; \
;; \
esac
@@ -37,5 +41,3 @@ post-install:
.for file in epsffit psbook psnup psresize psselect pstops
strip ${PREFIX}/bin/${file}
.endfor
-
-.include "../../mk/bsd.pkg.mk"