GLX support requires Mesa, so instead of enabling it everywhere and forcing people who can't use mesa to work around it, lets not enable it by default and machines that use mesa-dri can enable it.
Something like PACKAGECONFIG_append_pn-xserver-xorg = "glx" should do the job.
This would make the X server machine specific though...
Actually this is likely too invasive to be worth it.