summaryrefslogtreecommitdiff
path: root/editors/vim
diff options
context:
space:
mode:
authorjlam <jlam>2001-06-20 18:59:37 +0000
committerjlam <jlam>2001-06-20 18:59:37 +0000
commitd800ba22cd31c4ada29d90a1af265282b2c43f1c (patch)
treeb3a83045a94a2131a56b2cfcbaf09dc20e314a0d /editors/vim
parentf94c4a25b6c3539e45de6728e7289626c9939022 (diff)
downloadpkgsrc-d800ba22cd31c4ada29d90a1af265282b2c43f1c.tar.gz
Convert to use buildlink.mk file for ncurses dependency and simplify
curses handling during configure process. Mark as USE_BUILDLINK_ONLY.
Diffstat (limited to 'editors/vim')
-rw-r--r--editors/vim/Makefile18
1 files changed, 5 insertions, 13 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index b8c93784bd6..46396e031fe 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2001/06/11 06:34:32 jlam Exp $
+# $NetBSD: Makefile,v 1.39 2001/06/20 18:59:37 jlam Exp $
.include "../vim-share/Makefile.common"
@@ -10,9 +10,10 @@ DEPENDS+= vim-share-${VIM_VERSION}:../vim-share
CONFLICTS= vim-xaw-* vim-gtk-*
-CONFIGURE_ARGS+= --enable-gui=no --without-x
+USE_BUILDLINK_ONLY= # defined
-USE_CURSES= yes
+CONFIGURE_ARGS+= --enable-gui=no --without-x
+CONFIGURE_ARGS+= --with-tlib=ncurses
ALL_TARGET= vim
INSTALL_TARGET= installvimbin
@@ -23,14 +24,5 @@ post-install:
${LN} -s vim ${PREFIX}/bin/$$f; \
done
-.include "../../mk/bsd.prefs.mk"
-
-.if ${NEED_NCURSES} == "YES"
-CONFIGURE_ARGS+= --with-tlib=ncurses
-CPPFLAGS+= -I${LOCALBASE}/include # for ncurses' termcap.h
-LDFLAGS+= -L${LOCALBASE}/lib # for -lncurses
-.else
-CONFIGURE_ARGS+= --with-tlib=curses
-.endif
-
+.include "../../devel/ncurses/buildlink.mk"
.include "../../mk/bsd.pkg.mk"