From edcb2e38c1558af973783dfbce178e887190895b Mon Sep 17 00:00:00 2001 From: shattered Date: Sun, 17 Feb 2013 12:21:34 +0000 Subject: Add 'debug' option. --- audio/amarok-kde3/options.mk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'audio') 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 -- cgit v1.2.3