summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorwiz <wiz>2009-09-02 15:56:03 +0000
committerwiz <wiz>2009-09-02 15:56:03 +0000
commita2634e120186502f3084a2dacdf42230aadc297d (patch)
treef4a6eba44036241ae335adcc281c4a9132e4d7fa /print
parent3753243085b4f95a6e4af394172070dffaa3b0bd (diff)
downloadpkgsrc-a2634e120186502f3084a2dacdf42230aadc297d.tar.gz
Add debug option.
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript/Makefile3
-rw-r--r--print/ghostscript/options.mk8
2 files changed, 7 insertions, 4 deletions
diff --git a/print/ghostscript/Makefile b/print/ghostscript/Makefile
index a9b76e9a3dc..64338f014b6 100644
--- a/print/ghostscript/Makefile
+++ b/print/ghostscript/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.65 2009/09/02 15:55:08 wiz Exp $
+# $NetBSD: Makefile,v 1.66 2009/09/02 15:56:03 wiz Exp $
DISTNAME= ghostscript-8.70
CATEGORIES= print
@@ -19,7 +19,6 @@ DEPENDS+= ghostscript-fonts>=6.0:../../fonts/ghostscript-fonts
USE_TOOLS+= gmake perl:run lex pkg-config
GNU_CONFIGURE= yes
-#CONFIGURE_ARGS+= --enable-debug
MAKE_JOBS_SAFE= no
UNLIMIT_RESOURCES+= datasize # gsromfs1.c
diff --git a/print/ghostscript/options.mk b/print/ghostscript/options.mk
index e10fb8891b9..c93c253b70e 100644
--- a/print/ghostscript/options.mk
+++ b/print/ghostscript/options.mk
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.8 2008/09/03 21:31:12 markd Exp $
+# $NetBSD: options.mk,v 1.9 2009/09/02 15:56:03 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ghostscript
-PKG_SUPPORTED_OPTIONS= x11 cups fontconfig
+PKG_SUPPORTED_OPTIONS= x11 cups debug fontconfig
PKG_SUGGESTED_OPTIONS= x11 fontconfig
.include "../../mk/bsd.options.mk"
@@ -36,6 +36,10 @@ SUBST_SED.cupsetc= -e 's|$$(CUPSSERVERROOT)|${CUPS_EGDIR}|g'
CONFIGURE_ARGS+= --disable-cups
.endif
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug
+.endif
+
.if !empty(PKG_OPTIONS:Mfontconfig)
.include "../../fonts/fontconfig/buildlink3.mk"
.else