# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit rpm DESCRIPTION="xorg driver for the intel gma500 (poulsbo)" HOMEPAGE="http://www.happyassassin.net/2009/05/13/native-poulsbo-gma-500-graphics-driver-for-fedora-10/" SRC_URI="http://adamwill.fedorapeople.org/poulsbo/src/xorg-x11-drv-psb-0.31.0-11.fc11.src.rpm" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="x11-libs/libdrm-poulsbo" RDEPEND="$DEPEND x11-drivers/psb-kmod x11-libs/xpsb-glx" S=${WORKDIR}/xserver-xorg-video-psb-0.31.0 src_unpack() { rpm_src_unpack cd ${S} epatch ${WORKDIR}/xorg-x11-drv-psb-0.31.0-libdrm.patch epatch ${WORKDIR}/xorg-x11-drv-psb-0.31.0-ignoreacpi.patch } src_compile() { cd ${S} autoreconf -i econf emake } src_install() { emake install DESTDIR="${D}" elog "If your X refuses to start, saying something like" elog "could not mmap framebuffer..." elog "try to pretend to have less ram than you have" elog "by appending a kernel parameter mem=xxxxMB" elog "(especially on a Vaio P11 try mem=2039MB)" }