So I'm suggesting to useSame applies btw for the Nvidia driver package. At least there is the workaround to grab from Nvidia download page and compile manually.
DEFAULT_VERSIONS
framework (would be the compination of Mk/bsd.default-versions.mk and Mk/Uses/xorg.mk here).I imagine that
DEFAULT_VERSIONS+= xorg
to choose xorg (default) and DEFAULT_VERSIONS+= xlibre
to switch to xlibre, switching actual *_DEPENDS
in Mk/Uses/xorg.mk.Mk/Uses/xorg.mk has a list named XORG_MODULES. Not tried, but splitting it into 2 parts, one (in current name) for anything XLibre does NOT provides alternatives, and another (i.e., XORG_MODULES_DEFAULT) containing anything replaced when xlibre is chosen. And add a new list (i.e., XORG_MODULES_XLIBRE) to contain alternatives provided by XLibre.
*.pc files would be need something alike, too.