Created attachment 274309 [details] Patch to add wayland support to PCSX2 PCSX2 is currently not built with support for wayland causing errors when attempting to create any initial surface used by any of the rendering engines on game load. This patch adds support for WAYLAND via the supplied cmake arg and adds kde:6:ecm as a dependency. Tested on wayland using sway with an Intel Tigerlake GPU. This patch also contains changes from a portfmt run on the Makefile.
Hello, thanks for your contribution. What about adding a WAYLAND option (using the dedicated 'WAYLAND' name, see: Mk/bsd.options.desc.mk) to avoid depending on KDE and keep the port 'light' by default ? Cheers, Ganael.
Created attachment 274386 [details] Add WAYLAND make configuration option Hello, I've moved WAYLAND support to an option per your suggestion, I hope in the future we can default this to ON; when more desktop users have migrated to wayland based compositors. thanks
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=438848076e963a069766a333ac5c1c80ff30c0b9 commit 438848076e963a069766a333ac5c1c80ff30c0b9 Author: Hywel Andrews <owlandrews@protonmail.com> AuthorDate: 2026-09-04 10:37:39 +0000 Commit: Ganael LAPLANCHE <martymac@FreeBSD.org> CommitDate: 2026-09-04 10:39:44 +0000 emulators/pcsx2: Add Wayland support - Add a WAYLAND option - Re-order a few things with portfmt PR: 298078 emulators/pcsx2/Makefile | 55 +++++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 26 deletions(-)
Committed,thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3826e8624f2ff17491f0b9ffc41298904fdd145d commit 3826e8624f2ff17491f0b9ffc41298904fdd145d Author: Hywel Andrews <owlandrews@protonmail.com> AuthorDate: 2026-09-04 15:37:11 +0000 Commit: Ganael LAPLANCHE <martymac@FreeBSD.org> CommitDate: 2026-09-04 15:37:11 +0000 emulators/pcsx2: Remove WAYLAND option Enable WAYLAND unconditionally as it does not need any additional dependency. PR: 298078 Reported by: arrowd emulators/pcsx2/Makefile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-)
Hello again, I've finally removed the option and enabled WAYLAND by default as it does not need any new runtime dependency (spotted by arrowd@). Sorry for the hassle... Have a nice week-end and thanks again for your contribution, Ganael.