2011-12-02 09:36:13 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.123 2011/12/02 14:36:14 espie Exp $
|
2001-03-29 11:54:04 -05:00
|
|
|
|
2007-08-29 14:19:13 -04:00
|
|
|
COMMENT-main= vi clone, many additional features
|
|
|
|
COMMENT-lang= vi clone, NLS subpackage
|
1998-06-09 03:48:48 -04:00
|
|
|
|
2010-09-09 18:29:28 -04:00
|
|
|
DISTNAME= vim-7.3
|
2011-04-07 16:50:55 -04:00
|
|
|
REV= 154
|
2010-09-09 18:29:28 -04:00
|
|
|
VERSION= 7.3.${REV}
|
2006-04-03 16:23:19 -04:00
|
|
|
# keep PKGNAME for full version number
|
2007-01-09 14:59:11 -05:00
|
|
|
PKGNAME= vim-${VERSION}
|
2010-10-11 04:11:24 -04:00
|
|
|
PKGNAME-main= vim-${VERSION}
|
2011-09-16 05:48:08 -04:00
|
|
|
REVISION-main= 2
|
2010-10-11 04:11:24 -04:00
|
|
|
PKGNAME-lang= vim-lang-${VERSION}
|
2011-09-16 05:48:08 -04:00
|
|
|
REVISION-lang = 0
|
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/
|
2010-09-09 18:29:28 -04:00
|
|
|
MASTER_SITES0= ${MASTER_SITES:S/unix/patches\/7.3/}
|
|
|
|
DISTFILES= ${DISTNAME}.tar.bz2
|
|
|
|
DIST_SUBDIR= vim73
|
2010-05-27 20:52:19 -04:00
|
|
|
|
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
|
|
|
|
2009-07-19 16:22:01 -04:00
|
|
|
PATCHFILES= #
|
2011-04-07 16:50:55 -04:00
|
|
|
#_patches!= jot -w%03d - 1 ${REV} 1
|
|
|
|
_patches!= jot -w%03d - 1 ${REV} 1 | \
|
|
|
|
egrep -v '009|010|021|027|035|036|037|051|063|064|079|085|087|095|108|113|119|125|131|136|146'
|
2006-07-09 13:44:16 -04:00
|
|
|
.for p in ${_patches}
|
2010-09-09 18:29:28 -04:00
|
|
|
PATCHFILES+= 7.3.${p}:0
|
2006-07-09 13:44:16 -04:00
|
|
|
.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
|
|
|
|
2010-10-18 14:00:15 -04:00
|
|
|
USE_GROFF = Yes
|
2010-05-27 20:52:19 -04:00
|
|
|
MULTI_PACKAGES= -main -lang
|
2004-07-12 15:32:59 -04:00
|
|
|
|
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"
|
2009-07-19 16:22:01 -04:00
|
|
|
CONFIGURE_ARGS+=--with-tlib="curses" --enable-multibyte --enable-cscope
|
2004-07-12 15:32:59 -04:00
|
|
|
|
2011-12-02 09:36:13 -05:00
|
|
|
.if ${FLAVOR:Mhuge}
|
2004-07-12 15:32:59 -04:00
|
|
|
CONFIGURE_ARGS+=--with-features=huge
|
|
|
|
.endif
|
|
|
|
|
2011-12-02 09:36:13 -05:00
|
|
|
.if ${FLAVOR:Mperl}
|
2004-07-12 15:32:59 -04:00
|
|
|
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
|
|
|
|
|
2011-12-02 09:36:13 -05:00
|
|
|
.if ${FLAVOR:Mpython}
|
2007-10-24 14:05:10 -04:00
|
|
|
MODULES+= lang/python
|
|
|
|
CONFIGURE_ENV+= vi_cv_path_python=${MODPY_BIN}
|
2004-07-12 15:32:59 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-pythoninterp \
|
2007-10-24 14:05:10 -04:00
|
|
|
--with-python-config-dir=${MODPY_LIBDIR}/config
|
|
|
|
LIB_DEPENDS+= ${MODPY_LIB_DEPENDS}
|
2010-10-24 11:53:55 -04:00
|
|
|
WANTLIB+= m pthread util ${MODPY_WANTLIB}
|
2004-07-12 15:32:59 -04:00
|
|
|
.endif
|
|
|
|
|
2011-12-02 09:36:13 -05:00
|
|
|
.if ${FLAVOR:Mruby}
|
2009-08-11 00:30:40 -04:00
|
|
|
MODULES+= lang/ruby
|
2004-07-12 15:32:59 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-rubyinterp
|
2009-08-11 00:30:40 -04:00
|
|
|
MAKE_ENV+= RUBY="${RUBY}"
|
|
|
|
LIB_DEPENDS+= ${MODRUBY_LIB_DEPENDS}
|
2010-10-26 17:42:13 -04:00
|
|
|
WANTLIB+= m ${MODRUBY_WANTLIB}
|
2004-07-12 15:32:59 -04:00
|
|
|
.endif
|
|
|
|
|
2011-12-02 09:36:13 -05:00
|
|
|
.if ${FLAVOR:Mno_x11} && \
|
|
|
|
!${FLAVOR:Mmotif} && !${FLAVOR:Mathena} && !${FLAVOR:Mgtk2}
|
2004-07-12 15:32:59 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-gui --without-x
|
2009-06-16 21:53:32 -04:00
|
|
|
WANTLIB+= m
|
2011-12-02 09:36:13 -05:00
|
|
|
.elif ${FLAVOR:Mmotif} && \
|
|
|
|
!${FLAVOR:Mno_x11} && !${FLAVOR:Mathena} && !${FLAVOR:Mgtk2}
|
2004-07-12 15:32:59 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-gui="motif" --with-x --enable-fontset --enable-xim
|
|
|
|
CONFIGURE_ENV+= MOTIFHOME=${X11BASE}
|
2011-04-10 14:00:23 -04:00
|
|
|
LIB_DEPENDS+= x11/openmotif
|
|
|
|
WANTLIB+= m ICE SM X11 Xmu Xpm Xt Xm
|
|
|
|
MAKE_ENV+=MOTIFLIB='-L${LOCALBASE}/lib -lXm'
|
2011-12-02 09:36:13 -05:00
|
|
|
.elif ${FLAVOR:Mathena} && \
|
|
|
|
!${FLAVOR:Mno_x11} && !${FLAVOR:Mmotif} && !${FLAVOR:Mgtk2}
|
2004-07-12 15:32:59 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-gui="athena" --with-x --enable-fontset --enable-xim
|
2011-04-07 16:50:55 -04:00
|
|
|
WANTLIB+= m ICE SM X11 Xaw Xmu Xpm Xt
|
2011-12-02 09:36:13 -05:00
|
|
|
.elif ${FLAVOR:Mgtk2} && \
|
|
|
|
!${FLAVOR:Mmotif} && !${FLAVOR:Mno_x11} && !${FLAVOR:Mathena}
|
2008-02-13 11:28:18 -05:00
|
|
|
MAKE_FLAGS+= 'LDFLAGS=-pthread'
|
|
|
|
MAKE_FLAGS+= 'CFLAGS=-pthread'
|
2010-11-15 18:22:07 -05:00
|
|
|
LIB_DEPENDS+= x11/gtk+2
|
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\
|
2009-06-16 07:30:48 -04:00
|
|
|
atk-1.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 png expat\
|
2008-02-13 11:28:18 -05:00
|
|
|
pango-1.0 pangoft2-1.0 pangocairo-1.0 cairo pthread\
|
2010-10-11 04:11:24 -04:00
|
|
|
Xau Xcomposite Xcursor Xdamage Xfixes Xi Xinerama \
|
2010-08-31 15:38:38 -04:00
|
|
|
Xrandr pixman-1 pthread-stubs xcb gthread-2.0 xcb-render \
|
2011-04-07 16:50:55 -04:00
|
|
|
gdk_pixbuf-2.0 gdk-x11-2.0>=0.11 gtk-x11-2.0>=0.11 GL \
|
|
|
|
Xdmcp Xpm Xxf86vm drm xcb-shm
|
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
|
|
|
|
2010-11-15 18:22:07 -05:00
|
|
|
RUN_DEPENDS-lang= ${BUILD_PKGPATH}
|
2006-11-21 06:25:03 -05:00
|
|
|
PKG_ARCH-lang= *
|
|
|
|
LIB_DEPENDS-lang=
|
|
|
|
WANTLIB-lang=
|
2007-10-24 14:05:10 -04:00
|
|
|
MODULES+= devel/gettext
|
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
|
|
|
|
2006-12-14 04:07:55 -05:00
|
|
|
SUBST_VARS= P
|
2004-07-12 15:32:59 -04: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
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
touch ${WRKBUILD}/auto/config.mk
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/pf.vim ${PREFIX}/share/vim/${P}/syntax
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|