| 1 | # Copyright 1999-2008 Gentoo Foundation |
|---|
| 2 | # Distributed under the terms of the GNU General Public License v2 |
|---|
| 3 | # $Header: $ |
|---|
| 4 | |
|---|
| 5 | EAPI=2 |
|---|
| 6 | XDPVER=-1 |
|---|
| 7 | inherit x-modular git |
|---|
| 8 | |
|---|
| 9 | DESCRIPTION="Video driver for SMedia Glamo" |
|---|
| 10 | HOMEPAGE="http://www.openmoko.org/" |
|---|
| 11 | |
|---|
| 12 | EGIT_REPO_URI="git://git.openmoko.org/git/xf86-video-glamo.git" |
|---|
| 13 | EGIT_PROJECT="xf86-video-glamo" |
|---|
| 14 | |
|---|
| 15 | LICENSE="GPL-2" |
|---|
| 16 | SLOT="0" |
|---|
| 17 | KEYWORDS="~arm" |
|---|
| 18 | IUSE="kms" |
|---|
| 19 | |
|---|
| 20 | RDEPEND=">=x11-base/xorg-server-1.5" |
|---|
| 21 | |
|---|
| 22 | DEPEND="${RDEPEND} |
|---|
| 23 | x11-proto/randrproto |
|---|
| 24 | x11-proto/renderproto |
|---|
| 25 | x11-proto/xextproto |
|---|
| 26 | x11-proto/xproto |
|---|
| 27 | x11-proto/videoproto |
|---|
| 28 | x11-libs/libdrm[video_cards_glamo]" |
|---|
| 29 | |
|---|
| 30 | pkg_setup() { |
|---|
| 31 | if ! use kms ; then |
|---|
| 32 | ewarn "If you experience build or run time difficulties, try enabling kms use flag." |
|---|
| 33 | fi |
|---|
| 34 | } |
|---|
| 35 | |
|---|
| 36 | src_unpack() { |
|---|
| 37 | git_src_unpack |
|---|
| 38 | cd "${S}" |
|---|
| 39 | |
|---|
| 40 | append-flags -Wno-error |
|---|
| 41 | eautoreconf || die "eautoreconf failed" |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | src_configure() { |
|---|
| 45 | econf $(use_enable kms ) |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | src_install() { |
|---|
| 49 | x-modular_src_install |
|---|
| 50 | } |
|---|