blob: c31217fb5fcb88f5fc8735ab72750e63cc9fea23 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
PORTNAME= erlang
DISTVERSIONPREFIX= OTP-
DISTVERSION= 24.3.4.3
PORTEPOCH= 1
CATEGORIES= lang parallel java
PKGNAMESUFFIX= -java
DIST_SUBDIR= erlang
MAINTAINER= erlang@FreeBSD.org
COMMENT= Erlang interface for Java
LICENSE= APACHE20
RUN_DEPENDS= erl:lang/erlang
USES= autoreconf:build gmake perl5
USE_GITHUB= yes
GH_PROJECT= otp
USE_JAVA= yes
USE_PERL5= build
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
PLIST_SUB= APP_VERSION=${APP_VERSION}
APP_VERSION= 1.12.2
APP_DIR= ${PREFIX}/lib/erlang/lib/jinterface-${APP_VERSION}
CONFIGURE_ARGS+= --enable-threads \
--with-javac \
--without-odbc \
--without-wx
CONFIGURE_ENV+= ac_cv_prog_JAVAC="${JAVAC}"
pre-configure:
@if [ ! $$(${CAT} ${WRKSRC}/lib/jinterface/vsn.mk | ${GREP} -E "JINTERFACE_VSN *=" | ${CUT} -w -f3) = ${APP_VERSION} ]; then \
${ECHO_MSG} "===> APP_VERSION (${APP_VERSION}) in Makefile does not match value in lib/jinterface/vsn.mk"; exit 1; \
fi
do-build:
@${MKDIR} ${WRKSRC}/lib/jinterface/ebin
cd ${WRKSRC}/lib/jinterface && ${GMAKE} ERL_TOP=${WRKSRC} TARGET=${CONFIGURE_TARGET}
${RM} -r ${WRKSRC}/lib/jinterface/priv/com
do-install:
@${MKDIR} ${STAGEDIR}${APP_DIR}
@${MKDIR} ${STAGEDIR}${APP_DIR}/priv
cd ${WRKSRC}/lib/jinterface && ${COPYTREE_SHARE} ebin ${STAGEDIR}${APP_DIR}
cd ${WRKSRC}/lib/jinterface && ${COPYTREE_SHARE} java_src ${STAGEDIR}${APP_DIR}
${INSTALL_DATA} ${WRKSRC}/lib/jinterface/priv/OtpErlang.jar ${STAGEDIR}${APP_DIR}/priv
.include <bsd.port.mk>
|