git: 58566c547fc5 - main - java/eclipse: Fix build: ld: error: unable to find library -lGLU

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Wed, 30 Oct 2024 22:40:46 UTC
The branch main has been updated by vvd:

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

commit 58566c547fc5d0c69277fc5b1049697a644c0b36
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-10-30 22:38:59 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-10-30 22:38:59 +0000

    java/eclipse: Fix build: ld: error: unable to find library -lGLU
    
    [INFO]      [exec] cc -shared -fPIC  -L`pkg-config --variable=prefix gtk+-3.0`/lib -s -o libswt-glx-gtk-4966r5.so swt.o glx.o glx_structs.o glx_stats.o -lGL -lGLU -lm
    [INFO]      [exec] gmake[1]: Leaving directory '/wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-R4_33_maintenance/eclipse.platform.swt/binaries/org.eclipse.swt.gtk.freebsd.x86_64/target/natives-build-temp'
    [INFO]      [exec] *** GTK3 Build failed, aborting further actions..
    [INFO]      [exec] ld: error: unable to find library -lGLU
    [INFO]      [exec] cc: error: linker command failed with exit code 1 (use -v to see invocation)
    [INFO]      [exec] gmake[1]: *** [make_unix.mak:245: libswt-glx-gtk-4966r5.so] Error 1
    
    PR:             282382
    Approved by:    Norbert Grundmann <ngrundmann@gmx.de> (maintainer)
    MFH:            2024Q4
---
 java/eclipse/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/java/eclipse/Makefile b/java/eclipse/Makefile
index e32d6b0ec432..93154d88e3b7 100644
--- a/java/eclipse/Makefile
+++ b/java/eclipse/Makefile
@@ -20,7 +20,7 @@ BUILD_DEPENDS=	git:devel/git \
 LIB_DEPENDS=	libsecret-1.so:security/libsecret \
 		libwebkit2gtk-4.0.so:www/webkit2-gtk3
 
-USES=		compiler:c++17-lang gmake pkgconfig gnome
+USES=		compiler:c++17-lang gl gmake pkgconfig gnome
 
 # The github repositories.  The repository under NorbertXYZ is for a predefined maven
 # download, so the build does not need to download while do-build is running
@@ -39,6 +39,7 @@ GH_TUPLE=	chirontt:eclipse.platform.releng.aggregator:${ECLIPSE_TAG}_maintenance
 		chirontt:equinox.binaries:${ECLIPSE_TAG}_maintenance:l/equinox.binaries \
 		chirontt:p2:${ECLIPSE_TAG}_maintenance:m/equinox.p2 \
 		NorbertXYZ:eclipse_maven:${DISTVERSION}:n
+USE_GL=		gl glu
 USE_GNOME=	gtk30
 USE_JAVA=	17+