2002-03-17 18:40:00 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.43 2002/03/17 23:40:00 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-11-07 22:24:18 -05:00
|
|
|
COMMENT-lang= "vi clone, NLS subpackage"
|
2001-04-02 11:47:07 -04:00
|
|
|
|
2001-09-30 14:59:40 -04:00
|
|
|
DISTNAME= vim-6.0
|
2002-02-24 16:41:08 -05:00
|
|
|
REVISION= 270
|
2001-12-19 14:27:12 -05:00
|
|
|
VERSION= 6.0.${REVISION}
|
2001-11-07 22:24:18 -05:00
|
|
|
PKGNAME= vim-${VERSION}
|
2001-04-02 11:47:07 -04:00
|
|
|
CATEGORIES= editors
|
2001-10-28 19:28:56 -05:00
|
|
|
NEED_VERSION= 1.487
|
2001-09-27 15:39:14 -04:00
|
|
|
MASTER_SITES= ftp://ftp.vim.org/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/
|
2001-09-30 14:59:40 -04:00
|
|
|
MASTER_SITES0= ${MASTER_SITES:S/unix/patches/}
|
2001-10-30 15:17:43 -05:00
|
|
|
MASTER_SITES1= ${MASTER_SITES:S/unix/extra/}
|
|
|
|
DISTFILES= ${DISTNAME}.tar.bz2 \
|
2001-11-07 22:24:18 -05:00
|
|
|
${DISTNAME}-extra.tar.gz:1 \
|
|
|
|
${DISTNAME}-lang.tar.gz:1
|
2001-09-30 14:59:40 -04:00
|
|
|
DIST_SUBDIR= vim6
|
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
|
|
|
|
2002-02-14 14:03:51 -05:00
|
|
|
PATCHFILES+= 6.0.1-200.gz:0
|
|
|
|
_patches!= jot -w%03d - 201 ${REVISION} 1
|
2001-12-19 14:27:12 -05:00
|
|
|
.for p in ${_patches}
|
|
|
|
PATCHFILES+= 6.0.${p}:0
|
2001-09-30 14:59:40 -04:00
|
|
|
.endfor
|
|
|
|
|
2001-10-25 11:10:44 -04:00
|
|
|
# allow vim to build on m68k and vax
|
|
|
|
.if (${MACHINE_ARCH} == "m68k")
|
|
|
|
PATCH_LIST= patch-* sup-m68k-*
|
|
|
|
.elif (${MACHINE_ARCH} == "vax")
|
|
|
|
PATCH_LIST= patch-* sup-vax-*
|
|
|
|
.endif
|
|
|
|
|
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
|
2001-11-07 22:24:18 -05:00
|
|
|
|
|
|
|
MULTI_PACKAGES= -lang
|
|
|
|
SUBPACKAGE?=
|
|
|
|
.for i in ${MULTI_PACKAGES}
|
|
|
|
PKGNAME$i= vim$i-${VERSION}
|
|
|
|
.endfor
|
|
|
|
|
2001-09-27 15:39:14 -04:00
|
|
|
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
|
|
|
|
|
|
|
|
.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}
|
2002-03-17 18:40:00 -05:00
|
|
|
PYTHON_VER= 2.2
|
|
|
|
CONFIGURE_ENV+= vi_cv_path_python=${LOCALBASE}/bin/python${PYTHON_VER}
|
2001-09-27 15:39:14 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-pythoninterp \
|
|
|
|
--with-python-config-dir=${LOCALBASE}/lib/python${PYTHON_VER}/config
|
2002-03-17 18:40:00 -05:00
|
|
|
LIB_DEPENDS+= python${PYTHON_VER}.0.0:python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
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} && \
|
2001-12-14 11:03:49 -05:00
|
|
|
!${FLAVOR:L:Mgtk} && !${FLAVOR:L:Mno_x11} && !${FLAVOR:L:Mmotif}
|
2001-09-27 15:39:14 -04:00
|
|
|
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-10-31 20:49:15 -05:00
|
|
|
LIB_DEPENDS+= gtk.1.2,gdk.1.2::x11/gtk+
|
2001-09-27 15:39:14 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-gui="gtk" --with-x --enable-fontset --enable-xim
|
|
|
|
.else
|
2001-10-25 22:17:24 -04:00
|
|
|
ERRORS+="Fatal: You must select one GUI interface: no_x11, gtk, athena or motif"
|
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-11-07 22:24:18 -05:00
|
|
|
SUBST_VARS= VERSION
|
|
|
|
|
2001-11-01 17:29:55 -05:00
|
|
|
# don't try to regenerate the configure script. Works around the fact that
|
|
|
|
# auto/configure.in is newer than auto/configure.
|
|
|
|
post-patch:
|
|
|
|
touch ${WRKBUILD}/auto/configure
|
|
|
|
|
2001-04-02 11:47:07 -04:00
|
|
|
.include <bsd.port.mk>
|