blob: 6e93c7a8e741a7fe116e04b9cd3e1d4e31641061 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# 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
}
|