pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/modular-xorg-server add debug option



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ba4211ef5c24
branches:  trunk
changeset: 400593:ba4211ef5c24
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu Oct 22 20:12:25 2009 +0000

description:
add debug option

diffstat:

 x11/modular-xorg-server/options.mk |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r b21ab8c783d9 -r ba4211ef5c24 x11/modular-xorg-server/options.mk
--- a/x11/modular-xorg-server/options.mk        Thu Oct 22 19:54:23 2009 +0000
+++ b/x11/modular-xorg-server/options.mk        Thu Oct 22 20:12:25 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.6 2009/06/07 11:23:46 wiz Exp $
+# $NetBSD: options.mk,v 1.7 2009/10/22 20:12:25 tnn Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.modular-xorg-server
-PKG_SUPPORTED_OPTIONS= dri inet6
+PKG_SUPPORTED_OPTIONS= dri inet6 debug
 PKG_SUGGESTED_OPTIONS= dri
 
 .include "../../mk/bsd.options.mk"
@@ -26,3 +26,8 @@
 .else
 CONFIGURE_ARGS+=       --disable-ipv6
 .endif
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+=       --enable-debug
+CFLAGS+=               -ggdb
+.endif



Home | Main Index | Thread Index | Old Index