mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
122533f37f
This fixes dma_map_sgtable on < 1400066 Sponsored by: Beckhoff Automation GmbH & Co. KG
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
PORTNAME= drm-510-kmod
|
|
PORTVERSION= 5.10.113
|
|
PORTREVISION= 8
|
|
CATEGORIES= graphics kld
|
|
|
|
MAINTAINER= x11@FreeBSD.org
|
|
COMMENT= DRM drivers modules
|
|
WWW= https://github.com/freebsd/drm-kmod/
|
|
|
|
LICENSE= BSD2CLAUSE MIT GPLv2
|
|
LICENSE_COMB= multi
|
|
|
|
ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le
|
|
ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64, i386, aarch64, and powerpc64
|
|
|
|
CONFLICTS_INSTALL= drm-devel-kmod drm-current-kmod drm-54-kmod
|
|
|
|
USES= kmod uidfix compiler:c++11-lang
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= freebsd
|
|
GH_PROJECT= drm-kmod
|
|
GH_TAGNAME= drm_v5.10.113_9
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1301000
|
|
IGNORE= not supported on older than 13.1, no kernel support
|
|
.endif
|
|
.if ${OPSYS} != FreeBSD
|
|
IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality)
|
|
.endif
|
|
|
|
.if ${ARCH} == "amd64"
|
|
PLIST_SUB+= AMDGPU=""
|
|
PLIST_SUB+= I915=""
|
|
.elif ${ARCH} == "i386"
|
|
PLIST_SUB+= AMDGPU="@comment "
|
|
PLIST_SUB+= I915=""
|
|
.elif ${ARCH} == "aarch64" || ${ARCH:Mpowerpc*}
|
|
PLIST_SUB+= AMDGPU=""
|
|
PLIST_SUB+= I915="@comment "
|
|
.else
|
|
PLIST_SUB+= AMDGPU="@comment "
|
|
PLIST_SUB+= I915="@comment "
|
|
.endif
|
|
|
|
MAKE_ENV+= MAKEOBJDIRPREFIX=${WRKSRC}/obj
|
|
|
|
pre-build:
|
|
${MKDIR} ${WRKSRC}/obj
|
|
(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} obj)
|
|
|
|
.include <bsd.port.mk>
|