1 ################################################################################
3 # xdriver_xf86-video-intel
5 ################################################################################
7 XDRIVER_XF86_VIDEO_INTEL_VERSION
= 9ac7a3370ab265d4cbdbbf3dc588af88c37048e1
8 XDRIVER_XF86_VIDEO_INTEL_SITE
= git
://anongit.freedesktop.org
/xorg
/driver
/xf86-video-intel
9 XDRIVER_XF86_VIDEO_INTEL_LICENSE
= MIT
10 XDRIVER_XF86_VIDEO_INTEL_LICENSE_FILES
= COPYING
11 XDRIVER_XF86_VIDEO_INTEL_AUTORECONF
= YES
13 # -D_GNU_SOURCE fixes a getline-related compile error in src/sna/kgem.c
14 # We force -O2 regardless of the optimization level chosen by the user,
15 # as compiling this package is known to be broken with -Os.
16 XDRIVER_XF86_VIDEO_INTEL_CONF_ENV
= \
17 CFLAGS
="$(TARGET_CFLAGS) -D_GNU_SOURCE -O2"
19 XDRIVER_XF86_VIDEO_INTEL_CONF_OPTS
= \
27 XDRIVER_XF86_VIDEO_INTEL_DEPENDENCIES
= \
35 # X.org server support for DRI depends on a Mesa3D DRI driver
36 ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER
),y
)
37 XDRIVER_XF86_VIDEO_INTEL_CONF_OPTS
+= --enable-dri
--enable-dri1
38 # quote from configure.ac: "UXA doesn't build without DRI2 headers"
39 ifeq ($(BR2_PACKAGE_XPROTO_DRI2PROTO
),y
)
40 XDRIVER_XF86_VIDEO_INTEL_CONF_OPTS
+= --enable-dri2
--enable-uxa
42 XDRIVER_XF86_VIDEO_INTEL_CONF_OPTS
+= --disable-dri2
--disable-uxa
44 ifeq ($(BR2_PACKAGE_XPROTO_DRI3PROTO
),y
)
45 XDRIVER_XF86_VIDEO_INTEL_CONF_OPTS
+= --enable-dri3
47 XDRIVER_XF86_VIDEO_INTEL_CONF_OPTS
+= --disable-dri3
50 XDRIVER_XF86_VIDEO_INTEL_CONF_OPTS
+= --disable-dri
53 $(eval
$(autotools-package
))