git: 08758e46077e - main - x11-drivers/xlibre-xf86-video-qxl: Fix build

From: Jose Alonso Cardenas Marquez <acm_at_FreeBSD.org>
Date: Sun, 07 Jun 2026 08:06:40 UTC
The branch main has been updated by acm:

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

commit 08758e46077e418cb218e0fe2db463f32bfb561b
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2026-06-07 08:03:27 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2026-06-07 08:03:27 +0000

    x11-drivers/xlibre-xf86-video-qxl: Fix build
    
    With hat:       xlibre
---
 x11-drivers/xlibre-xf86-video-qxl/Makefile                |  2 +-
 .../xlibre-xf86-video-qxl/files/patch-configure.ac        | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/x11-drivers/xlibre-xf86-video-qxl/Makefile b/x11-drivers/xlibre-xf86-video-qxl/Makefile
index cc5715421f1c..a6690bbaf178 100644
--- a/x11-drivers/xlibre-xf86-video-qxl/Makefile
+++ b/x11-drivers/xlibre-xf86-video-qxl/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	xlibre-xf86-video-qxl
 DISTVERSION=	25.0.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	x11-drivers
 
 MAINTAINER=	xlibre@FreeBSD.org
diff --git a/x11-drivers/xlibre-xf86-video-qxl/files/patch-configure.ac b/x11-drivers/xlibre-xf86-video-qxl/files/patch-configure.ac
new file mode 100644
index 000000000000..59735067c1fb
--- /dev/null
+++ b/x11-drivers/xlibre-xf86-video-qxl/files/patch-configure.ac
@@ -0,0 +1,15 @@
+--- configure.ac.orig	2025-12-18 18:16:59 UTC
++++ configure.ac
+@@ -87,7 +87,11 @@ fi
+ 	DRM_MODE=no
+ fi
+ 
+-PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.10])
++PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.10.0], [LIBPCIACCESS=yes], [LIBPCIACCESS=no])
++if test "x$LIBPCIACCESS" = xyes; then
++	AC_DEFINE(HAVE_PCI_DEVICE_IS_BOOT_DISPLAY, 1, [libpciaccess support])
++	CFLAGS="-DHAVE_PCI_DEVICE_IS_BOOT_DISPLAY=1 $CFLAGS"
++fi
+ 
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$DRM_CFLAGS $CFLAGS"