aboutsummaryrefslogtreecommitdiffstats
path: root/devel/coccinelle/Makefile
blob: 7768cede04f91d9613e646d4b216adca34a19cbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Created by: Andriy Gapon
# $FreeBSD$

PORTNAME=   coccinelle
PORTVERSION=    1.0.4
CATEGORIES= devel
MASTER_SITES=   http://coccinelle.lip6.fr/distrib/

MAINTAINER= araujo@FreeBSD.org
COMMENT=    Program matching and transformation engine

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/license.txt

BUILD_DEPENDS=  menhir:devel/menhir \
        ocaml-parmap>=0:devel/ocaml-parmap \
        ocaml-pcre>=0:devel/ocaml-pcre
LIB_DEPENDS=    libpcre.so:devel/pcre

USE_OCAML=  3.0+
USE_OCAML_CAMLP4=yes

USES=       gmake perl5 pkgconfig:build python tar:tgz
USE_PERL5=  build
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  PYTHON="${PYTHON_CMD}" PYVER="${PYTHON_VER}"
MAKE_ARGS=  PYTHON_VERSION="${PYTHON_VER}"

post-install:
    # FIXME: Stripping spatch(1) breaks the executable.
    # ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/coccinelle/spatch
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/coccinelle/*.so

.include <bsd.port.mk>