| 1 |
# Copyright 1999-2012 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.15.0-r1.ebuild,v 1.7 2012/07/04 22:13:45 remi Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
XORG_DRI=dri |
| 8 |
inherit linux-info xorg-2 |
| 9 |
|
| 10 |
DESCRIPTION="X.Org driver for Intel cards" |
| 11 |
|
| 12 |
KEYWORDS="amd64 ia64 x86 -x86-fbsd" |
| 13 |
IUSE="" |
| 14 |
|
| 15 |
RDEPEND="x11-libs/libXext |
| 16 |
x11-libs/libXfixes |
| 17 |
x11-libs/libXvMC |
| 18 |
>=x11-libs/libdrm-2.4.23[video_cards_intel] |
| 19 |
>=x11-libs/libxcb-1.5 |
| 20 |
x11-libs/xcb-util" |
| 21 |
DEPEND="${RDEPEND}" |
| 22 |
|
| 23 |
PATCHES=( "${FILESDIR}/xf86-video-intel-2.15-batch-overrun.patch" |
| 24 |
"${FILESDIR}/xf86-video-intel-2.15-unsigned-promotion.patch" |
| 25 |
) |
| 26 |
|
| 27 |
pkg_setup() { |
| 28 |
linux-info_pkg_setup |
| 29 |
xorg-2_pkg_setup |
| 30 |
XORG_CONFIGURE_OPTIONS=( |
| 31 |
$(use_enable dri) |
| 32 |
--enable-xvmc |
| 33 |
) |
| 34 |
} |
| 35 |
|
| 36 |
pkg_postinst() { |
| 37 |
if linux_config_exists \ |
| 38 |
&& ! linux_chkconfig_present DRM_I915_KMS; then |
| 39 |
echo |
| 40 |
ewarn "This driver requires KMS support in your kernel" |
| 41 |
ewarn " Device Drivers --->" |
| 42 |
ewarn " Graphics support --->" |
| 43 |
ewarn " Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->" |
| 44 |
ewarn " <*> Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver) --->" |
| 45 |
ewarn " i915 driver" |
| 46 |
ewarn " [*] Enable modesetting on intel by default" |
| 47 |
echo |
| 48 |
fi |
| 49 |
} |