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

(cherry picked from commit 58566c547f)
This commit is contained in:
Vladimir Druzenko 2024-10-31 01:38:59 +03:00
parent be7b9fb1b7
commit adc026b8ee
1 changed files with 2 additions and 1 deletions

View File

@ -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+