summaryrefslogtreecommitdiff
path: root/x11-drivers/xf86-video-intel/Makefile
blob: 818655c4467049a9366cf2474f898de8dce8c08c (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PORTNAME=	xf86-video-intel
DISTVERSION=	2.99.917-923
DISTVERSIONSUFFIX=	-g${GL_TAGNAME:C/(.{12}).*/\1/}
PORTEPOCH=	1
CATEGORIES=	x11-drivers

MAINTAINER=	x11@FreeBSD.org
COMMENT=	X.Org legacy driver for Intel integrated graphics chipsets
WWW=		https://01.org/linuxgraphics/

LICENSE=	MIT	# various
LICENSE_FILE=	${WRKSRC}/COPYING

ONLY_FOR_ARCHS=	amd64 i386
ONLY_FOR_ARCHS_REASON=	only Intel integrated GPUs on x86 are supported

LIB_DEPENDS=	libdrm_intel.so:graphics/libdrm

USES=		cpe localbase xorg xorg-cat:driver
CPE_VENDOR=	x
USE_GITLAB=	yes
GL_TAGNAME=	b74b67f0f321875492968f7097b9d6e82a66d7df
USE_XORG=	pciaccess pixman
CONFIGURE_ENV=	ac_cv_header_sys_sysinfo_h=no # XXX ports/242236
CONFIGURE_ARGS=	--with-builderstring="${DISTVERSIONFULL}"
TEST_TARGET=	check

# XXX bug 214593: SNA crashes on pre-SandyBridge hardware
CONFIGURE_ARGS+=--with-default-accel=uxa

OPTIONS_DEFINE=	UDEV XVMC
OPTIONS_DEFAULT=UDEV XVMC
OPTIONS_SUB=	yes

UDEV_DESC=		udev-based monitor hotplug detection
UDEV_LIB_DEPENDS=	libudev.so:devel/libudev-devd
UDEV_CONFIGURE_ENABLE=	udev

XVMC_LIB_DEPENDS=	libxcb-util.so:x11/xcb-util
XVMC_USE=		XORG=x11,xcb,xvmc
XVMC_CONFIGURE_ENABLE=	xvmc
XVMC_VARS=		USE_LDCONFIG=yes

post-patch:
.if ${CONFIGURE_ARGS:M--with-default-accel=uxa}
	@${REINPLACE_CMD} '/^Default/s/SNA/UXA/' ${WRKSRC}/man/intel.man
.endif

.include <bsd.port.mk>