summaryrefslogtreecommitdiff
path: root/x11/qt3-libs
diff options
context:
space:
mode:
authorhubertf <hubertf>2005-11-17 04:33:20 +0000
committerhubertf <hubertf>2005-11-17 04:33:20 +0000
commit0f0be3ced759fa24bbb074a940d43d7a6add87d6 (patch)
tree354ccc5a94582782a5c32a911eea4858b0b4c88c /x11/qt3-libs
parentbeae349afff6c03c1959b4f15e794a62c6a2778c (diff)
downloadpkgsrc-0f0be3ced759fa24bbb074a940d43d7a6add87d6.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/qt3-libs')
-rw-r--r--x11/qt3-libs/Makefile.common12
1 files changed, 10 insertions, 2 deletions
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