# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 XDPVER=-1 inherit x-modular git DESCRIPTION="Experimental video driver for SMedia Glamo" HOMEPAGE="http://www.openmoko.org/" EGIT_REPO_URI="git://git.openmoko.org/git/xf86-video-glamo.git" EGIT_PROJECT="xf86-video-glamo" LICENSE="GPL-2" SLOT="0" KEYWORDS="~arm" IUSE="dri kms" use dri && EGIT_BRANCH="kms" RDEPEND=">=x11-base/xorg-server-1.5" DEPEND="${RDEPEND} x11-proto/randrproto x11-proto/renderproto x11-proto/xextproto x11-proto/xproto x11-proto/videoproto x11-libs/libdrm[video_cards_glamo]" pkg_setup() { if use kms ; then ewarn "If you experience build or run time difficulties, try disabling kms use flag." fi } src_unpack() { git_src_unpack cd "${S}" append-flags -Wno-error eautoreconf || die "eautoreconf failed" } src_compile() { local myconf myconf="${myconf} --disable-kms" use kms && myconf="${myconf} --enable-kms" econf ${myconf} || die "Configuration failed" emake || die "Make failed" } src_install() { x-modular_src_install }