summaryrefslogtreecommitdiff
path: root/print/ghostscript
diff options
context:
space:
mode:
authormarkd <markd>2007-07-01 20:56:27 +0000
committermarkd <markd>2007-07-01 20:56:27 +0000
commitf864802585320e7d470a4c7e4191ef9bf7714eb0 (patch)
tree6b260e9b97f85e7d72ad2c567803bc6bac1f4cd5 /print/ghostscript
parent747b964ba270d31f777fa9d42b8d753801f977a8 (diff)
downloadpkgsrc-f864802585320e7d470a4c7e4191ef9bf7714eb0.tar.gz
Re-add support for the PAPERSIZE variable, lost when the various
ghostscript packages were merged. Bump PKGREVISION.
Diffstat (limited to 'print/ghostscript')
-rw-r--r--print/ghostscript/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/print/ghostscript/Makefile b/print/ghostscript/Makefile
index 7ebf9c7bdab..791ca7dcf25 100644
--- a/print/ghostscript/Makefile
+++ b/print/ghostscript/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.28 2007/06/29 19:24:45 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.29 2007/07/01 20:56:27 markd Exp $
DISTNAME= ghostscript-8.54-gpl
PKGNAME= ghostscript-8.54
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/}
EXTRACT_SUFX= .tar.bz2
@@ -22,6 +22,12 @@ GNU_CONFIGURE= yes
GS_RESOURCEDIR= ${PREFIX}/share/ghostscript/Resource
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(PAPERSIZE) && (${PAPERSIZE} == "A4" || ${PAPERSIZE} == "a4")
+CFLAGS+= -DA4
+.endif
+
REQD_DIRS+= share/ghostscript
SUBST_CLASSES+= resdir