blob: e1c3409f586308570678e931811374eaa0108c41 (
plain)
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
|
PORTNAME= rJava
DISTVERSION= 1.0-6
PORTREVISION= 3
CATEGORIES= devel java
DISTNAME= ${PORTNAME}_${DISTVERSION}
MAINTAINER= thierry@FreeBSD.org
COMMENT= R to Java interface
WWW= https://cran.r-project.org/package=rJava
LICENSE= LGPL21
LIB_DEPENDS= libicuuc.so:devel/icu \
libpcre2-8.so:devel/pcre2
USES= cran:compiles
USE_JAVA= yes
JRE_LIBS= ${JAVA_HOME}/jre/lib/${ARCH:S/powerpc64/ppc64/}/server # JDK8
#JRE_LIBS= ${JAVA_HOME}/jre/lib/server # JDK11
LDFLAGS= "-Wl,-rpath=${JRE_LIBS} "
MAKE_ENV= JAVA_HOME=${JAVA_HOME} \
JAVA=${JAVA} \
JAVAC=${JAVAC} \
JAVAH=${JAVAH} \
JAR=${JAR} \
LD_LIBRARY_PATH="${JRE_LIBS}" \
JAVA_LD_LIBRARY_PATH="${JRE_LIBS}" \
JAVA_LIBS="-Wl,-rpath=${JRE_LIBS} -L${JRE_LIBS} -ljvm -lpthread" \
JAVA_CPPFLAGS="-I${JAVA_HOME}/jre/../include -I${JAVA_HOME}/jre/../include/${OPSYS:tl}"
pre-configure:
# Just for debug purpose
${LOCALBASE}/bin/R CMD javareconf -e exit
.include <bsd.port.mk>
|