| 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.10.0-r1.ebuild,v 1.6 2012/07/04 22:13:45 remi Exp $
|
| 4 |
|
| 5 |
EAPI=3
|
| 6 |
|
| 7 |
inherit linux-info xorg-2
|
| 8 |
|
| 9 |
DESCRIPTION="X.Org driver for Intel cards"
|
| 10 |
|
| 11 |
KEYWORDS="~amd64 ~ia64 ~x86 -x86-fbsd"
|
| 12 |
IUSE="dri"
|
| 13 |
|
| 14 |
RDEPEND=">=x11-base/xorg-server-1.6
|
| 15 |
|| ( <x11-libs/libdrm-2.4.22 x11-libs/libdrm[video_cards_intel] )
|
| 16 |
x11-libs/libpciaccess
|
| 17 |
x11-libs/libXext
|
| 18 |
x11-libs/libXfixes
|
| 19 |
x11-libs/libXvMC
|
| 20 |
>=x11-libs/libxcb-1.5
|
| 21 |
x11-libs/xcb-util"
|
| 22 |
DEPEND="${RDEPEND}
|
| 23 |
>=x11-proto/dri2proto-1.99.3
|
| 24 |
x11-proto/fontsproto
|
| 25 |
x11-proto/randrproto
|
| 26 |
x11-proto/renderproto
|
| 27 |
x11-proto/xextproto
|
| 28 |
x11-proto/xineramaproto
|
| 29 |
x11-proto/xproto
|
| 30 |
dri? ( x11-proto/xf86driproto
|
| 31 |
x11-proto/glproto )"
|
| 32 |
|
| 33 |
PATCHES=(
|
| 34 |
"${FILESDIR}/2.10.0-0001-Extract-pixel-value-for-all-formats-to-avoid-hitting.patch"
|
| 35 |
)
|
| 36 |
|
| 37 |
pkg_setup() {
|
| 38 |
linux-info_pkg_setup
|
| 39 |
xorg-2_pkg_setup
|
| 40 |
CONFIGURE_OPTIONS="$(use_enable dri) --enable-xvmc"
|
| 41 |
}
|
| 42 |
|
| 43 |
pkg_postinst() {
|
| 44 |
if linux_config_exists \
|
| 45 |
&& ! linux_chkconfig_present CONFIG_DRM_I915_KMS; then
|
| 46 |
echo
|
| 47 |
ewarn "This driver requires KMS support in your kernel"
|
| 48 |
ewarn " Device Drivers --->"
|
| 49 |
ewarn " Graphics support --->"
|
| 50 |
ewarn " Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->"
|
| 51 |
ewarn " <*> Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver) --->"
|
| 52 |
ewarn " i915 driver"
|
| 53 |
ewarn " [*] Enable modesetting on intel by default"
|
| 54 |
echo
|
| 55 |
fi
|
| 56 |
}
|