diff --git a/graphics/mesa-gallium-vdpau/Makefile b/graphics/mesa-gallium-vdpau/Makefile index 8ad6ca75cfb5..eb4b6fd484c8 100644 --- a/graphics/mesa-gallium-vdpau/Makefile +++ b/graphics/mesa-gallium-vdpau/Makefile @@ -1,65 +1,52 @@ PORTNAME= mesa-gallium-vdpau PORTVERSION= ${MESAVERSION} CATEGORIES= graphics COMMENT= Mesa Gallium VDPAU drivers WWW= https://www.mesa3d.org/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/docs/license.rst ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le ONLY_FOR_ARCHS_REASON= used only by AMD/Radeon hardware BUILD_DEPENDS= libvdpau>=0:multimedia/libvdpau LIB_DEPENDS= libzstd.so:archivers/zstd -USES= llvm:lib,noexport +USES= llvm:lib,noexport xorg -OPTIONS_DEFINE= X11 -OPTIONS_DEFAULT= X11 -X11_DESC= Enable X11 support -X11_USES= xorg -X11_USE= xorg=xorgproto,x11,xcb,xdamage,xext,xfixes,xshmfence,xxf86vm,xrandr +USE_XORG= xorgproto x11 xcb xdamage xext xfixes xshmfence xxf86vm xrandr .include .include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common" MESON_ARGS+= -Dgallium-drivers="r600,radeonsi" \ -Dvulkan-drivers="" \ -Dandroid-libbacktrace=disabled \ -Dgallium-va=disabled \ -Dgallium-omx=disabled \ -Dgallium-xa=disabled \ -Dgallium-opencl=disabled \ -Dgallium-nine=false \ -Dgbm=disabled \ -Dgles1=disabled \ -Dgles2=disabled \ -Dglvnd=disabled \ -Dlmsensors=disabled \ -Dmicrosoft-clc=disabled \ -Dosmesa=false \ -Dvalgrind=disabled \ -Dglx=disabled \ -Ddri3=enabled LDFLAGS_i386= -Wl,-znotext -MESON_ARGS+= -Dgallium-vdpau=enabled +MESON_ARGS+= -Dplatforms="x11" \ + -Dgallium-vdpau=enabled .if ${ARCH} != amd64 MESON_ARGS+= -Dintel-rt=disabled # https://gitlab.freedesktop.org/mesa/mesa/-/issues/10629 .endif -.if ${PORT_OPTIONS:MX11} -MESON_ARGS+= -Dplatforms="x11" -.else -MESON_ARGS+= -Dglx=disabled \ - -Degl=disabled \ - -Dopengl=false \ - -Dshared-glapi=disabled \ - -Dplatforms="" -.endif - .include