openbsd-ports/editors/vim/stable/Makefile

106 lines
3.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.43 2002/03/17 23:40:00 lebel Exp $
2001-04-02 11:47:07 -04:00
COMMENT= "vi clone, many additional features"
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}
PKGNAME= vim-${VERSION}
2001-04-02 11:47:07 -04:00
CATEGORIES= editors
NEED_VERSION= 1.487
MASTER_SITES= ftp://ftp.vim.org/pub/vim/unix/ \
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/ \
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/}
MASTER_SITES1= ${MASTER_SITES:S/unix/extra/}
DISTFILES= ${DISTNAME}.tar.bz2 \
${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
HOMEPAGE= http://www.vim.org/
2001-04-02 11:47:07 -04:00
MAINTAINER= David Lebel <lebel@openbsd.org>
2001-04-02 11:47:07 -04: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
# 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
MODULES= gettext iconv
MULTI_PACKAGES= -lang
SUBPACKAGE?=
.for i in ${MULTI_PACKAGES}
PKGNAME$i= vim$i-${VERSION}
.endfor
FLAVORS= huge gtk athena motif no_x11 perl python
2001-04-02 11:47:07 -04:00
FLAVOR?= gtk
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
.if ${FLAVOR:L:Mperl}
CONFIGURE_ARGS+=--enable-perlinterp
2001-04-02 11:47:07 -04:00
.endif
.if ${FLAVOR:L:Mpython}
PYTHON_VER= 2.2
CONFIGURE_ENV+= vi_cv_path_python=${LOCALBASE}/bin/python${PYTHON_VER}
CONFIGURE_ARGS+=--enable-pythoninterp \
--with-python-config-dir=${LOCALBASE}/lib/python${PYTHON_VER}/config
LIB_DEPENDS+= python${PYTHON_VER}.0.0:python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
2001-04-02 11:47:07 -04:00
.endif
.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
.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}
USE_MOTIF=any
.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-10-31 20:49:15 -05:00
LIB_DEPENDS+= gtk.1.2,gdk.1.2::x11/gtk+
CONFIGURE_ARGS+=--enable-gui="gtk" --with-x --enable-fontset --enable-xim
.else
ERRORS+="Fatal: You must select one GUI interface: no_x11, gtk, athena or motif"
2001-04-02 11:47:07 -04:00
.endif
WRKDIST= ${WRKDIR}/vim60${V}
WRKSRC= ${WRKDIST}/src
SUBST_VARS= VERSION
# 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>