# ex:ts=8
# New ports collection makefile for:    vim
# Version required:     4.x
# Date created:         Sat June 29, 1996
# Whom:                 David O'Brien (obrien@cs.ucdavis.edu)
#
# $Id: Makefile,v 1.8 1998/04/04 07:36:40 asami Exp $
#

DISTNAME=	vim-4.6
CATEGORIES=	editors
MASTER_SITES=	ftp://nuxi.ucdavis.edu/pub/vim/unix/ \
		ftp://ftp.nuxi.com/pub/vim/unix/ \
		ftp://ftp.oce.nl/pub/misc/vim/unix/  \
		ftp://ftp.prz.tu-berlin.de/pub/unix/editors/vim/unix/  \
		ftp://ftp.is.co.za/applications/editors/vim/  \
		ftp://ftp.progsoc.uts.edu.au/pub/vim/

PATCH_SITES=	${MASTER_SITES}
PATCHFILES=	vim-4.6.patch

MAINTAINER=     obrien@FreeBSD.org

NO_LATEST_LINK=	yes
WRKSRC=		${WRKDIR}/${DISTNAME}/src
PATCH_DIST_STRIP=-p2
USE_GMAKE=	yes
ALL_TARGET=	
MAN1=		vim.1 xxd.1 ctags.1

.if !defined(WITH_X)
MAKE_FLAGS?=	CONF_OPT_GUI="--enable-gui=no" CONF_OPT_X="--without-x" -f
.endif

post-install:
	[ -e ${PREFIX}/bin/gvim ] || /bin/ln -s ${PREFIX}/bin/vim ${PREFIX}/bin/gvim


.include <bsd.port.mk>
