--- /usr/portage/media-libs/mesa/mesa-19.1.0.ebuild 2019-06-11 23:09:40.252582829 +0200 +++ /usr/portage/media-libs/mesa/mesa-19.1.0.ebuild 2019-06-11 23:15:21.749277588 +0200 @@ -38,7 +38,7 @@ IUSE="${IUSE_VIDEO_CARDS} +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 +libglvnd +llvm lm_sensors opencl osmesa pax_kernel pic selinux test unwind vaapi valgrind - vdpau vulkan vulkan-overlay wayland xa xvmc" + vdpau vulkan vulkan-overlay wayland xa xvmc X" REQUIRED_USE=" d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) ) @@ -73,13 +73,15 @@ !app-eselect/eselect-mesa >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}] >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}] - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}] - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}] - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}] - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}] - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}] - >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}] - x11-libs/libXfixes:=[${MULTILIB_USEDEP}] + X? ( + >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}] + >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}] + >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}] + >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}] + >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}] + >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}] + x11-libs/libXfixes:=[${MULTILIB_USEDEP}] + ) libglvnd? ( media-libs/libglvnd[${MULTILIB_USEDEP}] !app-eselect/eselect-opengl @@ -218,8 +220,10 @@ sys-devel/gettext virtual/pkgconfig valgrind? ( dev-util/valgrind ) - x11-base/xorg-proto - x11-libs/libXrandr[${MULTILIB_USEDEP}] + X? ( + x11-base/xorg-proto + x11-libs/libXrandr[${MULTILIB_USEDEP}] + ) $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]") " @@ -232,7 +236,7 @@ usr/lib*/libglapi.so.0.0.0 usr/lib*/libGLESv1_CM.so.1.0.0 usr/lib*/libGLESv2.so.2.0.0 - usr/lib*/libGL.so.1.2.0 + X? ( usr/lib*/libGL.so.1.2.0 ) usr/lib*/libOSMesa.so.8.0.0 ) )" @@ -347,7 +351,7 @@ fi fi - emesonargs+=( -Dplatforms=x11,surfaceless$(use wayland && echo ",wayland")$(use gbm && echo ",drm") ) + emesonargs+=( -Dplatforms=surfaceless$(use X && echo ",x11")$(use wayland && echo ",wayland")$(use gbm && echo ",drm") ) if use gallium; then emesonargs+=( @@ -470,7 +474,7 @@ emesonargs+=( $(meson_use test build-tests) - -Dglx=dri + -Dglx=$(usex X dri disabled) -Dshared-glapi=true $(meson_use dri3) $(meson_use egl)