1 |
commit: 6c7545c340ba4d88b9a78ad763e5c6fd5fb11b04 |
2 |
Author: Wilfried Holzke <gentoo <AT> holzke <DOT> net> |
3 |
AuthorDate: Sat Sep 26 10:03:05 2020 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 26 15:43:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c7545c3 |
7 |
|
8 |
dev-libs/rocm-opencl-runtime: Version bump to 3.8.0 |
9 |
|
10 |
Signed-off-by: Wilfried Holzke <gentoo <AT> holzke.net> |
11 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/17673 |
13 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
14 |
|
15 |
dev-libs/rocm-opencl-runtime/Manifest | 1 + |
16 |
.../rocm-opencl-runtime-3.8.0.ebuild | 69 ++++++++++++++++++++++ |
17 |
2 files changed, 70 insertions(+) |
18 |
|
19 |
diff --git a/dev-libs/rocm-opencl-runtime/Manifest b/dev-libs/rocm-opencl-runtime/Manifest |
20 |
index cd20ea75e84..92c4ca9c727 100644 |
21 |
--- a/dev-libs/rocm-opencl-runtime/Manifest |
22 |
+++ b/dev-libs/rocm-opencl-runtime/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST rocm-opencl-runtime-3.7.0.tar.gz 1004361 BLAKE2B 7fa9481c77884dda15a3b0335449b2879fbac000f644fc56bbd8d06c5fd77d8355f159b9b7e8920f06351e388d0df41379b7e1fcff51cf81714a28f902218e42 SHA512 6ea509dde0290f13e66497eaad587099ed6a98df967adce207afc857ecd961b65801332ca74e36173719488639480cfcffc625a007345d0e48c10c8a0efdfa3f |
25 |
+DIST rocm-opencl-runtime-3.8.0.tar.gz 1004339 BLAKE2B 966a5bd1d4d188004b15fe4263f2c18f6dad6a07f4bc264a5afa010f6035fbf73288966cd624e6e31e1ba584ba322d93343e3482177e6480c4a57a4150546f5a SHA512 bb4e3568e32bf6acc3c4812d7db169396a01bf90d079dc420ffb7df4bd4146d39938e76e9b386548fe64276bbf938a545c898de599113f20cc73ae98268c3d6a |
26 |
|
27 |
diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-3.8.0.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-3.8.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..5a1a4386433 |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-3.8.0.ebuild |
32 |
@@ -0,0 +1,69 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit cmake |
39 |
+ |
40 |
+if [[ ${PV} == *9999 ]] ; then |
41 |
+ EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/" |
42 |
+ inherit git-r3 |
43 |
+else |
44 |
+ SRC_URI="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/roc-${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ KEYWORDS="~amd64" |
46 |
+ S="${WORKDIR}/ROCm-OpenCL-Runtime-rocm-${PV}" |
47 |
+fi |
48 |
+ |
49 |
+DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime" |
50 |
+HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime" |
51 |
+ |
52 |
+LICENSE="Apache-2.0 MIT" |
53 |
+SLOT="0/$(ver_cut 1-2)" |
54 |
+ |
55 |
+RDEPEND=">=dev-libs/rocr-runtime-${PV} |
56 |
+ >=dev-libs/rocclr-${PV} |
57 |
+ >=dev-libs/rocm-comgr-${PV} |
58 |
+ >=dev-libs/rocm-device-libs-${PV} |
59 |
+ >=virtual/opencl-3 |
60 |
+ media-libs/mesa" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ dev-lang/ocaml |
63 |
+ dev-ml/findlib" |
64 |
+BDEPEND=">=dev-util/rocm-cmake-${PV}" |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}/${PN}-3.7.0-change-install-location.patch" |
68 |
+ "${FILESDIR}/${PN}-3.5.0-do-not-install-libopencl.patch" |
69 |
+ "${FILESDIR}/${PN}-3.7.0-add-rocclr-include-directories.patch" |
70 |
+ "${FILESDIR}/${PN}-3.7.0-amdocl64icd.patch" |
71 |
+) |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ # Remove "clinfo" - use "dev-util/clinfo" instead |
75 |
+ [ -d tools/clinfo ] && rm -rf tools/clinfo || die |
76 |
+ |
77 |
+ # Wrong position of a '"' results in a list of strings instead of a single string and the build fails... |
78 |
+ sed -e "s:set(CMAKE_SHARED_LINKER_FLAGS \${CMAKE_SHARED_LINKER_FLAGS} \":set(CMAKE_SHARED_LINKER_FLAGS \"\${CMAKE_SHARED_LINKER_FLAGS} :" -i "${S}/amdocl/CMakeLists.txt" |
79 |
+ |
80 |
+ cmake_src_prepare |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120 |
85 |
+ append-cflags -fcommon |
86 |
+ |
87 |
+ local mycmakeargs=( |
88 |
+ -DUSE_COMGR_LIBRARY=yes |
89 |
+ -DROCclr_DIR="${EPREFIX}/usr/include/rocclr" |
90 |
+ -DLIBROCclr_STATIC_DIR="${EPREFIX}/usr/lib/cmake/rocclr" |
91 |
+ ) |
92 |
+ cmake_src_configure |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ cd "${BUILD_DIR}" || die |
97 |
+ insinto /etc/OpenCL/vendors |
98 |
+ doins amdocl64.icd |
99 |
+ insinto /usr/lib64 |
100 |
+ doins lib/libamdocl64.so |
101 |
+} |