summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorshattered <shattered@pkgsrc.org>2013-02-17 12:21:34 +0000
committershattered <shattered@pkgsrc.org>2013-02-17 12:21:34 +0000
commitedcb2e38c1558af973783dfbce178e887190895b (patch)
tree1a00d5307598d8dad9a2a29dd00e18247d0e7427 /audio
parent1db1425676e1df1808172a47e47ae8e3a24ed96f (diff)
downloadpkgsrc-edcb2e38c1558af973783dfbce178e887190895b.tar.gz
Add 'debug' option.
Diffstat (limited to 'audio')
-rw-r--r--audio/amarok-kde3/options.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/audio/amarok-kde3/options.mk b/audio/amarok-kde3/options.mk
index 0c2357553a4..17a4edc0a8a 100644
--- a/audio/amarok-kde3/options.mk
+++ b/audio/amarok-kde3/options.mk
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.2 2011/11/21 19:49:19 shattered Exp $
+# $NetBSD: options.mk,v 1.3 2013/02/17 12:21:34 shattered Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.amarok
-PKG_SUPPORTED_OPTIONS= libgpod libmtp mysql pgsql
+PKG_SUPPORTED_OPTIONS= libgpod libmtp mysql pgsql debug
.include "../../mk/bsd.options.mk"
@@ -30,3 +30,11 @@ CONFIGURE_ARGS+= --enable-mysql
CONFIGURE_ARGS+= --enable-postgresql
. include "../../mk/pgsql.buildlink3.mk"
.endif
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CC+= -ggdb
+CXX+= -ggdb
+CONFIGURE_ARGS+= --enable-debug=full
+CONFIGURE_ENV+= INSTALL_STRIP_FLAG=
+INSTALL_UNSTRIPPED= yes
+.endif