git: cbc448b19118 - 2023Q4 - graphics/drm-kmod: Default to 5.15 for 14.0+

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Mon, 16 Oct 2023 14:28:51 UTC
The branch 2023Q4 has been updated by manu:

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

commit cbc448b19118c576951a61c35f99fe944a2600ff
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2023-10-16 14:26:56 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2023-10-16 14:28:45 +0000

    graphics/drm-kmod: Default to 5.15 for 14.0+
    
    Only for amd64 and powerpc, other arches are known to be broken in this version.
    
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    
    (cherry picked from commit b56921168ac7f5e1da4fdc1c0aea2b5b83e20f06)
---
 graphics/drm-kmod/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/graphics/drm-kmod/Makefile b/graphics/drm-kmod/Makefile
index ab6ef0f1bbcc..9914b483c6fb 100644
--- a/graphics/drm-kmod/Makefile
+++ b/graphics/drm-kmod/Makefile
@@ -19,9 +19,15 @@ IGNORE=		not supported on anything but FreeBSD (missing linuxkpi functionality)
 .  if ${OSVERSION} < 1300000
 RUN_DEPENDS+=	${KMODDIR}/drm.ko:graphics/drm-fbsd12.0-kmod
 _DRM_ARCHS=	amd64 i386
-.  elif ${OSVERSION} >= 1301000
+.  elif ${OSVERSION} >= 1301000 && ${OSVERSION} < 1400097
 RUN_DEPENDS+=	${KMODDIR}/drm.ko:graphics/drm-510-kmod
 _DRM_ARCHS=	aarch64 amd64 i386 powerpc64 powerpc64le
+.  elif ${OSVERSION} >= 1400097 && (${ARCH} == i386 || ${ARCH} == aarch64)
+RUN_DEPENDS+=	${KMODDIR}/drm.ko:graphics/drm-510-kmod
+_DRM_ARCHS=	aarch64 i386
+.  elif ${OSVERSION} >= 1400097
+RUN_DEPENDS+=	${KMODDIR}/drm.ko:graphics/drm-515-kmod
+_DRM_ARCHS=	amd64 powerpc64 powerpc64le
 .  else
 _DRM_ARCHS=
 .  endif