blob: 96a895329baf9052569f7d68226ff6f605c44ecf (
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
|
PORTNAME= drm-kmod
PORTVERSION= 20260508
CATEGORIES= graphics
MAINTAINER= x11@FreeBSD.org
COMMENT= Direct Rendering Manager (DRM) 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} >= 1500509 && ${ARCH} == amd64
RUN_DEPENDS+= ${KMODDIR}/drm.ko:graphics/drm-612-kmod
_DRM_ARCHS= amd64
. elif ${OSVERSION} >= 1500031 && ${ARCH} == amd64
RUN_DEPENDS+= ${KMODDIR}/drm.ko:graphics/drm-66-kmod
_DRM_ARCHS= amd64
. else
RUN_DEPENDS+= ${KMODDIR}/drm.ko:graphics/drm-61-kmod
_DRM_ARCHS= amd64 powerpc64 powerpc64le
. endif
. if ! ${_DRM_ARCHS:M${ARCH}}
IGNORE= not supported for this configuration
. endif
.endif
.include <bsd.port.mk>
|