pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11 Add support for option 'debug', to compile in debu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/86be24044a8f
branches:  trunk
changeset: 503256:86be24044a8f
user:      hubertf <hubertf%pkgsrc.org@localhost>
date:      Thu Nov 17 04:33:20 2005 +0000

description:
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:

 x11/kdebase3/Makefile        |  12 ++++++++++--
 x11/kdelibs3/Makefile        |  12 ++++++++++--
 x11/qt3-libs/Makefile.common |  12 ++++++++++--
 3 files changed, 30 insertions(+), 6 deletions(-)

diffs (99 lines):

diff -r 0a37624b7a4c -r 86be24044a8f x11/kdebase3/Makefile
--- a/x11/kdebase3/Makefile     Thu Nov 17 04:12:54 2005 +0000
+++ b/x11/kdebase3/Makefile     Thu Nov 17 04:33:20 2005 +0000
@@ -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 @@
 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="@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 -r 0a37624b7a4c -r 86be24044a8f x11/kdelibs3/Makefile
--- a/x11/kdelibs3/Makefile     Thu Nov 17 04:12:54 2005 +0000
+++ b/x11/kdelibs3/Makefile     Thu Nov 17 04:33:20 2005 +0000
@@ -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_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 @@
 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 -r 0a37624b7a4c -r 86be24044a8f x11/qt3-libs/Makefile.common
--- a/x11/qt3-libs/Makefile.common      Thu Nov 17 04:12:54 2005 +0000
+++ b/x11/qt3-libs/Makefile.common      Thu Nov 17 04:33:20 2005 +0000
@@ -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 @@
 .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+=       -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



Home | Main Index | Thread Index | Old Index