diff --git a/graphics/mesa-dri/Makefile b/graphics/mesa-dri/Makefile --- a/graphics/mesa-dri/Makefile +++ b/graphics/mesa-dri/Makefile @@ -56,6 +56,8 @@ .if ${PORT_OPTIONS:MX11} MESA_PLATFORMS+= x11 USE_XORG+= xcb xorgproto xrandr x11 xdamage xext xfixes xshmfence xv +.else +MESON_ARGS+= -Dxlib-lease=disabled .endif .if ${PORT_OPTIONS:MWAYLAND} diff --git a/graphics/mesa-libs/Makefile b/graphics/mesa-libs/Makefile --- a/graphics/mesa-libs/Makefile +++ b/graphics/mesa-libs/Makefile @@ -57,7 +57,7 @@ xfixes xshmfence xxf86vm xrandr PLIST_SUB+= GLX="" .else -MESON_ARGS+= -Dglx=disabled +MESON_ARGS+= -Dglx=disabled -Dxlib-lease=disabled PLIST_SUB+= GLX="@comment " .endif