git: e3f56d3c663d - main - java/openjdk11: use LLVM 12 to build if the system compiler is LLVM 13 or newer

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 30 Aug 2022 23:02:16 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e3f56d3c663dd21857843e187524d601b7dca29b

commit e3f56d3c663dd21857843e187524d601b7dca29b
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-08-30 23:00:18 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-08-30 23:02:10 +0000

    java/openjdk11: use LLVM 12 to build if the system compiler is LLVM 13 or newer
    
    PR:     260319
    Reported by:    jonc@chen.org.nz
    Approved by:    java (maintainer timeout)
---
 java/openjdk11/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/java/openjdk11/Makefile b/java/openjdk11/Makefile
index 4ca7c9933447..d16225d9eeb2 100644
--- a/java/openjdk11/Makefile
+++ b/java/openjdk11/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	openjdk
 DISTVERSIONPREFIX=	jdk-
 DISTVERSION=	${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_PATCH_VERSION}+${JDK_BUILD_NUMBER}-${BSD_JDK_VERSION}
+PORTREVISION=	1
 CATEGORIES=	java devel
 PKGNAMESUFFIX?=	${JDK_MAJOR_VERSION}
 
@@ -141,7 +142,7 @@ CONFIGURE_ARGS+=	--with-extra-ldflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFA
 			--with-extra-cxxflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT}"
 .else
 MAKE_ENV+=	USE_CLANG=true
-.if ${COMPILER_VERSION} >= 130 && ${ARCH:Mpowerpc64*}
+.if ${COMPILER_VERSION} >= 130
 LLVM_VER=	12
 BUILD_DEPENDS+=	clang${LLVM_VER}:devel/llvm${LLVM_VER}
 CC=		${LOCALBASE}/bin/clang${LLVM_VER}