# Created by: Johannes Dieterich <jmd@FreeBSD.org>
# $FreeBSD: tags/RELEASE_12_0_0/graphics/drm-devel-kmod/Makefile 485044 2018-11-15 20:49:25Z zeising $

PORTNAME=	drm-devel-kmod
PORTVERSION=	4.16.g20181114
CATEGORIES=	graphics kld

MAINTAINER=	jmd@FreeBSD.org
COMMENT=	DRM modules for the linuxkpi-based KMS components (development version)

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

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

CONFLICTS_INSTALL=	drm-next-kmod drm-stable-kmod drm-legacy-kmod

OPTIONS_DEFINE=	DEBUG

USES=		kmod uidfix

USE_GITHUB=	yes
GH_ACCOUNT=	FreeBSDDesktop
GH_PROJECT=	kms-drm
GH_TAGNAME=	be98d92

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200067
IGNORE=		not supported on older CURRENT, no kernel support
.endif
.if ${OPSYS} != FreeBSD
IGNORE=		not supported on anything but FreeBSD (missing linuxkpi functionality)
.endif

.if ${ARCH} == "amd64"
PLIST_SUB=	AMD64=""
.else
PLIST_SUB=	AMD64="@comment "
.endif

.include <bsd.port.mk>
