blob: cab4762093023f307bf22dbe671843fcc1d4a9cf (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
EGIT_PROJECT="gdev"
inherit base git-2
DESCRIPTION="Gdev is open-source GPGPU runtime"
HOMEPAGE="https://github.com/shinpei0208/gdev"
SRC_URI=""
EGIT_REPO_URI="
git://github.com/shinpei0208/gdev.git
https://github.com/shinpei0208/gdev.git"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND="
dev-libs/libgdev
x11-libs/libdrm[video_cards_nouveau]
x11-misc/envytools"
DEPEND="
virtual/pkgconfig
${RDEPEND}"
PATCHES=( "${FILESDIR}/0001-Fix-detection-of-nouveau-in-case-its-builtin.patch"
"${FILESDIR}/0002-Fix-install-target-for-gdev-lib-userspace.patch"
"${FILESDIR}/0003-Fix-install-target-for-gdev-lib-userspace-part2.patch"
"${FILESDIR}/0004-Respect-extra-CFLAGS-and-LDFLAGS.patch"
"${FILESDIR}/0005-Fix-install-target-for-cuda-lib.patch"
)
src_configure() {
cd cuda
mkdir build
cd build
../configure
}
src_compile() {
cd cuda/build
emake GDEVDIR="${EPREFIX}/usr"
}
src_install() {
cd cuda/build
emake GDEVDIR="${EPREFIX}/usr" DESTDIR="${D}" install
}
|