diff options
author | Patrick Lauer <patrick@gentoo.org> | 2016-04-10 19:01:31 +0200 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2016-04-10 19:01:47 +0200 |
commit | 4bae39fee9b1f0135c08e234cb742e439ace2470 (patch) | |
tree | 63a7c4a439c0918d0935d9b67f2770a40c873dcd /dev-lang/pocl/pocl-0.13.ebuild | |
parent | cb730d07e4e9c2f96b865de36428eefa091723cb (diff) | |
download | gentoo-4bae39fee9b1f0135c08e234cb742e439ace2470.tar.gz gentoo-4bae39fee9b1f0135c08e234cb742e439ace2470.tar.xz |
dev-lang/pocl: Bump
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-lang/pocl/pocl-0.13.ebuild')
-rw-r--r-- | dev-lang/pocl/pocl-0.13.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-lang/pocl/pocl-0.13.ebuild b/dev-lang/pocl/pocl-0.13.ebuild new file mode 100644 index 00000000000..037505c4b8b --- /dev/null +++ b/dev-lang/pocl/pocl-0.13.ebuild @@ -0,0 +1,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 +} |