diff options
Diffstat (limited to 'editors/nvi/options.mk')
-rw-r--r-- | editors/nvi/options.mk | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/editors/nvi/options.mk b/editors/nvi/options.mk index ca764a54897..bfd231e0937 100644 --- a/editors/nvi/options.mk +++ b/editors/nvi/options.mk @@ -1,14 +1,33 @@ -# $NetBSD: options.mk,v 1.1 2007/09/05 23:05:13 wiz Exp $ +# $NetBSD: options.mk,v 1.2 2008/02/21 21:17:45 jlam Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.nvi -PKG_SUPPORTED_OPTIONS= ncursesw +PKG_SUPPORTED_OPTIONS= # empty + +.include "../../mk/bsd.prefs.mk" + +NVI_NON_WIDE_PLATFORMS= NetBSD-[0-3].*-* # missing swprintf() +.for _pattern_ in ${NVI_NON_WIDE_PLATFORMS} +. if !empty(MACHINE_PLATFORM:M${_pattern_}) +NVI_NON_WIDE_PLATFORM= yes +. endif +.endfor + +# Only support the ``wide-curses'' option on platforms that have the +# necessary wide character support. +# +.if !defined(NVI_NON_WIDE_PLATFORM) +PKG_SUPPORTED_OPTIONS+= wide-curses +PKG_LEGACY_OPTS+= ncursesw:wide-curses +.endif .include "../../mk/bsd.options.mk" -.if !empty(PKG_OPTIONS:Mncursesw) +### +### Wide curses support; otherwise, default to using narrow curses. +### +.if !empty(PKG_OPTIONS:Mwide-curses) . include "../../devel/ncursesw/buildlink3.mk" CONFIGURE_ARGS+= --enable-widechar -#CONFIGURE_ARGS+= --with-curses=${BUILDLINK_PREFIX.ncursesw} .else . include "../../mk/curses.buildlink3.mk" .endif |