# $MidnightBSD: trunk/x11-drivers/xf86-video-intel/Makefile 23983 2018-08-28 12:50:57Z laffer1 $

PORTNAME=	xf86-video-intel
PORTVERSION=	2.99.917.20180512
CATEGORIES=	x11-drivers
MASTER_SITES=	http://cgit.freedesktop.org/xorg/${XORG_CAT}/${PORTNAME}/snapshot/
DISTNAME=	${PORTNAME}-${COMMIT_ID}

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Driver for Intel integrated graphics chipsets

LICENSE=	mit
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libxcb-util.so:x11/xcb-util \
		libdrm.so:graphics/libdrm

COMMIT_ID=	359477215092ac1b602ad1e2f17a28963d9224c2

ONLY_FOR_ARCHS=	amd64 i386
ONLY_FOR_ARCHS_REASON=	Intel integrated GPU only exists in Intel x86 processors/chipsets

USE_GL=		gl

USE_LDCONFIG=	yes
XORG_CAT=	driver
USE_XORG=	pciaccess pixman x11 xcb xext xrender xv xvmc

USES+=		cpe autoreconf
CPE_VENDOR=	x

OPTIONS_SINGLE=	ACCEL
OPTIONS_SINGLE_ACCEL=	SNA UXA
OPTIONS_DEFAULT=	UXA

ACCEL_DESC=	Default AccelMethod (if not specified in xorg.conf)
SNA_DESC=	SandyBridge's New Acceleration
UXA_DESC=	Unified Acceleration Architecture

CONFIGURE_ARGS+=	--disable-udev

SNA_CONFIGURE_ON=	--with-default-accel=sna
UXA_CONFIGURE_ON=	--with-default-accel=uxa

.include <bsd.port.mk>
