Skip to content

Commit

Permalink
x11-toolkits/wlroots: expose x11/nvidia-driver support
Browse files Browse the repository at this point in the history
Allow debugging EGLStreams itself on FreeBSD. Like CONSOLEKIT this relies
on a rejected patch, so may break on updates or be eventually removed.

See also NVIDIA option in x11-servers/xwayland-devel
  • Loading branch information
jbeich committed Apr 10, 2021
1 parent f5d0c53 commit f406592
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 8 additions & 1 deletion x11-toolkits/wlroots/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ USE_LDCONFIG= yes
GH_ACCOUNT= swaywm
MESON_ARGS= -Dexamples=false

OPTIONS_DEFINE= CONSOLEKIT LIBSEAT UUID X11
OPTIONS_DEFINE= CONSOLEKIT LIBSEAT NVIDIA UUID X11
OPTIONS_DEFAULT=LIBSEAT UUID X11
OPTIONS_SUB= yes

Expand All @@ -49,6 +49,13 @@ LIBSEAT_DESC= DRM sessions with/without root via libseat
LIBSEAT_LIB_DEPENDS= libseat.so:sysutils/seatd
LIBSEAT_MESON_ENABLED= libseat

NVIDIA_DESC= EGLStreams support for DRM backend (experimental)
NVIDIA_PATCH_SITES= https://github.com/danvd/${GH_PROJECT}-eglstreams/commit/:nvidia
NVIDIA_PATCHFILES= eba4b66f92ca.patch:-p1:nvidia # https://github.com/swaywm/wlroots/pull/2769
.if make(makesum)
.MAKEFLAGS: WITH+=NVIDIA
.endif

# uuid_create() is random on NetBSD and OpenBSD but not DragonFly and FreeBSD
# See also https://github.com/netbsd/src/commit/8651e9a438af
UUID_DESC= Exported surfaces to use random UUIDs via libuuid
Expand Down
2 changes: 2 additions & 0 deletions x11-toolkits/wlroots/distinfo
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ SHA256 (e1b5323f56c3.patch) = 13145323caf9e56412ee3766fb9eacca9c6e4ca7088a320e79
SIZE (e1b5323f56c3.patch) = 4028
SHA256 (fb837ae10b1f.patch) = ecf07d813ae796eca946e909a35434a93b07fc349d6ca8b48d7834cb2dfb4071
SIZE (fb837ae10b1f.patch) = 27075
SHA256 (eba4b66f92ca.patch) = a271c30c414fb2ae2cb6e0cbca77c37c1e15a3b160097f6e78298bfcec8df352
SIZE (eba4b66f92ca.patch) = 96009
1 change: 1 addition & 0 deletions x11-toolkits/wlroots/pkg-message
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Known issues:
- On FreeBSD 11.* kernel needs to be rebuilt with EVDEV_SUPPORT
- On FreeBSD 11.* drm-kmod needs https://github.com/FreeBSDDesktop/kms-drm/pull/213
- NVIDIA may be affected by https://github.com/aritger/eglstreams-kms-example/issues/7

When built with LIBSEAT enabled you may see the following:

Expand Down

0 comments on commit f406592

Please sign in to comment.