summaryrefslogtreecommitdiff
path: root/x11/kdelibs3
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2005-11-17 04:33:20 +0000
committerhubertf <hubertf@pkgsrc.org>2005-11-17 04:33:20 +0000
commitb063b0337124f9f91e3227c116eb3d9a8111e90a (patch)
tree354ccc5a94582782a5c32a911eea4858b0b4c88c /x11/kdelibs3
parent8dfe14c73d5b3b564f4c23eb6a8b97afeaccdac0 (diff)
downloadpkgsrc-b063b0337124f9f91e3227c116eb3d9a8111e90a.tar.gz
Add support for option 'debug', to compile in debug code and symbols.
In case anyone ever wants to go and debug Qt/KDE. Like me. Shoot me!
Diffstat (limited to 'x11/kdelibs3')
-rw-r--r--x11/kdelibs3/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/x11/kdelibs3/Makefile b/x11/kdelibs3/Makefile
index 0f34d1f3580..0b064217103 100644
--- a/x11/kdelibs3/Makefile
+++ b/x11/kdelibs3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.93 2005/10/13 12:31:59 markd Exp $
+# $NetBSD: Makefile,v 1.94 2005/11/17 04:33:20 hubertf Exp $
DISTNAME= kdelibs-${_KDE_VERSION}
CATEGORIES= x11
@@ -55,7 +55,7 @@ SUBST_FILES.kdemagic= kio/magic
SUBST_SED.kdemagic= -n -e 'p' -e 's:/usr/local/bin:${LOCALBASE}/bin:p'
PKG_OPTIONS_VAR= PKG_OPTIONS.kdelibs
-PKG_SUPPORTED_OPTIONS= cups
+PKG_SUPPORTED_OPTIONS= cups debug
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mcups)
@@ -66,6 +66,14 @@ CONFIGURE_ARGS+= --disable-cups
PLIST_SUBST+= CUPS="@comment "
.endif
+.if !empty(PKG_OPTIONS:Mdebug)
+CC+= -ggdb
+CXX+= -ggdb
+CONFIGURE_ARGS+= --enable-debug=full
+CONFIGURE_ENV+= INSTALL_STRIP_FLAG=
+INSTALL_UNSTRIPPED= yes
+.endif
+
.if ${OPSYS} == "NetBSD"
. if ${OS_VERSION:M1.5.[12]*} || ${OS_VERSION:M1.[0-4]*}
PLIST_SUBST+= KDED_WORKAROUND="@comment "