openbsd-ports/editors/vim/stable/Makefile

75 lines
2.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.10 2001/09/27 19:39:14 lebel Exp $
2001-04-02 11:47:07 -04:00
COMMENT= "vi clone, many additional features"
2001-04-02 11:47:07 -04:00
V=
DISTNAME= vim-6.0${V}
PKGNAME= ${DISTNAME}
2001-04-02 11:47:07 -04:00
CATEGORIES= editors
NEED_VERSION= 1.460
MASTER_SITES= ftp://ftp.vim.org/pub/vim/unix/ \
ftp://ftp.nuxi.com/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/
DISTFILES= ${DISTNAME}.tar.bz2
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
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= gettext iconv
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
SUBST_VARS= V
.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.1
CONFIGURE_ARGS+=--enable-pythoninterp \
--with-python-config-dir=${LOCALBASE}/lib/python${PYTHON_VER}/config
RUN_DEPENDS+= python${PYTHON_VER}::lang/python
BUILD_DEPENDS= ${RUN_DEPENDS}
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-04-02 11:47:07 -04:00
LIB_DEPENDS= gtk.1.2::x11/gtk+
CONFIGURE_ARGS+=--enable-gui="gtk" --with-x --enable-fontset --enable-xim
.else
ERRORS+="Fatal: Conflicting flavor: ${FLAVOR}"
2001-04-02 11:47:07 -04:00
.endif
WRKDIST= ${WRKDIR}/vim60${V}
WRKSRC= ${WRKDIST}/src
2001-04-02 11:47:07 -04:00
.include <bsd.port.mk>