freebsd-ports/graphics/drm-fbsd12.0-kmod/Makefile
Felix Palmen 569a270ee2 graphics/drm-fbsd12.0-kmod: Remove firmware dep
drm-*-kmod ports should not depend on firmware, so users are free to
only install the firmware packages they actually need. Pulling in all
firmwares should only happen in graphics/drm-kmod metaport.

PR:			266301
Approved by:		x11 (manu), tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D36526
2022-09-15 09:10:32 +02:00

57 lines
1.3 KiB
Makefile

PORTNAME= drm-fbsd12.0-kmod
PORTVERSION= 4.16.g20220126
PORTREVISION= 1
CATEGORIES= graphics
MAINTAINER= x11@FreeBSD.org
COMMENT= DRM modules for the linuxkpi-based KMS components
WWW= https://github.com/freebsd/drm-kmod
LICENSE= BSD2CLAUSE MIT GPLv2
LICENSE_COMB= multi
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64 and i386
OPTIONS_DEFINE= DEBUG
USES= kmod uidfix compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= freebsd
GH_PROJECT= drm-kmod
GH_TAGNAME= drm_v4.16-fbsd12
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300000
IGNORE= only supported on FreeBSD 12.
.endif
.if ${OPSYS} != FreeBSD
IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality)
.endif
.if ${ARCH} == "amd64"
PLIST_SUB+= AMDGPU=""
PLIST_SUB+= AMDKFD=""
PLIST_SUB+= I915=""
PLIST_SUB+= VMWGFX=""
.elif ${ARCH} == "i386"
PLIST_SUB+= AMDGPU="@comment "
PLIST_SUB+= AMDKFD="@comment "
PLIST_SUB+= I915=""
PLIST_SUB+= VMWGFX=""
.elif ${ARCH} == "powerpc64"
PLIST_SUB+= AMDGPU=""
PLIST_SUB+= AMDKFD="@comment "
PLIST_SUB+= I915="@comment "
PLIST_SUB+= VMWGFX="@comment "
.else
PLIST_SUB+= AMDGPU="@comment "
PLIST_SUB+= AMDKFD="@comment "
PLIST_SUB+= I915="@comment "
PLIST_SUB+= VMWGFX="@comment "
.endif
.include <bsd.port.mk>