Ticket #304: xf86-video-glamo-9999.ebuild

File xf86-video-glamo-9999.ebuild, 0.9 KB (added by jc, 2 years ago)

proposal (work in progress)

Line 
1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5EAPI=2
6XDPVER=-1
7inherit x-modular git
8
9DESCRIPTION="Video driver for SMedia Glamo"
10HOMEPAGE="http://www.openmoko.org/"
11
12EGIT_REPO_URI="git://git.openmoko.org/git/xf86-video-glamo.git"
13EGIT_PROJECT="xf86-video-glamo"
14
15LICENSE="GPL-2"
16SLOT="0"
17KEYWORDS="~arm"
18IUSE="kms"
19
20RDEPEND=">=x11-base/xorg-server-1.5"
21
22DEPEND="${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
30pkg_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
36src_unpack() {
37        git_src_unpack
38        cd "${S}"
39
40        append-flags -Wno-error
41        eautoreconf || die "eautoreconf failed"
42}
43
44src_configure() {
45        econf $(use_enable kms )
46}
47
48src_install() {
49        x-modular_src_install
50}