aboutsummaryrefslogtreecommitdiff
blob: 186192929d7c6a7af74efbf0ea28e9d21a1cc904 (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="5"

AUTOTOOLS_AUTORECONF="1"
XORG_BASE_INDIVIDUAL_URI=""
XORG_DRI="always"

inherit autotools-utils xorg-2

if [[ ${PV} = 9999 ]]; then
	EGIT_REPO_URI="https://github.com/VCTLabs/xf86-video-armada"
	EGIT_BRANCH="devel"
	KEYWORDS=""
	inherit git-r3
else
	SRC_URI="mirror://gentoo/${P}.tar.gz"
	KEYWORDS="~arm"
fi

DESCRIPTION="Xorg graphics driver for KMS based systems with pluggable GPU backend"

RDEPEND=">=x11-base/xorg-server-1.18"

DEPEND="${RDEPEND}
	x11-libs/libetnaviv
	x11-libs/libdrm-armada
"

pkg_setup() {
	xorg-2_pkg_setup

	# note: vivante requires libGAL
	XORG_CONFIGURE_OPTIONS=(
		--disable-vivante
		--enable-etnaviv
	)
}