summaryrefslogtreecommitdiff
path: root/mk/ghostscript.mk
diff options
context:
space:
mode:
authorjmmv <jmmv>2004-03-10 16:53:50 +0000
committerjmmv <jmmv>2004-03-10 16:53:50 +0000
commit18fcedf34257b4fbafe7715769727d875fae9178 (patch)
treea6aa4c48f81e3719538e3b694e9dc112bbe41c1e /mk/ghostscript.mk
parent2de03fa0a4d43a6aab1f826ade4f6c9aa08d5079 (diff)
downloadpkgsrc-18fcedf34257b4fbafe7715769727d875fae9178.tar.gz
Prefer the -esp and -esp-nox11 versions of ghostscript when USE_CUPS is YES.
Diffstat (limited to 'mk/ghostscript.mk')
-rw-r--r--mk/ghostscript.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/ghostscript.mk b/mk/ghostscript.mk
index c796d39b2bd..8575479271b 100644
--- a/mk/ghostscript.mk
+++ b/mk/ghostscript.mk
@@ -1,4 +1,4 @@
-# $NetBSD: ghostscript.mk,v 1.11 2002/10/22 22:54:08 jlam Exp $
+# $NetBSD: ghostscript.mk,v 1.12 2004/03/10 16:53:50 jmmv Exp $
#
# This Makefile fragment is included by packages that require a run-time
# dependency on a ghostscript Postscript interpreter.
@@ -17,9 +17,17 @@ GHOSTSCRIPT_REQD?= 6.01
USE_GHOSTSCRIPT?= run
.if defined(NO_X11)
+. if defined(USE_CUPS) && !empty(USE_CUPS:M[Yy][Ee][Ss])
+_GS_PKGSRCDIR?= ../../print/ghostscript-esp-nox11
+. else
_GS_PKGSRCDIR?= ../../print/ghostscript-gnu-nox11
+. endif
.else
+. if defined(USE_CUPS) && !empty(USE_CUPS:M[Yy][Ee][Ss])
+_GS_PKGSRCDIR?= ../../print/ghostscript-esp
+. else
_GS_PKGSRCDIR?= ../../print/ghostscript-gnu
+. endif
.endif
_VALID_GS= # empty