Created attachment 187194 [details] mpv-wayland.patch This patch adds a WAYLAND option. Tested on the rootston compositor (https://github.com/swaywm/wlroots).
(In reply to Greg V from comment #0) You forgot to remove --disable-wayland from CONFIGURE_ARGS. Thanks for the patch!
Have you tried to enable Wayland backend? Add this line in mpv/Makefile WAYLAND_LIB_DEPENDS= libwayland-egl.so:graphics/mesa-libs Be sure that you have enabled Wayland support in graphics/mesa-libs
(In reply to Carlos J. Puga Medina from comment #2) Even without listing libwayland-egl.so in the makefile, it works on Wayland (rootston compositor running directly on KMS), with vo=opengl. vo=wayland is a shared memory based fallback for systems without OpenGL (like vo=x11) and it does not work on my machine. It's probably Linux specific.
A commit references this bug: Author: cpm Date: Sun Oct 15 16:00:45 UTC 2017 New revision: 452155 URL: https://svnweb.freebsd.org/changeset/ports/452155 Log: multimedia/mpv: Add WAYLAND option - Drop --disable-wayland from CONFIGURE_ARGS - Bump PORTREVISION PR: 223029 Submitted by: Greg V <greg@unrelenting.technology> Changes: head/multimedia/mpv/Makefile
Committed with minor changes, thanks!