1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-07 11:49:40 +00:00

graphics/mesa-gallium-vdpau: Remove X11 option

VDPAU state tracker cannot be compiled without X11 support

PR:		276467
Sponsored by:	Beckhoff Automation GmbH & Co. KG
This commit is contained in:
Emmanuel Vadot 2024-08-23 18:10:03 +02:00
parent ad32ab475b
commit b2ce4d0f8b

View File

@ -14,13 +14,9 @@ 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 <bsd.port.options.mk>
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
@ -46,20 +42,11 @@ MESON_ARGS+= -Dgallium-drivers="r600,radeonsi" \
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 <bsd.port.post.mk>