pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/screen Allow override of CURSES_DEFAULT using opt...
details: https://anonhg.NetBSD.org/pkgsrc/rev/80464a541840
branches: trunk
changeset: 555468:80464a541840
user: adrianp <adrianp%pkgsrc.org@localhost>
date: Mon Mar 02 21:11:49 2009 +0000
description:
Allow override of CURSES_DEFAULT using options.mk
diffstat:
misc/screen/Makefile | 4 +++-
misc/screen/options.mk | 25 +++++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletions(-)
diffs (47 lines):
diff -r dec789494b6f -r 80464a541840 misc/screen/Makefile
--- a/misc/screen/Makefile Mon Mar 02 21:08:34 2009 +0000
+++ b/misc/screen/Makefile Mon Mar 02 21:11:49 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.77 2008/06/06 17:14:01 dillo Exp $
+# $NetBSD: Makefile,v 1.78 2009/03/02 21:11:49 adrianp Exp $
DISTNAME= screen-4.0.3
PKGREVISION= 2
@@ -12,6 +12,8 @@
HOMEPAGE= http://www.gnu.org/software/screen/screen.html
COMMENT= Multi-screen window manager
+.include "options.mk"
+
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
diff -r dec789494b6f -r 80464a541840 misc/screen/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/screen/options.mk Mon Mar 02 21:11:49 2009 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: options.mk,v 1.1 2009/03/02 21:11:49 adrianp Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.screen
+
+PKG_OPTIONS_OPTIONAL_GROUPS= curses
+PKG_OPTIONS_GROUP.curses= curses ncurses pdcurses
+
+PKG_SUPPORTED_OPTIONS= # undef
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Override the default curses implemenation
+###
+.if !empty(PKG_OPTIONS:Mcurses)
+CURSES_DEFAULT= curses
+.endif
+
+.if !empty(PKG_OPTIONS:Mncurses)
+CURSES_DEFAULT= ncurses
+.endif
+
+.if !empty(PKG_OPTIONS:Mpdcurses)
+CURSES_DEFAULT= pdcurses
+.endif
Home |
Main Index |
Thread Index |
Old Index