pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/ghostscript Re-add support for the PAPERSIZE var...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/48f10a10f733
branches:  trunk
changeset: 530575:48f10a10f733
user:      markd <markd%pkgsrc.org@localhost>
date:      Sun Jul 01 20:56:27 2007 +0000

description:
Re-add support for the PAPERSIZE variable, lost when the various
ghostscript packages were merged.  Bump PKGREVISION.

diffstat:

 print/ghostscript/Makefile |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 52e98b5ca2cf -r 48f10a10f733 print/ghostscript/Makefile
--- a/print/ghostscript/Makefile        Sun Jul 01 20:47:46 2007 +0000
+++ b/print/ghostscript/Makefile        Sun Jul 01 20:56:27 2007 +0000
@@ -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 @@
 
 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



Home | Main Index | Thread Index | Old Index