aboutsummaryrefslogtreecommitdiff
blob: e039cae721f723e30a403d4bfc86f52ed15a45bc (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
inherit autotools

MY_PN="${PN/_/}"
P="${MY_PN}-${PV}"

if [ "${PV}" = "99999999" ]; then
	EGIT_REPO_URI="git://github.com/etnaviv/etna_viv"
	inherit git-r3
	EGIT_COMMIT="f64d77abbb54433bd5de955c20afddc6eb4f4cb1"
	KEYWORDS=""
	IUSE="src"
else
	# this commit is 1 before the attic-move; if you want to try
	# building the src, you might start here...
	COMMIT_ID="3815bcc09ccef173987f2d346a947a9b7e502762"
	SRC_URI="https://github.com/etnaviv/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}-git.tar.gz"
	KEYWORDS="~arm"
	IUSE=""
	S=${WORKDIR}/${PN}-${COMMIT_ID}
fi

DESCRIPTION="FOSS driver headers for the Vivante GCxxx series of embedded GPUs"
HOMEPAGE="https://github.com/etnaviv/etna_viv"

LICENSE="MIT"
SLOT="0"

DEPEND=">=x11-libs/libdrm-2.4.74:=[video_cards_vivante]
	virtual/pkgconfig"

MERGE_TYPE="binary"

#S="${WORKDIR}/${P}"

src_install() {
	insinto /usr/include/etnaviv

	if use src; then
		doins -r src attic
	else
		doins src/etnaviv/*.h attic/etnaviv/*.h
	fi
}