aboutsummaryrefslogtreecommitdiff
path: root/graphics/drm-kmod/Makefile
blob: 1b23b0ceae03e64e7788cd7cbd74869061afe6b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
PORTNAME=	drm-kmod
PORTVERSION=	20250428
CATEGORIES=	graphics

MAINTAINER=	x11@FreeBSD.org
COMMENT=	Direct Rendering Manager GPU drivers metaport
WWW=		https://github.com/freebsd/drm-kmod

USES=		metaport

RUN_DEPENDS=	gpu-firmware-kmod>=20220511:graphics/gpu-firmware-kmod

.include <bsd.port.options.mk>

.if ${OPSYS} != FreeBSD
IGNORE=		not supported on anything but FreeBSD (missing linuxkpi functionality)
.else
.  if ${OSVERSION} >= 1302000 && ${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} >= 1500031 && ${ARCH} == amd64
RUN_DEPENDS+=	${KMODDIR}/drm.ko:graphics/drm-66-kmod
_DRM_ARCHS=	amd64
.  elif ${OSVERSION} >= 1400508
RUN_DEPENDS+=	${KMODDIR}/drm.ko:graphics/drm-61-kmod
_DRM_ARCHS=	amd64 powerpc64 powerpc64le
.  else
_DRM_ARCHS=
.  endif
.  if ! ${_DRM_ARCHS:M${ARCH}}
IGNORE=		not supported for this configuration
.  endif
.endif

.include <bsd.port.mk>