forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pocl-0.13.ebuild
39 lines (32 loc) · 888 Bytes
/
pocl-0.13.ebuild
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-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit autotools
DESCRIPTION="PortableCL: opensource implementation of the OpenCL standard"
HOMEPAGE="http://portablecl.org/"
SRC_URI="http://portablecl.org/downloads/${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64"
IUSE=""
RDEPEND="dev-libs/ocl-icd
>=sys-devel/llvm-3.7[clang]
sys-apps/hwloc
>=app-eselect/eselect-opencl-1.1.0-r4"
DEPEND="${RDEPEND}
virtual/pkgconfig"
pkg_pretend() {
# Needs an OpenCL 1.2 ICD, mesa and nvidia are invalid
# Maybe ati works, feel free to add/fix if you can test
if [[ $(eselect opencl show) == 'ocl-icd' ]]; then
einfo "Valid OpenCL ICD set"
else
eerror "Please use a supported ICD:"
eerror "eselect opencl set ocl-icd"
die "OpenCL ICD not set to a supported value"
fi
}
src_prepare() {
eautoreconf
}