summaryrefslogtreecommitdiff
path: root/editors/vim-gtk/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'editors/vim-gtk/Makefile')
-rw-r--r--editors/vim-gtk/Makefile24
1 files changed, 19 insertions, 5 deletions
diff --git a/editors/vim-gtk/Makefile b/editors/vim-gtk/Makefile
index 5186a666170..0ba932dd201 100644
--- a/editors/vim-gtk/Makefile
+++ b/editors/vim-gtk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2000/02/15 16:08:23 agc Exp $
+# $NetBSD: Makefile,v 1.16 2000/06/25 11:50:34 pooka Exp $
.include "../vim-share/Makefile.common"
@@ -23,11 +23,25 @@ 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"
+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
+CONFIGURE_ARGS+= --with-tlib=curses
+.else
+DEPENDS+= ncurses>=4.2:../../devel/ncurses
+CONFIGURE_ARGS+= --with-tlib=ncurses
.endif
post-install: