summaryrefslogtreecommitdiff
path: root/x11
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
commitcaa5734d59e3b4244c85321615e4971b6f9129a3 (patch)
tree9d3461f20a1fbd4f8497b169ba0b6bfbc534b320 /x11
parent321a09857ae885c5b2980ae3decd7432e79b8846 (diff)
downloadpkgsrc-caa5734d59e3b4244c85321615e4971b6f9129a3.tar.gz
Add debug option.
Diffstat (limited to 'x11')
-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