git: 436f58ed00f5 - main - java/jikes: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 25 Jun 2023 18:10:00 UTC
The branch main has been updated by bofh:

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

commit 436f58ed00f575b04f793311477da4ae015edc94
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-25 12:01:28 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-25 18:09:47 +0000

    java/jikes: Fix build with llvm16
    
    - Pet portclippy
    
    Sponsored by:   The FreeBSD Foundation
---
 java/jikes/Makefile | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/java/jikes/Makefile b/java/jikes/Makefile
index 8d4db54cf8be..54e4adc31869 100644
--- a/java/jikes/Makefile
+++ b/java/jikes/Makefile
@@ -8,13 +8,18 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Java source to byte-code compiler made available by IBM
 WWW=		http://jikes.sf.net/
 
-PLIST_SUB=	PORTVERSION=${PORTVERSION}
+USES=		autoreconf gmake iconv localbase tar:bzip2
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	ac_cv_search_iconv=${ICONV_LIB} \
 		ac_cv_search_libiconv_open=no
-USES=		autoreconf iconv gmake tar:bzip2
 
-CPPFLAGS+=	-I${LOCALBASE}/include
-LIBS+=		-L${LOCALBASE}/lib
+PLIST_SUB=	PORTVERSION=${PORTVERSION}
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CPPFLAGS+=  -Dregister=
+.endif
 
 .include <bsd.port.mk>