Re: git: 151865636188 - main - devel/R-cran-rJava: fix build on powerpc64*

From: Thierry Thomas <thierry_at_freebsd.org>
Date: Fri, 13 May 2022 20:21:56 UTC
Le ven. 13 mai 22 à 22:16:37 +0200, Piotr Kubaj <pkubaj@FreeBSD.org>
 écrivait :

> The branch main has been updated by pkubaj:
> 
> URL: https://cgit.FreeBSD.org/ports/commit/?id=151865636188a771719cc09ee2d5325ed2711027
> 
> commit 151865636188a771719cc09ee2d5325ed2711027
> Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
> AuthorDate: 2022-05-13 20:06:29 +0000
> Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
> CommitDate: 2022-05-13 20:06:29 +0000
> 
>     devel/R-cran-rJava: fix build on powerpc64*
>     
>     openjdk is installed into ppc64 / ppc64le subdirectory.
> ---
>  devel/R-cran-rJava/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/devel/R-cran-rJava/Makefile b/devel/R-cran-rJava/Makefile
> index 98ad21b3e188..d9e941c775eb 100644
> --- a/devel/R-cran-rJava/Makefile
> +++ b/devel/R-cran-rJava/Makefile
> @@ -16,7 +16,7 @@ LIB_DEPENDS=	libicuuc.so:devel/icu	\
>  USES=		cran:compiles
>  USE_JAVA=	yes
>  
> -JRE_LIBS=	${JAVA_HOME}/jre/lib/${ARCH}/server	# JDK8
> +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}	\

Thanks!

java@: could you please define this variable in Mk/bsd.java.mk and make
it available for ports?
-- 
Th. Thomas.