2006-09-22 16:39:57 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.72 2006/09/22 20:39:57 ckuethe Exp $
|
2001-03-29 11:54:04 -05:00
|
|
|
|
2004-07-12 15:32:59 -04:00
|
|
|
COMMENT= "vi clone, many additional features"
|
|
|
|
COMMENT-lang= "vi clone, NLS subpackage"
|
1998-06-09 03:48:48 -04:00
|
|
|
|
2006-05-21 16:45:34 -04:00
|
|
|
DISTNAME= vim-7.0
|
2006-09-22 16:39:57 -04:00
|
|
|
REVISION= 109
|
2006-05-21 16:45:34 -04:00
|
|
|
VERSION= 7.0.${REVISION}
|
2006-04-03 16:23:19 -04:00
|
|
|
# keep PKGNAME for full version number
|
2006-07-09 13:44:16 -04:00
|
|
|
PKGNAME= vim-${VERSION}
|
2006-01-17 23:41:12 -05:00
|
|
|
P= ${DISTNAME:C/[-\.]//g}
|
2004-07-12 15:32:59 -04:00
|
|
|
CATEGORIES= editors
|
2005-12-04 09:39:13 -05:00
|
|
|
MASTER_SITES= ftp://ftp.vim.org/pub/vim/unix/ \
|
|
|
|
ftp://ftp.home.vim.org/pub/vim/unix/ \
|
|
|
|
ftp://ftp.berlin.de.vim.org/unix/
|
2006-05-21 16:45:34 -04:00
|
|
|
MASTER_SITES0= ${MASTER_SITES:S/unix/patches\/7.0/}
|
2004-07-12 15:32:59 -04:00
|
|
|
MASTER_SITES1= ${MASTER_SITES:S/unix/extra/}
|
|
|
|
DISTFILES= ${DISTNAME}.tar.bz2 \
|
|
|
|
${DISTNAME}-lang.tar.gz:1
|
2006-05-21 16:45:34 -04:00
|
|
|
DIST_SUBDIR= vim7
|
2004-07-12 15:32:59 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.vim.org/
|
2006-07-09 13:44:16 -04:00
|
|
|
MAINTAINER= Chris Kuethe <ckuethe@openbsd.org>
|
2004-07-12 15:32:59 -04:00
|
|
|
|
|
|
|
PATCHFILES= #
|
2006-07-09 13:44:16 -04:00
|
|
|
# The patches ignored with egrep are for non-unix platforms. If we
|
|
|
|
# attempt to use them, patch fails because they refer to files only
|
|
|
|
# found in the vim-extra (ie. non-unix) source archive.
|
2006-09-22 16:39:57 -04:00
|
|
|
_patches!= jot -w%03d - 1 ${REVISION} 1 | \
|
|
|
|
egrep -v '005|027|028|032|045|057|065|074|108'
|
2006-07-09 13:44:16 -04:00
|
|
|
.for p in ${_patches}
|
|
|
|
PATCHFILES+= 7.0.${p}:0
|
|
|
|
.endfor
|
2004-07-12 15:32:59 -04:00
|
|
|
|
|
|
|
# allow vim to build on m68k and vax
|
|
|
|
.if (${MACHINE_ARCH} == "m68k")
|
2005-12-04 09:39:13 -05:00
|
|
|
PATCH_LIST= patch-* sup-m68k-*
|
2004-07-12 15:32:59 -04:00
|
|
|
.elif (${MACHINE_ARCH} == "vax")
|
2005-12-04 09:39:13 -05:00
|
|
|
PATCH_LIST= patch-* sup-vax-*
|
2004-07-12 15:32:59 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# donation-ware
|
2005-12-04 09:39:13 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-24 06:08:02 -05:00
|
|
|
WANTLIB= c curses
|
2004-07-12 15:32:59 -04:00
|
|
|
|
2005-12-04 09:39:13 -05:00
|
|
|
MULTI_PACKAGES= -lang
|
2004-07-12 15:32:59 -04:00
|
|
|
SUBPACKAGE?=
|
|
|
|
|
|
|
|
.for i in ${MULTI_PACKAGES}
|
2006-05-24 14:37:35 -04:00
|
|
|
PKGNAME$i= vim$i-${VERSION}p0
|
2004-07-12 15:32:59 -04:00
|
|
|
.endfor
|
|
|
|
|
2005-12-04 09:39:13 -05:00
|
|
|
FLAVORS= huge gtk2 athena motif no_x11 perl python ruby
|
|
|
|
FLAVOR?= gtk2
|
2004-07-12 15:32:59 -04:00
|
|
|
|
2005-12-04 09:39:13 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
2005-07-24 07:28:57 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${DEPBASE}/include" \
|
|
|
|
LDFLAGS="-L${DEPBASE}/lib"
|
2004-07-12 15:32:59 -04:00
|
|
|
CONFIGURE_ARGS+=--with-tlib="curses" --enable-multibyte
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mhuge}
|
|
|
|
CONFIGURE_ARGS+=--with-features=huge
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mperl}
|
|
|
|
CONFIGURE_ARGS+=--enable-perlinterp
|
2004-11-24 06:40:00 -05:00
|
|
|
WANTLIB+= m perl util
|
2004-07-12 15:32:59 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mpython}
|
2005-12-04 09:39:13 -05:00
|
|
|
PYTHON_VER= 2.4
|
2005-07-24 07:28:57 -04:00
|
|
|
CONFIGURE_ENV+= vi_cv_path_python=${DEPBASE}/bin/python${PYTHON_VER}
|
2004-07-12 15:32:59 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-pythoninterp \
|
2005-07-24 07:28:57 -04:00
|
|
|
--with-python-config-dir=${DEPBASE}/lib/python${PYTHON_VER}/config
|
2006-09-18 07:50:39 -04:00
|
|
|
LIB_DEPENDS+= python${PYTHON_VER}:python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
2004-11-24 06:40:00 -05:00
|
|
|
WANTLIB+= m pthread util
|
2004-07-12 15:32:59 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mruby}
|
|
|
|
CONFIGURE_ARGS+=--enable-rubyinterp
|
2005-07-24 07:28:57 -04:00
|
|
|
MAKE_ENV+= RUBY="${DEPBASE}/bin/ruby"
|
2004-07-12 15:32:59 -04:00
|
|
|
LIB_DEPENDS+= ruby::lang/ruby
|
2004-11-24 06:40:00 -05:00
|
|
|
WANTLIB+= m
|
2004-07-12 15:32:59 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_x11} && \
|
2005-12-04 09:39:13 -05:00
|
|
|
!${FLAVOR:L:Mmotif} && !${FLAVOR:L:Mathena} && !${FLAVOR:L:Mgtk2}
|
2004-07-12 15:32:59 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-gui --without-x
|
|
|
|
.elif ${FLAVOR:L:Mmotif} && \
|
2005-12-04 09:39:13 -05:00
|
|
|
!${FLAVOR:L:Mno_x11} && !${FLAVOR:L:Mathena} && !${FLAVOR:L:Mgtk2}
|
2004-07-12 15:32:59 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-gui="motif" --with-x --enable-fontset --enable-xim
|
|
|
|
CONFIGURE_ENV+= MOTIFHOME=${X11BASE}
|
2005-12-04 09:39:13 -05:00
|
|
|
USE_MOTIF= any
|
2004-11-24 06:40:00 -05:00
|
|
|
WANTLIB+= ICE SM X11 Xext Xmu Xpm Xt
|
2004-07-12 15:32:59 -04:00
|
|
|
.elif ${FLAVOR:L:Mathena} && \
|
2005-12-04 09:39:13 -05:00
|
|
|
!${FLAVOR:L:Mno_x11} && !${FLAVOR:L:Mmotif} && !${FLAVOR:L:Mgtk2}
|
2004-07-12 15:32:59 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-gui="athena" --with-x --enable-fontset --enable-xim
|
2004-11-24 06:40:00 -05:00
|
|
|
WANTLIB+= ICE SM X11 Xaw Xext Xmu Xpm Xt
|
2004-07-12 15:32:59 -04:00
|
|
|
.elif ${FLAVOR:L:Mgtk2} && \
|
2005-12-04 09:39:13 -05:00
|
|
|
!${FLAVOR:L:Mmotif} && !${FLAVOR:L:Mno_x11} && !${FLAVOR:L:Mathena}
|
2006-09-22 16:39:57 -04:00
|
|
|
LD+= -pthread
|
|
|
|
CC+= -pthread
|
2006-08-01 19:39:08 -04:00
|
|
|
LIB_DEPENDS+= gdk-x11-2.0.>=0.11,gdk_pixbuf-2.0.>=0.11,gtk-x11-2.0.>=0.11::x11/gtk+2
|
2005-02-12 18:00:50 -05:00
|
|
|
BUILD_DEPENDS+= :pkgconfig-*:devel/pkgconfig
|
2004-07-12 15:32:59 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-gui="gtk2" --with-x --enable-fontset --enable-xim --disable-gtk-check --enable-gtk2-check
|
2006-09-22 16:39:57 -04:00
|
|
|
WANTLIB+= ICE SM X11 Xext Xrender Xt fontconfig freetype m z\
|
|
|
|
atk-1.0 glib-2.0 gmodule-2.0 gobject-2.0 png\
|
|
|
|
pango-1.0 pangoft2-1.0 pangocairo-1.0 cairo pthread glitz
|
2004-07-12 15:32:59 -04:00
|
|
|
.else
|
2005-12-04 09:39:13 -05:00
|
|
|
ERRORS= "Fatal: You must select one GUI interface: no_x11, gtk2, athena or motif"
|
2004-07-12 15:32:59 -04:00
|
|
|
.endif
|
2005-12-04 09:39:13 -05:00
|
|
|
|
2005-11-16 07:18:15 -05:00
|
|
|
.if defined(PACKAGING) && ${SUBPACKAGE} == "-lang"
|
2005-12-04 09:39:13 -05:00
|
|
|
. for i in ${FLAVOR:L}
|
|
|
|
_flavor:= ${_flavor},$i
|
|
|
|
. endfor
|
|
|
|
RUN_DEPENDS= ::editors/vim${_flavor}
|
|
|
|
PKG_ARCH= *
|
2005-11-16 07:18:15 -05:00
|
|
|
LIB_DEPENDS=
|
|
|
|
WANTLIB=
|
2005-12-04 09:39:13 -05:00
|
|
|
.else
|
|
|
|
MODULES= devel/gettext
|
2005-11-16 07:18:15 -05:00
|
|
|
.endif
|
2004-07-12 15:32:59 -04:00
|
|
|
|
2005-12-04 09:39:13 -05:00
|
|
|
WRKDIST= ${WRKDIR}/${P}
|
|
|
|
WRKSRC= ${WRKDIST}/src
|
2004-07-12 15:32:59 -04:00
|
|
|
|
2005-12-04 09:39:13 -05:00
|
|
|
SUBST_VARS= P
|
2004-07-12 15:32:59 -04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
touch ${WRKBUILD}/auto/config.mk
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/pf.vim ${PREFIX}/share/vim/${P}/syntax
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|