pkgsrc/editors/vim/Makefile
2000-11-02 03:25:32 +00:00

36 lines
825 B
Makefile

# $NetBSD: Makefile,v 1.35 2000/11/02 03:25:33 wiz Exp $
.include "../vim-share/Makefile.common"
PKGNAME= vim-${VIM_VERSION}
DEPENDS+= vim-share-${VIM_VERSION}:../vim-share
CONFLICTS= vim-xaw-* vim-gtk-*
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}"
USE_CURSES= yes
ALL_TARGET= vim
INSTALL_TARGET= installvimbin
post-install:
for f in rvim rview ; do \
${RM} -f ${PREFIX}/bin/$$f; \
${LN} -s vim ${PREFIX}/bin/$$f; \
done
.include "../../mk/bsd.prefs.mk"
.if ${NEED_NCURSES} == "YES"
CONFIGURE_ARGS+= --with-tlib=ncurses
.else
CPPFLAGS=
CONFIGURE_ARGS+= --with-tlib=curses
.endif
.include "../../mk/bsd.pkg.mk"