diff options
-rw-r--r-- | devel/gdb6/Makefile | 7 | ||||
-rw-r--r-- | devel/gdb6/PLIST.common | 6 | ||||
-rw-r--r-- | devel/gdb6/options.mk | 15 |
3 files changed, 21 insertions, 7 deletions
diff --git a/devel/gdb6/Makefile b/devel/gdb6/Makefile index 6f4dc9b86d1..57345593e96 100644 --- a/devel/gdb6/Makefile +++ b/devel/gdb6/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2008/06/20 01:09:12 joerg Exp $ +# $NetBSD: Makefile,v 1.24 2009/04/04 13:49:17 wiz Exp $ # DISTNAME= gdb-6.2.1 @@ -23,9 +23,9 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/gdb6 CONFIGURE_ARGS+= --includedir=${PREFIX}/include/gdb6 CONFIGURE_ARGS+= --enable-libada -INFO_FILES= # PLIST +INFO_FILES= yes -.include "../../mk/bsd.prefs.mk" +.include "options.mk" pre-patch: ${CP} ${FILESDIR}/nbsd-nat.c ${WRKSRC}/gdb @@ -38,5 +38,4 @@ do-test: fi .include "../../devel/gettext-lib/buildlink3.mk" -.include "../../mk/curses.buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/devel/gdb6/PLIST.common b/devel/gdb6/PLIST.common index c0413702af3..199a38aca0b 100644 --- a/devel/gdb6/PLIST.common +++ b/devel/gdb6/PLIST.common @@ -1,6 +1,6 @@ -@comment $NetBSD: PLIST.common,v 1.1 2009/02/11 21:58:40 shattered Exp $ +@comment $NetBSD: PLIST.common,v 1.2 2009/04/04 13:49:17 wiz 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 diff --git a/devel/gdb6/options.mk b/devel/gdb6/options.mk new file mode 100644 index 00000000000..ef602d6ce54 --- /dev/null +++ b/devel/gdb6/options.mk @@ -0,0 +1,15 @@ +# $NetBSD: options.mk,v 1.1 2009/04/04 13:49:17 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.gdb6 +PKG_SUPPORTED_OPTIONS= gdb6-tui +PKG_SUGGESTED_OPTIONS= gdb6-tui + +.include "../../mk/bsd.options.mk" + +PLIST_VARS+= tui +.if !empty(PKG_OPTIONS:Mgdb6-tui) +PLIST.tui= yes +.include "../../mk/curses.buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-tui +.endif |