/[gentoo-x86]/x11-drivers/xf86-video-intel/xf86-video-intel-2.21.15.ebuild
Gentoo

Contents of /x11-drivers/xf86-video-intel/xf86-video-intel-2.21.15.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Jan 26 18:03:06 2014 UTC (5 years, 11 months ago) by chithanh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +4 -2 lines
Fix building against xorg-server-1.15, bug #496682.

(Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-intel/xf86-video-intel-2.21.15.ebuild,v 1.4 2013/11/08 19:02:54 remi Exp $
4
5 EAPI=5
6
7 XORG_DRI=dri
8 inherit linux-info xorg-2
9
10 DESCRIPTION="X.Org driver for Intel cards"
11
12 KEYWORDS="amd64 x86 ~amd64-fbsd -x86-fbsd"
13 IUSE="glamor +sna +udev uxa xvmc"
14
15 REQUIRED_USE="|| ( glamor sna uxa )"
16
17 RDEPEND="x11-libs/libXext
18 x11-libs/libXfixes
19 >=x11-libs/pixman-0.27.1
20 >=x11-libs/libdrm-2.4.29[video_cards_intel]
21 glamor? (
22 x11-libs/glamor
23 )
24 sna? (
25 >=x11-base/xorg-server-1.10
26 )
27 udev? (
28 virtual/udev
29 )
30 xvmc? (
31 x11-libs/libXvMC
32 >=x11-libs/libxcb-1.5
33 x11-libs/xcb-util
34 )
35 "
36 DEPEND="${RDEPEND}
37 >=x11-proto/dri2proto-2.6
38 x11-proto/resourceproto"
39
40 src_prepare() {
41 # wrong variable name, fix configure directly to avoid autoreconf
42 # see bug #490342
43 sed -e "s/DRI_CFLAGS/DRI1_CFLAGS/g" -i configure
44 # see bug #496682
45 epatch "${FILESDIR}/${PN}-2.21.15-handle-updates-to-DamageUnregister-API.patch"
46 xorg-2_src_prepare
47 }
48
49 src_configure() {
50 XORG_CONFIGURE_OPTIONS=(
51 $(use_enable dri)
52 $(use_enable glamor)
53 $(use_enable sna)
54 $(use_enable uxa)
55 $(use_enable udev)
56 $(use_enable xvmc)
57 )
58 xorg-2_src_configure
59 }
60
61 pkg_postinst() {
62 if linux_config_exists \
63 && ! linux_chkconfig_present DRM_I915_KMS; then
64 echo
65 ewarn "This driver requires KMS support in your kernel"
66 ewarn " Device Drivers --->"
67 ewarn " Graphics support --->"
68 ewarn " Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->"
69 ewarn " <*> Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver) --->"
70 ewarn " i915 driver"
71 ewarn " [*] Enable modesetting on intel by default"
72 echo
73 fi
74 }

  ViewVC Help
Powered by ViewVC 1.1.20