2001-09-27 15:39:14 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2001/09/27 19:39:14 lebel Exp $
|
2001-04-02 11:47:07 -04:00
|
|
|
|
2001-09-27 15:39:14 -04:00
|
|
|
COMMENT= "vi clone, many additional features"
|
2001-04-02 11:47:07 -04:00
|
|
|
|
2001-09-27 15:39:14 -04:00
|
|
|
V=
|
|
|
|
DISTNAME= vim-6.0${V}
|
|
|
|
PKGNAME= ${DISTNAME}
|
2001-04-02 11:47:07 -04:00
|
|
|
CATEGORIES= editors
|
2001-09-27 15:39:14 -04:00
|
|
|
NEED_VERSION= 1.460
|
|
|
|
MASTER_SITES= ftp://ftp.vim.org/pub/vim/unix/ \
|
|
|
|
ftp://ftp.nuxi.com/pub/vim/unix/ \
|
2001-05-06 03:09:33 -04:00
|
|
|
ftp://ftp.home.vim.org/pub/vim/unix/ \
|
2001-04-02 11:47:07 -04:00
|
|
|
ftp://ftp.berlin.de.vim.org/misc/editors/vim/unix/ \
|
2001-09-27 15:39:14 -04:00
|
|
|
ftp://ftp.is.co.za/applications/editors/vim/unix/ \
|
|
|
|
ftp://ftp.progsoc.uts.edu.au/pub/vim/unix/
|
|
|
|
DISTFILES= ${DISTNAME}.tar.bz2
|
2001-04-02 11:47:07 -04:00
|
|
|
|
2001-05-06 03:09:33 -04:00
|
|
|
HOMEPAGE= http://www.vim.org/
|
2001-04-02 11:47:07 -04:00
|
|
|
|
2001-09-27 15:39:14 -04:00
|
|
|
MAINTAINER= David Lebel <lebel@openbsd.org>
|
2001-04-02 11:47:07 -04:00
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2001-09-27 15:39:14 -04:00
|
|
|
MODULES= gettext iconv
|
|
|
|
FLAVORS= huge gtk athena motif no_x11 perl python
|
2001-04-02 11:47:07 -04:00
|
|
|
FLAVOR?= gtk
|
|
|
|
|
2001-09-27 15:39:14 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS+=--with-tlib="curses" --enable-multibyte
|
|
|
|
|
|
|
|
SUBST_VARS= V
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mhuge}
|
|
|
|
CONFIGURE_ARGS+=--with-features=huge
|
|
|
|
.endif
|
2001-04-02 11:47:07 -04:00
|
|
|
|
2001-09-27 15:39:14 -04:00
|
|
|
.if ${FLAVOR:L:Mperl}
|
|
|
|
CONFIGURE_ARGS+=--enable-perlinterp
|
2001-04-02 11:47:07 -04:00
|
|
|
.endif
|
|
|
|
|
2001-09-27 15:39:14 -04:00
|
|
|
.if ${FLAVOR:L:Mpython}
|
|
|
|
PYTHON_VER= 2.1
|
|
|
|
CONFIGURE_ARGS+=--enable-pythoninterp \
|
|
|
|
--with-python-config-dir=${LOCALBASE}/lib/python${PYTHON_VER}/config
|
|
|
|
RUN_DEPENDS+= python${PYTHON_VER}::lang/python
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2001-04-02 11:47:07 -04:00
|
|
|
.endif
|
2001-09-27 15:39:14 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_x11} && \
|
|
|
|
!${FLAVOR:L:Mgtk} && !${FLAVOR:L:Mmotif} && !${FLAVOR:L:Mathena}
|
2001-04-02 11:47:07 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-gui --without-x
|
2001-09-27 15:39:14 -04:00
|
|
|
.elif ${FLAVOR:L:Mmotif} && \
|
|
|
|
!${FLAVOR:L:Mgtk} && !${FLAVOR:L:Mno_x11} && !${FLAVOR:L:Mathena}
|
|
|
|
CONFIGURE_ARGS+=--enable-gui="motif" --with-x --enable-fontset --enable-xim
|
2001-04-02 11:47:07 -04:00
|
|
|
CONFIGURE_ENV+= MOTIFHOME=${X11BASE}
|
2001-04-18 11:01:02 -04:00
|
|
|
USE_MOTIF=any
|
2001-09-27 15:39:14 -04:00
|
|
|
.elif ${FLAVOR:L:Mathena} && \
|
|
|
|
!${FLAVOR:L:Mgtk} && !${FLAVOR:L:Mno_x11} && ${FLAVOR:L:Mmotif}
|
|
|
|
CONFIGURE_ARGS+=--enable-gui="athena" --with-x --enable-fontset --enable-xim
|
|
|
|
.elif ${FLAVOR:L:Mgtk} && \
|
|
|
|
!${FLAVOR:L:Mmotif} && !${FLAVOR:L:Mno_x11} && !${FLAVOR:L:Mathena}
|
2001-04-02 11:47:07 -04:00
|
|
|
LIB_DEPENDS= gtk.1.2::x11/gtk+
|
2001-09-27 15:39:14 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-gui="gtk" --with-x --enable-fontset --enable-xim
|
|
|
|
.else
|
|
|
|
ERRORS+="Fatal: Conflicting flavor: ${FLAVOR}"
|
2001-04-02 11:47:07 -04:00
|
|
|
.endif
|
|
|
|
|
2001-09-27 15:39:14 -04:00
|
|
|
WRKDIST= ${WRKDIR}/vim60${V}
|
|
|
|
WRKSRC= ${WRKDIST}/src
|
|
|
|
|
2001-04-02 11:47:07 -04:00
|
|
|
.include <bsd.port.mk>
|