$ make clean all WITHOUT=PLATFORM_X11 -C/usr/ports/graphics/mesa-libs
meson.build:342:4: ERROR: Problem encountered: Cannot build GLX support without X11 platform support and at least one OpenGL API
Yes I'm aware of this issue.
I also haven't found a way to have libGL compile while GLX is disabled.
> I also haven't found a way to have libGL compile while GLX is disabled.
libGL to some degree *is* GLX.
With glvnd, you have libOpenGL for non-GLX usage. But most software expects libGL still.
A commit references this bug:
Date: Thu Sep 17 09:22:30 UTC 2020
New revision: 548829
mesa*: Only add x11 dependancy if it's requested
This allow to have a full setup without any x11 deps.
Reviewed by: zeising
Approved by: x11 (zeising@)
Differential Revision: https://reviews.freebsd.org/D26438