Bug 298078 - emulators/pcsx2: add wayland support
Summary: emulators/pcsx2: add wayland support
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Ganael LAPLANCHE
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-08-31 16:40 UTC by Hywel Andrews
Modified: 2026-09-04 15:43 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (martymac)


Attachments
Patch to add wayland support to PCSX2 (3.02 KB, patch)
2026-08-31 16:40 UTC, Hywel Andrews
no flags Details | Diff
Add WAYLAND make configuration option (2.92 KB, patch)
2026-09-03 17:50 UTC, Hywel Andrews
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hywel Andrews 2026-08-31 16:40:45 UTC
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.
Comment 1 Ganael LAPLANCHE freebsd_committer freebsd_triage 2026-09-02 15:49:10 UTC
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.
Comment 2 Hywel Andrews 2026-09-03 17:50:16 UTC
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
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-09-04 10:40:16 UTC
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(-)
Comment 4 Ganael LAPLANCHE freebsd_committer freebsd_triage 2026-09-04 10:40:52 UTC
Committed,thanks!
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-09-04 15:42:21 UTC
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(-)
Comment 6 Ganael LAPLANCHE freebsd_committer freebsd_triage 2026-09-04 15:43:32 UTC
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.