summaryrefslogtreecommitdiff
path: root/audio/amarok-kde3
diff options
context:
space:
mode:
authorshattered <shattered>2013-02-17 12:21:34 +0000
committershattered <shattered>2013-02-17 12:21:34 +0000
commit4bdce58cf2d81b798d63ce2cc81be42c76ac9940 (patch)
tree1a00d5307598d8dad9a2a29dd00e18247d0e7427 /audio/amarok-kde3
parentd0b05b716deb42443655c88e0464fb89b38d2275 (diff)
downloadpkgsrc-4bdce58cf2d81b798d63ce2cc81be42c76ac9940.tar.gz
Add 'debug' option.
Diffstat (limited to 'audio/amarok-kde3')
-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