summaryrefslogtreecommitdiff
path: root/editors/vim/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'editors/vim/Makefile')
-rw-r--r--editors/vim/Makefile24
1 files changed, 19 insertions, 5 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index 31181a43bed..d22ba349717 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2000/02/18 14:37:43 pooka Exp $
+# $NetBSD: Makefile,v 1.33 2000/06/25 11:50:32 pooka Exp $
.include "../vim-share/Makefile.common"
@@ -18,12 +18,26 @@ INSTALL_TARGET= installvimbin
.include "../../mk/bsd.prefs.mk"
-.if (${OPSYS} == "NetBSD")
-DEPENDS+= ncurses>=4.2:../../devel/ncurses
-CONFIGURE_ARGS+= --with-tlib=ncurses
-.elif ${OPSYS} == "SunOS"
+.if ${OPSYS} == "NetBSD"
+GOOD_CURSES= 1.4[Y-Z] 1.4Z[A-Z] 1.[5-9]*
+
+.for PATTERN in ${GOOD_CURSES}
+.if ${OS_VERSION:M${PATTERN}} != ""
+CURSES_GOOD?= #defined
+.endif
+.endfor
+.endif
+
+.if ${OPSYS} == "SunOS"
+CURSES_GOOD?= #defined
+.endif
+
+.if defined(CURSES_GOOD)
CPPFLAGS=
CONFIGURE_ARGS+= --with-tlib=curses
+.else
+DEPENDS+= ncurses>=4.2:../../devel/ncurses
+CONFIGURE_ARGS+= --with-tlib=ncurses
.endif
post-install: