games/lwjgl3 require at least glfwGetPreeditCursorRectangle: https://github.com/LWJGL/lwjgl3/issues/421#issuecomment-2016861768
Tested run Minecraft 1.20.4 with native FreeBSD games/lwjgl3 and java/openjdk21.
Differential D44490
graphics/glfw: add patches to support running applications such as Minecraft with games/lwjgl3 vvd on Mar 24 2024, 5:10 PM. Authored by Tags Referenced Files
Subscribers None
Details games/lwjgl3 require at least glfwGetPreeditCursorRectangle: https://github.com/LWJGL/lwjgl3/issues/421#issuecomment-2016861768 Tested run Minecraft 1.20.4 with native FreeBSD games/lwjgl3 and java/openjdk21.
Diff Detail
Event TimelineComment Actions Hello, My first impression is that adding 14 upstream patches to a port based on a release is not good. My sugestion is to create a glfw-devel so we can use devel features in ports that needs it. Comment Actions But in this case, you will not be able to install both on the same host. Comment Actions
Can't get it, could you explain better or add an example? Comment Actions Ok, I follow it. You talking about having USES (Mk/Uses/) feature. Mk/Uses/makeself.mk that is used by port archivers/makeself to unpack itself. Let's explore all possibilities to have a release and devel port working at same time. Comment Actions Create USES=glfw with option devel: USES=glfw:devel. Myabe flavour can help. Comment Actions
flavors will have same problem as separated ports since they cannot be installed both in same system. Comment Actions Yes, but they co-exist in prebuilded pkg repos. Comment Actions Today on ports@ I have read something that might be applicable to this case:
i.e., default and devel flavor. ports needing devel depends on @devel the other ports on @default (release) Comment Actions Simple way to introduce specific devel features avoiding master/slave and flavors ports. Comment Actions It fails if EXAMPLES and PREEDIT both on (both are non-default). diff -ur graphics/glfw/Makefile.orig graphics/glfw/Makefile --- graphics/glfw/Makefile.orig +++ graphics/glfw/Makefile @@ -10,7 +10,7 @@ LICENSE= ZLIB LICENSE_FILE= ${WRKSRC}/LICENSE.md -USES= cmake:insource localbase zip +USES= cmake:insource localbase:ldflags zip USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS @@ -30,6 +30,7 @@ PLATFORM_DESC= Window creation platform PREEDIT_DESC= Add patches for run Minecraft (https://github.com/glfw/glfw/pull/2130) +EXAMPLES_BUILD_DEPENDS= fontconfig>0:x11-fonts/fontconfig EXAMPLES_CMAKE_BOOL= GLFW_BUILD_EXAMPLES GLFW_BUILD_TESTS # Patches to support running applications such as Minecraft with games/lwjgl3 |