Re: /usr/ports/lang/mono6.8 install error | checking for GL/gl.h... no | cairo's OpenGL surface backend feature could be enabled... no (gl.pc nor OpenGL headers not found)

From: Evgeniy Khramtsov via desktop <desktop_at_freebsd.org>
Date: Sat, 12 Jun 2021 23:00:26 UTC
Sorry, TL;DR the whole mail.

Your problem is likely related due to absence of libGL due to global
X11=off. gl.pc is libGL pkg-config file, and libGL requires X11 symbols
to build. You likely do not need OPENGL and XCB for a headless setup,
try to add the following to make.conf:

graphics_cairo_UNSET+= OPENGL XCB

Also see bug 256180:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256180

No idea if this mail will reach you (absence of AAAA RR for your MX),
though desktop mailing list should CC you this mail.