summaryrefslogtreecommitdiff
path: root/x11
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
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')
-rw-r--r--x11/kdebase3/Makefile12
-rw-r--r--x11/kdelibs3/Makefile12
-rw-r--r--x11/qt3-libs/Makefile.common12
3 files changed, 30 insertions, 6 deletions
diff --git a/x11/kdebase3/Makefile b/x11/kdebase3/Makefile
index d2ee3a1c1a7..4e9256a7296 100644
--- a/x11/kdebase3/Makefile
+++ b/x11/kdebase3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.95 2005/11/09 22:27:37 wiz Exp $
+# $NetBSD: Makefile,v 1.96 2005/11/17 04:33:20 hubertf Exp $
DISTNAME= kdebase-${_KDE_VERSION}
CATEGORIES= x11
@@ -78,7 +78,7 @@ CONFIGURE_ENV+= RUN_KAPPFINDER=no
PLIST_SRC+= ${PKGDIR}/PLIST
PKG_OPTIONS_VAR= PKG_OPTIONS.kdebase
-PKG_SUPPORTED_OPTIONS= sasl samba
+PKG_SUPPORTED_OPTIONS= sasl samba debug
PKG_SUGGESTED_OPTIONS= sasl
.include "../../mk/bsd.options.mk"
@@ -94,6 +94,14 @@ PLIST_SUBST+= HAVE_SMB=""
PLIST_SUBST+= HAVE_SMB="@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" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux"
PLIST_SUBST+= HAVE_USBVIEW=""
.else
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 "
diff --git a/x11/qt3-libs/Makefile.common b/x11/qt3-libs/Makefile.common
index 2340dc7a64e..39de70f7c78 100644
--- a/x11/qt3-libs/Makefile.common
+++ b/x11/qt3-libs/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.56 2005/11/01 20:18:36 rillig Exp $
+# $NetBSD: Makefile.common,v 1.57 2005/11/17 04:33:20 hubertf Exp $
#
DISTNAME= qt-x11-free-${QTVERSION}
CATEGORIES= x11
@@ -75,7 +75,7 @@ CONFIGURE_ARGS+= -no-xinerama
.endif
PKG_OPTIONS_VAR= PKG_OPTIONS.qt3
-PKG_SUPPORTED_OPTIONS= cups
+PKG_SUPPORTED_OPTIONS= cups debug
.include "../../mk/bsd.options.mk"
@@ -86,6 +86,14 @@ CONFIGURE_ARGS+= -cups
CONFIGURE_ARGS+= -no-cups
.endif
+.if !empty(PKG_OPTIONS:Mdebug)
+CC+= -ggdb
+CXX+= -ggdb
+CONFIGURE_ARGS+= --debug
+INSTALL_UNSTRIPPED= yes
+.endif
+
+
#
# Reverse the change to how templates are handled made between 3.0.4
# and 3.0.5 for older toolchains. Removing inline for newer toolchains