pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/netatalk Add a 'debug' option for building the pac...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/980cbe66eda8
branches:  trunk
changeset: 603889:980cbe66eda8
user:      hauke <hauke%pkgsrc.org@localhost>
date:      Wed May 16 12:11:17 2012 +0000

description:
Add a 'debug' option for building the package with debug switches on.

diffstat:

 net/netatalk/options.mk |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 1ac0eaf552cb -r 980cbe66eda8 net/netatalk/options.mk
--- a/net/netatalk/options.mk   Wed May 16 12:08:50 2012 +0000
+++ b/net/netatalk/options.mk   Wed May 16 12:11:17 2012 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.2 2009/06/09 13:57:56 taca Exp $
+# $NetBSD: options.mk,v 1.3 2012/05/16 12:11:17 hauke Exp $
 #
 PKG_OPTIONS_VAR=       PKG_OPTIONS.netatalk
-PKG_SUPPORTED_OPTIONS= cups kerberos pam slp
+PKG_SUPPORTED_OPTIONS= cups debug kerberos pam slp
 
 .include "../../mk/bsd.options.mk"
 
@@ -12,6 +12,16 @@
 CONFIGURE_ARGS+=       --disable-cups
 .endif
 
+PLIST_VARS+=           debug
+.if !empty(PKG_OPTIONS:Mdebug)
+# Debugging
+CONFIGURE_ARGS+=       --enable-debug1
+CONFIGURE_ARGS+=       --enable-debug
+CONFIGURE_ARGS+=       --enable-debugging
+CFLAGS+=               -g3
+INSTALL_UNSTRIPPED=    yes
+.endif
+
 PLIST_VARS+=           gssapi
 .if !empty(PKG_OPTIONS:Mkerberos)
 .include "../../mk/krb5.buildlink3.mk"



Home | Main Index | Thread Index | Old Index