pkgsrc/editors/vim/Makefile

36 lines
815 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.36 2001/01/08 13:23:53 wiz Exp $
1998-02-19 22:47:54 +01:00
.include "../vim-share/Makefile.common"
1998-02-19 22:47:54 +01:00
PKGNAME= vim-${VIM_VERSION}
1998-02-19 22:47:54 +01:00
DEPENDS+= vim-share-${VIM_VERSION}:../vim-share
1999-08-08 11:31:18 +02:00
CONFLICTS= vim-xaw-* vim-gtk-*
1998-02-19 22:47:54 +01:00
CONFIGURE_ARGS+= --enable-gui=no --without-x
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
CPPFLAGS+= -I${LOCALBASE}/include # for ncurses' termcap.h
LDFLAGS+= -L${LOCALBASE}/lib # for -lncurses
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
.else
CONFIGURE_ARGS+= --with-tlib=curses
.endif
.include "../../mk/bsd.pkg.mk"