diff options
author | jlam <jlam@pkgsrc.org> | 2008-02-21 21:17:45 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-02-21 21:17:45 +0000 |
commit | a481ea2ec6f8fc44b760e28bf9b91e89730899eb (patch) | |
tree | 7a05329f56d393df9466a0c4b79ade9f3279dab5 /editors/nvi/options.mk | |
parent | 6316c974037ecd3a0308c5f6edf083329fb0f99b (diff) | |
download | pkgsrc-a481ea2ec6f8fc44b760e28bf9b91e89730899eb.tar.gz |
+ Rename the "ncursesw" option to "wide-curses". This should be supported
under NetBSD-current without actually needing ncursesw.
+ Only make "wide-curses" an available option on platforms that have the
necessary wide-character support. It turns out NetBSD-3.x is not one
of them.
+ Use a less patchy way to turn -ldb into -ldb3 by letting the wrappers
do it.
+ Add full DESTDIR support.
Bump the PKGREVISION to 6.
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 |