openbsd-ports/editors/vim/Makefile

140 lines
3.9 KiB
Makefile
Raw Normal View History

2010-11-07 13:50:57 -05:00
# $OpenBSD: Makefile,v 1.117 2010/11/07 18:50:57 espie Exp $
2001-03-29 11:54:04 -05:00
COMMENT-main= vi clone, many additional features
COMMENT-lang= vi clone, NLS subpackage
1998-06-09 03:48:48 -04:00
DISTNAME= vim-7.3
REV= 3
VERSION= 7.3.${REV}
# keep PKGNAME for full version number
PKGNAME= vim-${VERSION}
2010-10-11 04:11:24 -04:00
PKGNAME-main= vim-${VERSION}
REVISION-main= 1
PKGNAME-lang= vim-lang-${VERSION}
REVISION-lang= 1
P= ${DISTNAME:C/[-\.]//g}
CATEGORIES= editors
MASTER_SITES= ftp://ftp.vim.org/pub/vim/unix/ \
ftp://ftp.home.vim.org/pub/vim/unix/ \
ftp://ftp.berlin.de.vim.org/unix/
MASTER_SITES0= ${MASTER_SITES:S/unix/patches\/7.3/}
DISTFILES= ${DISTNAME}.tar.bz2
DIST_SUBDIR= vim73
HOMEPAGE= http://www.vim.org/
2006-07-09 13:44:16 -04:00
MAINTAINER= Chris Kuethe <ckuethe@openbsd.org>
PATCHFILES= #
_patches!= jot -w%03d - 1 ${REV} 1
#_patches!= jot -w%03d - 1 ${REV} 1 | \
# egrep -v 'xxx|yyy|xxx|...'
2006-07-09 13:44:16 -04:00
.for p in ${_patches}
PATCHFILES+= 7.3.${p}:0
2006-07-09 13:44:16 -04:00
.endfor
# 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
# donation-ware
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
2010-10-18 14:00:15 -04:00
USE_GROFF = Yes
MULTI_PACKAGES= -main -lang
FLAVORS= huge gtk2 athena motif no_x11 perl python ruby
FLAVOR?= gtk2
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${DEPBASE}/include" \
LDFLAGS="-L${DEPBASE}/lib"
CONFIGURE_ARGS+=--with-tlib="curses" --enable-multibyte --enable-cscope
.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
.endif
.if ${FLAVOR:L:Mpython}
2007-10-24 14:05:10 -04:00
MODULES+= lang/python
CONFIGURE_ENV+= vi_cv_path_python=${MODPY_BIN}
CONFIGURE_ARGS+=--enable-pythoninterp \
2007-10-24 14:05:10 -04:00
--with-python-config-dir=${MODPY_LIBDIR}/config
LIB_DEPENDS+= ${MODPY_LIB_DEPENDS}
WANTLIB+= m pthread util ${MODPY_WANTLIB}
.endif
.if ${FLAVOR:L:Mruby}
MODULES+= lang/ruby
CONFIGURE_ARGS+=--enable-rubyinterp
MAKE_ENV+= RUBY="${RUBY}"
LIB_DEPENDS+= ${MODRUBY_LIB_DEPENDS}
WANTLIB+= m ${MODRUBY_WANTLIB}
.endif
.if ${FLAVOR:L:Mno_x11} && \
!${FLAVOR:L:Mmotif} && !${FLAVOR:L:Mathena} && !${FLAVOR:L:Mgtk2}
CONFIGURE_ARGS+=--disable-gui --without-x
2009-06-16 21:53:32 -04:00
WANTLIB+= m
.elif ${FLAVOR:L:Mmotif} && \
!${FLAVOR:L:Mno_x11} && !${FLAVOR:L:Mathena} && !${FLAVOR:L:Mgtk2}
CONFIGURE_ARGS+=--enable-gui="motif" --with-x --enable-fontset --enable-xim
CONFIGURE_ENV+= MOTIFHOME=${X11BASE}
USE_MOTIF= any
WANTLIB+= ICE SM X11 Xext Xmu Xpm Xt pthread-stubs xcb
.elif ${FLAVOR:L:Mathena} && \
!${FLAVOR:L:Mno_x11} && !${FLAVOR:L:Mmotif} && !${FLAVOR:L:Mgtk2}
CONFIGURE_ARGS+=--enable-gui="athena" --with-x --enable-fontset --enable-xim
WANTLIB+= ICE SM X11 Xaw Xext Xmu Xpm Xt pthread-stubs xcb
.elif ${FLAVOR:L:Mgtk2} && \
!${FLAVOR:L:Mmotif} && !${FLAVOR:L:Mno_x11} && !${FLAVOR:L:Mathena}
MAKE_FLAGS+= 'LDFLAGS=-pthread'
MAKE_FLAGS+= 'CFLAGS=-pthread'
2010-11-07 13:50:57 -05:00
LIB_DEPENDS+= ::x11/gtk+2
CONFIGURE_ARGS+=--enable-gui="gtk2" --with-x --enable-fontset --enable-xim --disable-gtk-check --enable-gtk2-check
WANTLIB+= ICE SM X11 Xext Xrender Xt fontconfig freetype m z\
atk-1.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 png expat\
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 \
Xrandr pixman-1 pthread-stubs xcb gthread-2.0 xcb-render \
2010-11-07 13:50:57 -05:00
xcb-render-util gdk_pixbuf-2.0 gdk-x11-2.0.>=0.11 \
gtk-x11-2.0.>=0.11
.else
ERRORS= "Fatal: You must select one GUI interface: no_x11, gtk2, athena or motif"
.endif
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
WRKDIST= ${WRKDIR}/${P}
WRKSRC= ${WRKDIST}/src
SUBST_VARS= P
# 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>