pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
devel/gdb6 options notui
I was attempting to build devel/gdb6 today and encountered link errors
involving libtermcap and libcurses. These are required for the gdbtui
application. I don't need this functionality and read somewhere to
just pass --disable-tui to configure.
Here are a few patches which add the 'PKG_OPTIONS.gdb6' options
variable and the 'notui' option which prevents the gdbtui application
from being built. I'm not sure if this is correct or will work on all
platforms though, it seems fine to me.
Thanks,
Jake Kupersmith
/usr/pkgsrc/devel/gdb6$ cvs diff -u Makefile
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/gdb6/Makefile,v
retrieving revision 1.23
diff -u -p -u -r1.23 Makefile
--- Makefile 20 Jun 2008 01:09:12 -0000 1.23
+++ Makefile 1 Apr 2009 23:39:08 -0000
@@ -26,6 +26,7 @@ CONFIGURE_ARGS+= --enable-libada
INFO_FILES= # PLIST
.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
pre-patch:
${CP} ${FILESDIR}/nbsd-nat.c ${WRKSRC}/gdb
@@ -38,5 +39,4 @@ do-test:
fi
.include "../../devel/gettext-lib/buildlink3.mk"
-.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
/usr/pkgsrc/devel/gdb6$ cvs diff -u PLIST.common
Index: PLIST.common
===================================================================
RCS file: /cvsroot/pkgsrc/devel/gdb6/PLIST.common,v
retrieving revision 1.1
diff -u -p -u -r1.1 PLIST.common
--- PLIST.common 11 Feb 2009 21:58:40 -0000 1.1
+++ PLIST.common 1 Apr 2009 23:39:15 -0000
@@ -1,6 +1,6 @@
@comment $NetBSD: PLIST.common,v 1.1 2009/02/11 21:58:40 shattered Exp $
bin/gdb
-bin/gdbtui
+${PLIST.tui}bin/gdbtui
include/gdb6/ansidecl.h
include/gdb6/bfd.h
include/gdb6/bfdlink.h
@@ -19,7 +19,7 @@ lib/gdb6/libiberty.a
lib/gdb6/libmmalloc.a
lib/gdb6/libopcodes.la
man/man1/gdb.1
-man/man1/gdbtui.1
+${PLIST.tui}man/man1/gdbtui.1
share/locale/da/LC_MESSAGES/bfd.mo
share/locale/da/LC_MESSAGES/opcodes.mo
share/locale/de/LC_MESSAGES/opcodes.mo
/usr/pkgsrc/devel/gdb6$ cat options.mk
# $NetBSD:$
PKG_OPTIONS_VAR= PKG_OPTIONS.gdb6
PKG_SUPPORTED_OPTIONS= notui
PKG_SUGGESTED_OPTIONS=
.include "../../mk/bsd.options.mk"
PLIST_VARS+= tui
.if !empty(PKG_OPTIONS:Mnotui)
CONFIGURE_ARGS+= --disable-tui
.else
PLIST.tui= yes
.include "../../mk/curses.buildlink3.mk"
.endif
Home |
Main Index |
Thread Index |
Old Index