aboutsummaryrefslogtreecommitdiff
path: root/x11-drivers/xf86-video-intel/Makefile
blob: 708df7ff0999ed84aca0479443902c0bc953b455 (plain) (blame)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Created by: lesi@FreeBSD.org
# $FreeBSD$

PORTNAME=	xf86-video-intel
PORTVERSION=	${INTEL_VERSION}
PORTREVISION=	${INTEL_REVISION}
CATEGORIES=	x11-drivers

MAINTAINER=	x11@FreeBSD.org
COMMENT=	Driver for Intel integrated graphics chipsets

ONLY_FOR_ARCHS=	amd64 i386
USE_GL=		gl

USE_LDCONFIG=	yes
XORG_CAT=	driver
USE_XORG=	glproto \
		pixman \
		x11 \
		xext \
		xf86driproto \
		xineramaproto \
		xrender \
		xvmc

.include <bsd.port.options.mk>

.if defined(WITH_NEW_XORG)
INTEL_VERSION=	2.21.15
INTEL_REVISION=	1
CONFIGURE_ENV+=	xorg_cv_cc_flag__Wno_maybe_uninitialized=no
CONFIGURE_ARGS+=	--enable-sna
MAKE_JOBS_UNSAFE=yes
PLIST_SUB+=	OLD="@comment "
EXTRA_PATCHES+=	${PATCHDIR}/extra-src__sna__sna_threads.c \
		${PATCHDIR}/extra-src_sna_kgem.c \
		${PATCHDIR}/extra-clang \
		${PATCHDIR}/extra-i915kms
LIB_DEPENDS+=	libxcb-util.so:${PORTSDIR}/x11/xcb-util
.else
INTEL_VERSION=	2.7.1
INTEL_REVISION=	6
PLIST_SUB+=	OLD=""

EXTRA_PATCHES+=	${PATCHDIR}/extra-src_ch7017_ch7017.c \
		${PATCHDIR}/extra-src_i830_render.c \
		${PATCHDIR}/extra-src_ch7xxx_ch7xxx.c \
		${PATCHDIR}/extra-src_i830_video.c \
		${PATCHDIR}/extra-src_i810_driver.c \
		${PATCHDIR}/extra-src_i915_hwmc.c \
		${PATCHDIR}/extra-src_i810_hwmc.c \
		${PATCHDIR}/extra-src_i915_render.c \
		${PATCHDIR}/extra-src_i810_video.c \
		${PATCHDIR}/extra-src_i965_render.c \
		${PATCHDIR}/extra-src_i830_dri.c \
		${PATCHDIR}/extra-src_ivch_ivch.c \
		${PATCHDIR}/extra-src_i830_driver.c \
		${PATCHDIR}/extra-src_sil164_sil164.c \
		${PATCHDIR}/extra-src_i830_dvo.c \
		${PATCHDIR}/extra-src_tfp410_tfp410.c \
		${PATCHDIR}/extra-src_i830_i2c.c \
		${PATCHDIR}/extra-uxa_uxa-priv.h
.endif

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libIntelXvMC.so.1
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libI810XvMC.so.1
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/xorg/modules/drivers/intel_drv.so

.include <bsd.port.mk>