summaryrefslogtreecommitdiff
path: root/misc/screen
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2009-03-02 21:11:49 +0000
committeradrianp <adrianp@pkgsrc.org>2009-03-02 21:11:49 +0000
commit9098002713c2f9f710588fde96cec56eddab2c01 (patch)
tree74035d5cadea7b31c2328597b53ffb817713f990 /misc/screen
parent2082de45991470d690d571d6d80ef5fc94655355 (diff)
downloadpkgsrc-9098002713c2f9f710588fde96cec56eddab2c01.tar.gz
Allow override of CURSES_DEFAULT using options.mk
Diffstat (limited to 'misc/screen')
-rw-r--r--misc/screen/Makefile4
-rw-r--r--misc/screen/options.mk25
2 files changed, 28 insertions, 1 deletions
diff --git a/misc/screen/Makefile b/misc/screen/Makefile
index 4a076fdd5f6..b2ca7d078d2 100644
--- a/misc/screen/Makefile
+++ b/misc/screen/Makefile
@@ -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 @@ MAINTAINER= kim@tac.nyc.ny.us
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 --git a/misc/screen/options.mk b/misc/screen/options.mk
new file mode 100644
index 00000000000..2ba55d1d442
--- /dev/null
+++ b/misc/screen/options.mk
@@ -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