summaryrefslogtreecommitdiff
path: root/x11/gtk2
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-11-25 21:30:17 +0000
committerwiz <wiz@pkgsrc.org>2005-11-25 21:30:17 +0000
commitd6f8bc9294d270d8dd8cb03de5b17bc1c1aea2d6 (patch)
tree9d3461f20a1fbd4f8497b169ba0b6bfbc534b320 /x11/gtk2
parent071fcffbfa1dfe180d90f1ed2b0e11a0c0b9408c (diff)
downloadpkgsrc-d6f8bc9294d270d8dd8cb03de5b17bc1c1aea2d6.tar.gz
Add debug option.
Diffstat (limited to 'x11/gtk2')
-rw-r--r--x11/gtk2/Makefile4
-rw-r--r--x11/gtk2/options.mk10
2 files changed, 13 insertions, 1 deletions
diff --git a/x11/gtk2/Makefile b/x11/gtk2/Makefile
index 686d27157db..1ebffd250e3 100644
--- a/x11/gtk2/Makefile
+++ b/x11/gtk2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.97 2005/11/20 16:50:19 wiz Exp $
+# $NetBSD: Makefile,v 1.98 2005/11/25 21:31:06 wiz Exp $
#
DISTNAME= gtk+-2.8.7
@@ -64,6 +64,8 @@ SUBST_MESSAGE.pthread= "Fixing pthread flags."
SUBST_SED.pthread= -e 's,__PTHREAD_FLAGS__,${BUILDLINK_LDFLAGS.pthread},g'
SUBST_FILES.pthread= gdk-pixbuf/Makefile.in
+.include "options.mk"
+
.include "../../mk/compiler.mk"
.if ${OPSYS} == "IRIX" && !empty(CC_VERSION:Mgcc*)
diff --git a/x11/gtk2/options.mk b/x11/gtk2/options.mk
new file mode 100644
index 00000000000..04c1590ae0b
--- /dev/null
+++ b/x11/gtk2/options.mk
@@ -0,0 +1,10 @@
+# $NetBSD: options.mk,v 1.1 2005/11/25 21:31:06 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.gtk2+
+PKG_SUPPORTED_OPTIONS= debug
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug=yes
+.endif