diff --git a/x11-drivers/xlibre-xf86-video-amdgpu/Makefile b/x11-drivers/xlibre-xf86-video-amdgpu/Makefile index 844a93930f7f..3729b6a7b50e 100644 --- a/x11-drivers/xlibre-xf86-video-amdgpu/Makefile +++ b/x11-drivers/xlibre-xf86-video-amdgpu/Makefile @@ -1,31 +1,32 @@ PORTNAME= xlibre-xf86-video-amdgpu PORTVERSION= 25.0.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= x11-drivers MAINTAINER= xlibre@FreeBSD.org COMMENT= XLibre amdgpu display driver WWW= https://github.com/X11Libre/xf86-video-amdgpu/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING # No amdgpu kernel driver on non-x86 and PC98. ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64le ONLY_FOR_ARCHS_REASON= KMS is required and currently only available on x86/arm64/powerpc64le -LIB_DEPENDS= libdrm_amdgpu.so:graphics/libdrm +LIB_DEPENDS= libpciaccess.so:devel/libpciaccess \ + libdrm_amdgpu.so:graphics/libdrm USES= gl tar:xz xlibre-cat:driver USE_GL= gbm CONFIGURE_ARGS+=--disable-udev PLIST_FILES= ${MODULEDIR}/drivers/amdgpu_drv.so \ share/man/man4/amdgpu.4x.gz \ share/X11/xorg.conf.d/10-amdgpu.conf post-patch: ${REINPLACE_CMD} -e 's|--variable=video_drivers_dir`|--variable=moduledir`/drivers|g' ${WRKSRC}/configure.ac .include diff --git a/x11-drivers/xlibre-xf86-video-amdgpu/files/patch-configure.ac b/x11-drivers/xlibre-xf86-video-amdgpu/files/patch-configure.ac new file mode 100644 index 000000000000..2348d999fc0a --- /dev/null +++ b/x11-drivers/xlibre-xf86-video-amdgpu/files/patch-configure.ac @@ -0,0 +1,13 @@ +--- configure.ac.orig 2026-06-07 07:50:51 UTC ++++ configure.ac +@@ -67,6 +67,10 @@ PKG_CHECK_MODULES(GBM, [gbm]) + PKG_CHECK_MODULES(LIBDRM, [libdrm >= 2.4.121]) + PKG_CHECK_MODULES(LIBDRM_AMDGPU, [libdrm_amdgpu >= 2.4.121]) + PKG_CHECK_MODULES(GBM, [gbm]) ++PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.8.0], [LIBPCIACCESS=yes], [LIBPCIACCESS=no]) ++if test "x$LIBPCIACCESS" = xyes; then ++ AC_DEFINE(HAVE_PCI_DEVICE_IS_BOOT_DISPLAY, 1, [libpciaccess support]) ++fi + + # Obtain compiler/linker options for the driver dependencies + PKG_CHECK_MODULES(XORG, [xorg-server >= 25.0.0 xproto fontsproto xf86driproto randrproto renderproto xextproto >= 7.0.99.1 $REQUIRED_MODULES])