This is a patch that allows prism launcher to work with Minecraft
26.x versions on OpenBSD. Starting with 26.2, Minecraft uses new
LWJGL3 modules. So this changes the list added to the classpath
to include those. Older versions don't care about the extra modules
in the classpath.

Drops the MESSAGE since it requires the new 3.4.x LWJGL3 I've
committed to ports, so the MESSAGE is obsolete.

cc MAINTAINER

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/prismlauncher/Makefile,v
diff -u -p -r1.3 Makefile
--- Makefile    11 Oct 2026 04:12:37 -0000      1.3
+++ Makefile    4 Nov 2026 19:57:22 -0000
@@ -5,7 +5,7 @@ DISTNAME =              PrismLauncher-${V}
 PKGNAME =              ${DISTNAME:L}
 CATEGORIES =           games
 HOMEPAGE =             https://prismlauncher.org/
-REVISION =             0
+REVISION =             1
 
 MAINTAINER =           Daniil Ryvkin <[email protected]>
 
@@ -36,7 +36,7 @@ LIB_DEPENDS =         archivers/libarchive \
                        x11/qt6/qtnetworkauth
 
 RUN_DEPENDS =          java/javaPathHelper \
-                       games/lwjgl3 \
+                       games/lwjgl3 >= 3.4.1.0 \
                        games/lwjgl
 
 CONFIGURE_ARGS =       -DLauncher_BUILD_PLATFORM=openbsd \
Index: patches/patch-launcher_launch_steps_PatchLWJGL_cpp
===================================================================
RCS file: 
/cvs/ports/games/prismlauncher/patches/patch-launcher_launch_steps_PatchLWJGL_cpp,v
diff -u -p -r1.3 patch-launcher_launch_steps_PatchLWJGL_cpp
--- patches/patch-launcher_launch_steps_PatchLWJGL_cpp  3 Nov 2026 15:41:52 
-0000       1.3
+++ patches/patch-launcher_launch_steps_PatchLWJGL_cpp  4 Nov 2026 19:57:22 
-0000
@@ -1,7 +1,9 @@
+Patch in needed LWJGL libraries on OpenBSD
+
 Index: launcher/launch/steps/PatchLWJGL.cpp
 --- launcher/launch/steps/PatchLWJGL.cpp.orig
 +++ launcher/launch/steps/PatchLWJGL.cpp
-@@ -0,0 +1,119 @@
+@@ -0,0 +1,138 @@
 +#include "PatchLWJGL.h"
 +#include <QSaveFile>
 +#include <launch/LaunchTask.h>
@@ -39,9 +41,28 @@ Index: launcher/launch/steps/PatchLWJGL.
 +        if (isLwjgl3) {
 +            qDebug() << "Instance uses LWJGL 3, applying appropriate 
patches.";
 +
-+            QList<QString> libs = { "lwjgl-glfw", "lwjgl-openal", 
"lwjgl-opengl", "lwjgl-stb", "lwjgl-tinyfd", "lwjgl" };
-+
-+            QList<QString> nativeLibs = { "lwjgl-opengl", "lwjgl-stb", 
"lwjgl-tinyfd", "lwjgl" };
++            QList<QString> libs = {   "lwjgl-freetype",
++                                      "lwjgl-glfw",
++                                      "lwjgl-openal",
++                                      "lwjgl-opengl",
++                                      "lwjgl-sdl",
++                                      "lwjgl-shaderc",
++                                      "lwjgl-spvc",
++                                      "lwjgl-stb",
++                                      "lwjgl-tinyfd",
++                                      "lwjgl-vma",
++                                      "lwjgl-vulkan",
++                                      "lwjgl" };
++
++            QList<QString> nativeLibs = {     "lwjgl-freetype",
++                                              "lwjgl-glfw",
++                                              "lwjgl-opengl",
++                                              "lwjgl-shaderc",
++                                              "lwjgl-spvc",
++                                              "lwjgl-stb",
++                                              "lwjgl-tinyfd",
++                                              "lwjgl-vma",
++                                              "lwjgl" };
 +
 +            for (auto& libName : libs) {
 +                LibraryPtr lib(new Library());
Index: pkg/MESSAGE
===================================================================
RCS file: pkg/MESSAGE
diff -N pkg/MESSAGE
--- pkg/MESSAGE 13 Sep 2026 18:12:33 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,3 +0,0 @@
-Due to limitations of the system LWJGL library (games/lwjgl3 3.3.3.1),
-only Minecraft 1.21.11 and earlier is supported. Newer versions require
-LWJGL 3.4.x which is not yet available in ports.

Reply via email to