aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ocaml-camljava/Makefile
blob: 15e6c6b53f2701f25298de1897bfc72cad829df4 (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
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
# $FreeBSD$

PORTNAME=   camljava
PORTVERSION=    0.3
PORTREVISION=   3
CATEGORIES= devel java
MASTER_SITES=   http://caml.inria.fr/distrib/bazar-ocaml/
PKGNAMEPREFIX=  ocaml-

MAINTAINER= ports@FreeBSD.org
COMMENT=    OCaml-Java library interface

USE_OCAML=  yes
USE_JAVA=   yes
JAVA_VERSION=   1.6+

post-patch:
    @${REINPLACE_CMD} -e "s,^\(JAVAC=\).*,\1${JAVAC},g" \
        -e "s,^\(JDKHOME=\).*,\1${JAVA_HOME},g" \
        -e "s,include/linux,include/freebsd,g" \
        -e "s,^CFLAGS=.*,#\&,g" \
        -e "s,^\(CC=\).*,#\&,g" \
        -e "s,i386,${ARCH},g" \
        ${WRKSRC}/Makefile.config
    @${REINPLACE_CMD} -e 's,(int64,&_t,' ${WRKSRC}/lib/jnistubs.c

test:
    @${ECHO_CMD} "Testing IDL library"
    cd ${WRKSRC}/test && ${SETENV} ${MAKE_ENV} ${MAKE} all

.include <bsd.port.mk>