diff --git i/graphics/mesa-dri/Makefile w/graphics/mesa-dri/Makefile index d1802909ac09..b424f9b735e9 100644 --- i/graphics/mesa-dri/Makefile +++ w/graphics/mesa-dri/Makefile @@ -10,7 +10,7 @@ COMMENT= OpenGL hardware acceleration drivers for DRI2+ USE_XORG= dri2proto dri3proto glproto presentproto x11 xdamage xext \ xfixes xshmfence xv xvmc -OPTIONS_DEFINE= TEXTURE VAAPI VDPAU +OPTIONS_DEFINE= TEXTURE VAAPI VDPAU WAYLAND OPTIONS_DEFAULT=TEXTURE OPTIONS_SUB= yes @@ -24,6 +24,8 @@ VAAPI_USE= XORG=xcb VDPAU_CONFIGURE_ENABLE= vdpau VDPAU_LIB_DEPENDS= libvdpau.so:multimedia/libvdpau +WAYLAND_DESC= Enable support for the Wayland platform in Vulkan drivers + .include .include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common" @@ -69,6 +71,11 @@ USE_BINUTILS= yes LDFLAGS+= -B${LOCALBASE}/bin .endif +# enables VK_KHR_wayland_surface in Vulkan drivers +.if ${PORT_OPTIONS:MWAYLAND} +CONFIGURE_ARGS+= --with-platforms=x11,drm,wayland +.endif + CONFIGURE_ARGS+= --with-dri-drivers="${DRI_DRIVERS:tl}" \ --with-gallium-drivers="${GALLIUM_DRIVERS:tl}" \ --with-vulkan-drivers="${VULKAN_DRIVERS:tl}"