1 |
commit: 276b14e04e29d3f266146e961a81d88cde0161f9 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 15 20:01:33 2019 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 15 20:02:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=276b14e0 |
7 |
|
8 |
dev-libs/rocm-opencl-runtime: depend on dev-libs/ocl-icd |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
.../rocm-opencl-runtime-2.6.0-r1.ebuild | 51 ++++++++++++++++++++++ |
14 |
1 file changed, 51 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-2.6.0-r1.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-2.6.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..c26ed40b481 |
19 |
--- /dev/null |
20 |
+++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-2.6.0-r1.ebuild |
21 |
@@ -0,0 +1,51 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit cmake-utils |
28 |
+ |
29 |
+OPENCL_ICD_COMMIT="bc9728edf8cace79cf33bf75560be88fc2432dc4" |
30 |
+SRC_URI="https://github.com/KhronosGroup/OpenCL-ICD-Loader/archive/${OPENCL_ICD_COMMIT}.tar.gz -> OpenCL-ICD-Loader-${OPENCL_ICD_COMMIT}.tar.gz" |
31 |
+if [[ ${PV} == *9999 ]] ; then |
32 |
+ EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/" |
33 |
+ inherit git-r3 |
34 |
+else |
35 |
+ SRC_URI+=" https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/roc-${PV}.tar.gz -> ${P}.tar.gz" |
36 |
+ KEYWORDS="~amd64" |
37 |
+ S="${WORKDIR}/ROCm-OpenCL-Runtime-roc-${PV}" |
38 |
+fi |
39 |
+ |
40 |
+DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime" |
41 |
+HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime" |
42 |
+ |
43 |
+LICENSE="Apache-2.0 MIT" |
44 |
+SLOT="0/$(ver_cut 1-2)" |
45 |
+ |
46 |
+RDEPEND="dev-libs/rocr-runtime |
47 |
+ dev-libs/rocm-comgr |
48 |
+ dev-libs/rocm-device-libs |
49 |
+ dev-libs/rocm-opencl-driver |
50 |
+ dev-libs/ocl-icd[khronos-headers]" |
51 |
+DEPEND="${RDEPEND} |
52 |
+ dev-lang/ocaml |
53 |
+ dev-ml/findlib" |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}/${P}-unbundle-dependencies.patch" |
57 |
+) |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ mkdir -p "${S}"/api/opencl/khronos/ || die |
61 |
+ mv "${WORKDIR}/OpenCL-ICD-Loader-${OPENCL_ICD_COMMIT}" "${S}"/api/opencl/khronos/icd || die |
62 |
+ cmake-utils_src_prepare |
63 |
+} |
64 |
+ |
65 |
+src_configure() { |
66 |
+ local mycmakeargs=( |
67 |
+ -DLLVM_DIR="${EPREFIX}/usr/lib/llvm/roc/" |
68 |
+ -DClang_DIR="${EPREFIX}/usr/lib/llvm/roc/lib/cmake/clang/" |
69 |
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/" |
70 |
+ ) |
71 |
+ cmake-utils_src_configure |
72 |
+} |