From d6f8bc9294d270d8dd8cb03de5b17bc1c1aea2d6 Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 25 Nov 2005 21:30:17 +0000 Subject: Add debug option. --- devel/glib2/Makefile | 4 +++- devel/glib2/options.mk | 10 ++++++++++ x11/gtk2/Makefile | 4 +++- x11/gtk2/options.mk | 10 ++++++++++ 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 devel/glib2/options.mk create mode 100644 x11/gtk2/options.mk diff --git a/devel/glib2/Makefile b/devel/glib2/Makefile index 31684590970..599e003dc5b 100644 --- a/devel/glib2/Makefile +++ b/devel/glib2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.84 2005/11/20 16:40:02 wiz Exp $ +# $NetBSD: Makefile,v 1.85 2005/11/25 21:30:17 wiz Exp $ DISTNAME= glib-2.8.4 PKGNAME= ${DISTNAME:S/glib/glib2/} @@ -47,6 +47,8 @@ CONFIGURE_ENV+= F77=${FALSE} CONFIGURE_ENV+= PERL_PATH=${PERL5} +.include "options.mk" + .include "../../mk/bsd.prefs.mk" CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" diff --git a/devel/glib2/options.mk b/devel/glib2/options.mk new file mode 100644 index 00000000000..67af8a469c5 --- /dev/null +++ b/devel/glib2/options.mk @@ -0,0 +1,10 @@ +# $NetBSD: options.mk,v 1.1 2005/11/25 21:30:17 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.glib2 +PKG_SUPPORTED_OPTIONS= debug + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mdebug) +CONFIGURE_ARGS+= --enable-debug=yes +.endif 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 -- cgit v1.2.3