diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
commit | ca9627e70852f6b2e835660df870fe3ab405882d (patch) | |
tree | 0a008b1d5b16fa0679a195ed7b5662c7891f591c /dev-libs/pocl/pocl-9999.ebuild | |
download | darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2 darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip |
Initial import
Diffstat (limited to 'dev-libs/pocl/pocl-9999.ebuild')
-rw-r--r-- | dev-libs/pocl/pocl-9999.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-libs/pocl/pocl-9999.ebuild b/dev-libs/pocl/pocl-9999.ebuild new file mode 100644 index 0000000..ae688c4 --- /dev/null +++ b/dev-libs/pocl/pocl-9999.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit git-r3 cmake-utils +#cmake-utils + +DESCRIPTION="PortableCL: opensource implementation of the OpenCL standard" +HOMEPAGE="http://portablecl.org/" +EGIT_REPO_URI="https://github.com/pocl/pocl.git" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="" +IUSE="" + +RDEPEND="dev-libs/ocl-icd + >=sys-devel/llvm-4.0 + >=sys-devel/clang-4.0 + >=sys-apps/hwloc-1.0 + >=app-eselect/eselect-opencl-1.1.0-r4" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +POCL_DIR="/usr/$(get_libdir)/OpenCL/vendors/pocl" + +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 +} + |