| @@ -1,32 +1,33 @@ | | | @@ -1,32 +1,33 @@ |
1 | # $NetBSD: options.mk,v 1.2 2008/02/21 21:17:45 jlam Exp $ | | 1 | # $NetBSD: options.mk,v 1.3 2020/05/24 05:00:36 nia Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.nvi | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.nvi |
4 | PKG_SUPPORTED_OPTIONS= # empty | | 4 | PKG_SUPPORTED_OPTIONS= # empty |
5 | | | 5 | |
6 | .include "../../mk/bsd.prefs.mk" | | 6 | .include "../../mk/bsd.prefs.mk" |
7 | | | 7 | |
8 | NVI_NON_WIDE_PLATFORMS= NetBSD-[0-3].*-* # missing swprintf() | | 8 | NVI_NON_WIDE_PLATFORMS= NetBSD-[0-3].*-* # missing swprintf() |
9 | .for _pattern_ in ${NVI_NON_WIDE_PLATFORMS} | | 9 | .for _pattern_ in ${NVI_NON_WIDE_PLATFORMS} |
10 | . if !empty(MACHINE_PLATFORM:M${_pattern_}) | | 10 | . if !empty(MACHINE_PLATFORM:M${_pattern_}) |
11 | NVI_NON_WIDE_PLATFORM= yes | | 11 | NVI_NON_WIDE_PLATFORM= yes |
12 | . endif | | 12 | . endif |
13 | .endfor | | 13 | .endfor |
14 | | | 14 | |
15 | # Only support the ``wide-curses'' option on platforms that have the | | 15 | # Only support the ``wide-curses'' option on platforms that have the |
16 | # necessary wide character support. | | 16 | # necessary wide character support. |
17 | # | | 17 | # |
18 | .if !defined(NVI_NON_WIDE_PLATFORM) | | 18 | .if !defined(NVI_NON_WIDE_PLATFORM) |
19 | PKG_SUPPORTED_OPTIONS+= wide-curses | | 19 | PKG_SUPPORTED_OPTIONS+= wide-curses |
| | | 20 | PKG_SUGGESTED_OPTIONS+= wide-curses |
20 | PKG_LEGACY_OPTS+= ncursesw:wide-curses | | 21 | PKG_LEGACY_OPTS+= ncursesw:wide-curses |
21 | .endif | | 22 | .endif |
22 | | | 23 | |
23 | .include "../../mk/bsd.options.mk" | | 24 | .include "../../mk/bsd.options.mk" |
24 | | | 25 | |
25 | ### | | 26 | ### |
26 | ### Wide curses support; otherwise, default to using narrow curses. | | 27 | ### Wide curses support; otherwise, default to using narrow curses. |
27 | ### | | 28 | ### |
28 | .if !empty(PKG_OPTIONS:Mwide-curses) | | 29 | .if !empty(PKG_OPTIONS:Mwide-curses) |
29 | . include "../../devel/ncursesw/buildlink3.mk" | | 30 | . include "../../devel/ncursesw/buildlink3.mk" |
30 | CONFIGURE_ARGS+= --enable-widechar | | 31 | CONFIGURE_ARGS+= --enable-widechar |
31 | .else | | 32 | .else |
32 | . include "../../mk/curses.buildlink3.mk" | | 33 | . include "../../mk/curses.buildlink3.mk" |