diff options
author | wiz <wiz> | 2000-11-02 03:01:40 +0000 |
---|---|---|
committer | wiz <wiz> | 2000-11-02 03:01:40 +0000 |
commit | 094e9fea9af36fb06905408728253d5b0f617573 (patch) | |
tree | 81e7b3b99fe66cbfe991110111a09fcff389f950 /mk/bsd.prefs.mk | |
parent | ba4b3a7890f1ce8bfd1bb8e2dd44292474d2469e (diff) | |
download | pkgsrc-094e9fea9af36fb06905408728253d5b0f617573.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 |