From f864802585320e7d470a4c7e4191ef9bf7714eb0 Mon Sep 17 00:00:00 2001 From: markd Date: Sun, 1 Jul 2007 20:56:27 +0000 Subject: Re-add support for the PAPERSIZE variable, lost when the various ghostscript packages were merged. Bump PKGREVISION. --- print/ghostscript/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'print/ghostscript') 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 -- cgit v1.2.3