git: 9d92e4bc7039 - main - games/lwjgl: set USE_JAVA=8, doesn't build with newer versions of Java

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Fri, 31 May 2024 10:38:11 UTC
The branch main has been updated by vvd:

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

commit 9d92e4bc7039624c251cd32e0e96f0cf84309585
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-05-31 10:31:31 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-05-31 10:37:43 +0000

    games/lwjgl: set USE_JAVA=8, doesn't build with newer versions of Java
    
    While here:
    - fix dependencies - added x11 and xext;
    - pet portclippy.
    
    PR:             251774
    Approved by:    freebsd@skinc.ru (maintainer, timeout > 1 month)
---
 games/lwjgl/Makefile | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/games/lwjgl/Makefile b/games/lwjgl/Makefile
index 0ca10c803db1..e3b1879e6136 100644
--- a/games/lwjgl/Makefile
+++ b/games/lwjgl/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	lwjgl
 DISTVERSION=	2.9.4.20161208
+PORTREVISION=	1
 CATEGORIES=	games java
 
 MAINTAINER=	freebsd@skinc.ru
@@ -15,24 +16,25 @@ BUILD_DEPENDS=	${JAVAJARDIR}/jutils/jutils.jar:games/jutils \
 RUN_DEPENDS:=	${BUILD_DEPENDS}
 
 USES=		dos2unix xorg
+DOS2UNIX_REGEX=	.*.[^jp][^an][^rg]$
+USE_ANT=	yes
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	LWJGL
 GH_TAGNAME=	2df01dd
 
-DOS2UNIX_REGEX=	.*.[^jp][^an][^rg]$
-USE_JAVA=	yes
+USE_JAVA=	8
 USE_LDCONFIG=	yes
-USE_ANT=	yes
-USE_XORG=	xcursor xrandr xxf86vm
+USE_XORG=	x11 xcursor xext xrandr xxf86vm
 MAKE_ENV+=	CLASSPATH=${JAVAJARDIR}/jutils/jutils.jar:${JAVAJARDIR}/jinput/jinput.jar:${WRKSRC}/${DISTNAME}/jar/
 ALL_TARGET=	jars compile_native
 
+PLIST_DIRS=	${JAVAJARDIR}/${PORTNAME} \
+		lib/${PORTNAME}
 PLIST_FILES=	${JAVAJARDIR}/${PORTNAME}/${PORTNAME}.jar \
 		${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_test.jar \
 		${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_util.jar \
 		${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_util_applet.jar
-PLIST_DIRS=	${JAVAJARDIR}/${PORTNAME} \
-		lib/${PORTNAME}
 
 .include <bsd.port.pre.mk>