From 276b14e04e29d3f266146e961a81d88cde0161f9 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Thu, 15 Aug 2019 16:01:33 -0400 Subject: dev-libs/rocm-opencl-runtime: depend on dev-libs/ocl-icd Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Craig Andrews --- .../rocm-opencl-runtime-2.6.0-r1.ebuild | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-2.6.0-r1.ebuild (limited to 'dev-libs') 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 new file mode 100644 index 000000000000..c26ed40b481a --- /dev/null +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-2.6.0-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +OPENCL_ICD_COMMIT="bc9728edf8cace79cf33bf75560be88fc2432dc4" +SRC_URI="https://github.com/KhronosGroup/OpenCL-ICD-Loader/archive/${OPENCL_ICD_COMMIT}.tar.gz -> OpenCL-ICD-Loader-${OPENCL_ICD_COMMIT}.tar.gz" +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/" + inherit git-r3 +else + SRC_URI+=" https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/roc-${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/ROCm-OpenCL-Runtime-roc-${PV}" +fi + +DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime" +HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime" + +LICENSE="Apache-2.0 MIT" +SLOT="0/$(ver_cut 1-2)" + +RDEPEND="dev-libs/rocr-runtime + dev-libs/rocm-comgr + dev-libs/rocm-device-libs + dev-libs/rocm-opencl-driver + dev-libs/ocl-icd[khronos-headers]" +DEPEND="${RDEPEND} + dev-lang/ocaml + dev-ml/findlib" + +PATCHES=( + "${FILESDIR}/${P}-unbundle-dependencies.patch" +) + +src_prepare() { + mkdir -p "${S}"/api/opencl/khronos/ || die + mv "${WORKDIR}/OpenCL-ICD-Loader-${OPENCL_ICD_COMMIT}" "${S}"/api/opencl/khronos/icd || die + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DLLVM_DIR="${EPREFIX}/usr/lib/llvm/roc/" + -DClang_DIR="${EPREFIX}/usr/lib/llvm/roc/lib/cmake/clang/" + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/" + ) + cmake-utils_src_configure +} -- cgit v1.2.3-65-gdbad