Add files from parent branch HEAD:
[pkgsrcv2.git] / editors / nvi / options.mk
1 # $NetBSD: options.mk,v 1.1 2007/09/05 23:05:13 wiz Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.nvi
4 PKG_SUPPORTED_OPTIONS=  # empty
5
6 .include "../../mk/bsd.prefs.mk"
7
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
12 .  endif
13 .endfor
14
15 # Only support the ``wide-curses'' option on platforms that have the
16 # necessary wide character support.
17 #
18 .if !defined(NVI_NON_WIDE_PLATFORM)
19 PKG_SUPPORTED_OPTIONS+= wide-curses
20 PKG_LEGACY_OPTS+=       ncursesw:wide-curses
21 .endif
22
23 .include "../../mk/bsd.options.mk"
24
25 ###
26 ### Wide curses support; otherwise, default to using narrow curses.
27 ###
28 .if !empty(PKG_OPTIONS:Mwide-curses)
29 .  include "../../devel/ncursesw/buildlink3.mk"
30 CONFIGURE_ARGS+=        --enable-widechar
31 .else
32 .  include "../../mk/curses.buildlink3.mk"
33 .endif