1 # $NetBSD: options.mk,v 1.1 2007/09/05 23:05:13 wiz Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.nvi
4 PKG_SUPPORTED_OPTIONS= # empty
6 .include "../../mk/bsd.prefs.mk"
8 NVI_NON_WIDE_PLATFORMS= NetBSD-[0-3].*-* # missing swprintf()
9 .for _pattern_ in ${NVI_NON_WIDE_PLATFORMS}
10 . if !empty(MACHINE_PLATFORM:M${_pattern_})
11 NVI_NON_WIDE_PLATFORM= yes
15 # Only support the ``wide-curses'' option on platforms that have the
16 # necessary wide character support.
18 .if !defined(NVI_NON_WIDE_PLATFORM)
19 PKG_SUPPORTED_OPTIONS+= wide-curses
20 PKG_LEGACY_OPTS+= ncursesw:wide-curses
23 .include "../../mk/bsd.options.mk"
26 ### Wide curses support; otherwise, default to using narrow curses.
28 .if !empty(PKG_OPTIONS:Mwide-curses)
29 . include "../../devel/ncursesw/buildlink3.mk"
30 CONFIGURE_ARGS+= --enable-widechar
32 . include "../../mk/curses.buildlink3.mk"