summaryrefslogtreecommitdiff
path: root/news/tin/options.mk
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2007-09-13 23:14:41 +0000
committerwiz <wiz@pkgsrc.org>2007-09-13 23:14:41 +0000
commit98e4cd068bd1828b2c2fa67c46b71adfe9bf5a4c (patch)
treec39daa348c3473c0379df075f81fc79df642becc /news/tin/options.mk
parent70040638e6406334763f6beaea18ce58ca00a2bd (diff)
downloadpkgsrc-98e4cd068bd1828b2c2fa67c46b71adfe9bf5a4c.tar.gz
Add options for ncurses and ncursesw support.
Based on patch in PR 36983 by Leonard Schmidt.
Diffstat (limited to 'news/tin/options.mk')
-rw-r--r--news/tin/options.mk25
1 files changed, 20 insertions, 5 deletions
diff --git a/news/tin/options.mk b/news/tin/options.mk
index 1a6c4c05df3..acdae50dfb9 100644
--- a/news/tin/options.mk
+++ b/news/tin/options.mk
@@ -1,16 +1,31 @@
-# $NetBSD: options.mk,v 1.6 2007/01/30 07:11:46 wiz Exp $
+# $NetBSD: options.mk,v 1.7 2007/09/13 23:14:41 wiz Exp $
-.include "../../mk/bsd.prefs.mk"
-
-PKG_OPTIONS_VAR= PKG_OPTIONS.tin
-PKG_SUPPORTED_OPTIONS= curses icu inet6 tin-use-inn-spool
+PKG_OPTIONS_VAR= PKG_OPTIONS.tin
+PKG_SUPPORTED_OPTIONS= icu inet6 tin-use-inn-spool
+PKG_OPTIONS_REQUIRED_GROUPS= display
+PKG_OPTIONS_GROUP.display= curses ncurses ncursesw
+PKG_SUGGESTED_OPTIONS= curses
# untested
#PKG_SUPPORTED_OPTIONS+= socks
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mcurses)
+. include "../../mk/curses.buildlink3.mk"
CONFIGURE_ARGS+= --with-screen=curses
+CONFIGURE_ARGS+= --with-curses-dir=${BUILDLINK_PREFIX.curses}
+.endif
+
+.if !empty(PKG_OPTIONS:Mncurses)
+. include "../../devel/ncurses/buildlink3.mk"
+CONFIGURE_ARGS+= --with-screen=ncurses
+CONFIGURE_ARGS+= --with-curses-dir=${BUILDLINK_PREFIX.ncurses}
+.endif
+
+.if !empty(PKG_OPTIONS:Mncursesw)
+. include "../../devel/ncursesw/buildlink3.mk"
+CONFIGURE_ARGS+= --with-screen=ncursesw
+CONFIGURE_ARGS+= --with-curses-dir=${BUILDLINK_PREFIX.ncursesw}
.endif
.if !empty(PKG_OPTIONS:Micu)