diff options
author | 2015-11-30 09:12:44 +0100 | |
---|---|---|
committer | 2015-11-30 09:12:44 +0100 | |
commit | e81e09a9ced382302db31f37ac55948804dab28a (patch) | |
tree | f978274c641e101a9da8ccc4c55148bf9fde0afa /sci-libs/clblas | |
parent | alternatives-2.eclass: Fix docs string for man pages (diff) | |
download | sci-e81e09a9ced382302db31f37ac55948804dab28a.tar.gz sci-e81e09a9ced382302db31f37ac55948804dab28a.tar.bz2 sci-e81e09a9ced382302db31f37ac55948804dab28a.zip |
sci-libs/clblas: Build against CL-1.2, closes issue #543
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'sci-libs/clblas')
-rw-r--r-- | sci-libs/clblas/ChangeLog | 6 | ||||
-rw-r--r-- | sci-libs/clblas/clblas-2.6-r1.ebuild (renamed from sci-libs/clblas/clblas-2.6.ebuild) | 11 | ||||
-rw-r--r-- | sci-libs/clblas/clblas-9999.ebuild | 11 |
3 files changed, 28 insertions, 0 deletions
diff --git a/sci-libs/clblas/ChangeLog b/sci-libs/clblas/ChangeLog index e74dc52e0..217f674ae 100644 --- a/sci-libs/clblas/ChangeLog +++ b/sci-libs/clblas/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ +*clblas-2.6-r1 (30 Nov 2015) + + 30 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> +clblas-2.6-r1.ebuild, + -clblas-2.6.ebuild, clblas-9999.ebuild: + sci-libs/clblas: Build against CL-1.2, closes issue #543 + *clblas-2.6 (12 Sep 2015) 12 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> +clblas-2.6.ebuild: diff --git a/sci-libs/clblas/clblas-2.6.ebuild b/sci-libs/clblas/clblas-2.6-r1.ebuild index d060857f0..15ca8d534 100644 --- a/sci-libs/clblas/clblas-2.6.ebuild +++ b/sci-libs/clblas/clblas-2.6-r1.ebuild @@ -45,6 +45,16 @@ pkg_pretend() { die "Compilation with gcc older than 4.6 is not supported." fi fi + + if [ ! -d "/usr/local/include/CL" ]; then + eerror "As a temporary workaround for Bug #521734, a symlink pointing to" + eerror "OpenCL headers >= 1.2 is needed. A symlink pointing to the CL-1.2" + eerror "headers, provided by the eselect-opencl package, can be created with" + eerror "" + eerror " ln -s /usr/lib64/OpenCL/global/include/CL-1.2/ /usr/local/include/CL" + eerror "" + die "/usr/local/include/CL not found" + fi } src_configure() { @@ -54,6 +64,7 @@ src_configure() { $(cmake-utils_use_build ktest KTEST) $(cmake-utils_use_build performance PERFORMANCE) $(cmake-utils_use_build test TEST) + -DOPENCL_ROOT="/usr/local/include" ) cmake-utils_src_configure } diff --git a/sci-libs/clblas/clblas-9999.ebuild b/sci-libs/clblas/clblas-9999.ebuild index 4a25302c7..84404a981 100644 --- a/sci-libs/clblas/clblas-9999.ebuild +++ b/sci-libs/clblas/clblas-9999.ebuild @@ -45,6 +45,16 @@ pkg_pretend() { die "Compilation with gcc older than 4.6 is not supported." fi fi + + if [ ! -d "/usr/local/include/CL" ]; then + eerror "As a temporary workaround for Bug #521734, a symlink pointing to" + eerror "OpenCL headers >= 1.2 is needed. A symlink pointing to the CL-1.2" + eerror "headers, provided by the eselect-opencl package, can be created with" + eerror "" + eerror " ln -s /usr/lib64/OpenCL/global/include/CL-1.2/ /usr/local/include/CL" + eerror "" + die "/usr/local/include/CL not found" + fi } src_configure() { @@ -54,6 +64,7 @@ src_configure() { $(cmake-utils_use_build ktest KTEST) $(cmake-utils_use_build performance PERFORMANCE) $(cmake-utils_use_build test TEST) + -DOPENCL_ROOT="/usr/local/include" ) cmake-utils_src_configure } |