# Created by: Andriy Gapon
# $FreeBSD: branches/RELEASE_8_4_0/devel/coccinelle/Makefile 310519 2013-01-16 19:38:54Z pawel $

PORTNAME=	coccinelle
DISTVERSION=	0.2.4rc5
CATEGORIES=	devel
MASTER_SITES=	http://coccinelle.lip6.fr/distrib/
EXTRACT_SUFX=	.tgz

MAINTAINER=	avg@icyb.net.ua
COMMENT=	Coccinelle is a program matching and transformation engine

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_PERL5_BUILD=yes
USE_PYTHON=	2.5+
USE_OCAML=	3.0+

MAN1=		spatch.1

post-patch:
	@${REINPLACE_CMD} 's|CAMLreturn0|return 0|' \
		${WRKSRC}/pycaml/pycaml_ml.c

.include <bsd.port.mk>
