diff options
author | hubertf <hubertf@pkgsrc.org> | 2005-11-17 04:33:20 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2005-11-17 04:33:20 +0000 |
commit | b063b0337124f9f91e3227c116eb3d9a8111e90a (patch) | |
tree | 354ccc5a94582782a5c32a911eea4858b0b4c88c /x11/kdebase3 | |
parent | 8dfe14c73d5b3b564f4c23eb6a8b97afeaccdac0 (diff) | |
download | pkgsrc-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/kdebase3')
-rw-r--r-- | x11/kdebase3/Makefile | 12 |
1 files changed, 10 insertions, 2 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 |