git: c5d5674f3764 - main - graphics/mesa-dri: Fix building when both r600 and radeonsi are off

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Thu, 18 Jun 2026 20:10:12 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c5d5674f3764cbc4d79eaae441f9c2fec1f404a6

commit c5d5674f3764cbc4d79eaae441f9c2fec1f404a6
Author:     Oleh Hushchenkov <o.hushchenkov@gmail.com>
AuthorDate: 2026-06-18 19:31:42 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-06-18 20:06:25 +0000

    graphics/mesa-dri: Fix building when both r600 and radeonsi are off
    
    PR:             296094
---
 graphics/mesa-dri/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/graphics/mesa-dri/Makefile b/graphics/mesa-dri/Makefile
index f12553b7541b..4a5f1eccead7 100644
--- a/graphics/mesa-dri/Makefile
+++ b/graphics/mesa-dri/Makefile
@@ -110,6 +110,10 @@ MESON_ARGS+=	-Dandroid-libbacktrace=disabled \
 		-Dmicrosoft-clc=disabled \
 		-Dvalgrind=disabled
 
+.if !${PORT_OPTIONS:Mr600} && !${PORT_OPTIONS:Mradeonsi}
+MESON_ARGS+=	-Dgallium-va=disabled
+.endif
+
 .if ${ARCH} != amd64
 MESON_ARGS+=	-Dintel-rt=disabled # https://gitlab.freedesktop.org/mesa/mesa/-/issues/10629
 .endif