diff options
author | wiz <wiz@pkgsrc.org> | 2000-11-02 03:01:40 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2000-11-02 03:01:40 +0000 |
commit | 7382d63dd07301688aa2f8930122a67425068339 (patch) | |
tree | 81e7b3b99fe66cbfe991110111a09fcff389f950 /mk/bsd.prefs.mk | |
parent | 545d16621500dd1f2b34a49a3037e3e4fe884193 (diff) | |
download | pkgsrc-7382d63dd07301688aa2f8930122a67425068339.tar.gz |
Move USE_NCURSES stuff from bsd.pkg.mk to bsd.prefs.mk.
Do executable bit testing in bsd.pkg.mk, REPLACE_NCURSES, slightly
different.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r-- | mk/bsd.prefs.mk | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 29b13915eac..c33fb8a5464 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.18 2000/10/15 11:31:42 rh Exp $ +# $NetBSD: bsd.prefs.mk,v 1.19 2000/11/02 03:01:40 wiz Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -126,4 +126,19 @@ HAVE_BUILTIN_MESA= YES .undef __BUILTIN_MESA .endif # CHECK_MESA +.if defined(USE_CURSES) && !defined(NEED_NCURSES) +NEED_NCURSES= NO +.if ${OPSYS} == "NetBSD" +_INCOMPAT_CURSES= 0.* 1.[0123]* 1.4.* 1.4[A-X] +.for PATTERN in ${_INCOMPAT_CURSES} +.if ${OS_VERSION:M${PATTERN}} != "" +NEED_NCURSES= YES +.endif +.endfor +.endif +# we can pass the flag down without recursive dependency of ncurses +# on itself, because it's explicitly tested in bsd.pkg.mk +MAKEFLAGS+= NEED_NCURSES=${NEED_NCURSES} +.endif # USE_CURSES + .endif # BSD_PKG_MK |