summaryrefslogtreecommitdiff
path: root/editors/vim
diff options
context:
space:
mode:
authorpooka <pooka@pkgsrc.org>2000-02-18 14:37:43 +0000
committerpooka <pooka@pkgsrc.org>2000-02-18 14:37:43 +0000
commit7300f22d215328a084339ac1bf57ab06fd00894e (patch)
tree105b03030f1622605db13a112957d35eb05eb847 /editors/vim
parent46cef240454ecbf5db7a16423eb7678deb85f3b2 (diff)
downloadpkgsrc-7300f22d215328a084339ac1bf57ab06fd00894e.tar.gz
Do the same here that was done for vim-gtk, ie. fix solaris curses handling
and modify post-install into a tidy loop.
Diffstat (limited to 'editors/vim')
-rw-r--r--editors/vim/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index 1d8cbc4aa02..31181a43bed 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2000/01/25 17:13:14 pooka Exp $
+# $NetBSD: Makefile,v 1.32 2000/02/18 14:37:43 pooka Exp $
.include "../vim-share/Makefile.common"
@@ -8,7 +8,7 @@ DEPENDS+= vim-share-${VIM_VERSION}:../vim-share
CONFLICTS= vim-xaw-* vim-gtk-*
-CONFIGURE_ARGS+= --enable-gui=no --without-x --with-tlib=ncurses
+CONFIGURE_ARGS+= --enable-gui=no --without-x
CPPFLAGS+= -I${LOCALBASE}/include # for ncurses' termcap.h
LDFLAGS+= -L${LOCALBASE}/lib # for -lncurses
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
@@ -20,10 +20,16 @@ INSTALL_TARGET= installvimbin
.if (${OPSYS} == "NetBSD")
DEPENDS+= ncurses>=4.2:../../devel/ncurses
+CONFIGURE_ARGS+= --with-tlib=ncurses
+.elif ${OPSYS} == "SunOS"
+CPPFLAGS=
+CONFIGURE_ARGS+= --with-tlib=curses
.endif
post-install:
- ${LN} -fs vim ${PREFIX}/bin/rvim
- ${LN} -fs vim ${PREFIX}/bin/rview
+ for f in rvim rview ; do \
+ ${RM} -f ${PREFIX}/bin/$$f; \
+ ${LN} -s vim ${PREFIX}/bin/$$f; \
+ done
.include "../../mk/bsd.pkg.mk"