summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfried Holzke <gentoo@holzke.net>2020-08-22 18:07:34 +0200
committerCraig Andrews <candrews@gentoo.org>2020-08-22 13:28:51 -0400
commit75458fcc4f3376d80199308b01ad0aa7fe28122d (patch)
tree806eab48514eea7bd2a7a408cbaf6d09570e51b9 /dev-libs
parentdev-util/rocm-cmake: Version bump to 3.7.0 (diff)
downloadgentoo-75458fcc4f3376d80199308b01ad0aa7fe28122d.tar.gz
gentoo-75458fcc4f3376d80199308b01ad0aa7fe28122d.tar.bz2
gentoo-75458fcc4f3376d80199308b01ad0aa7fe28122d.zip
dev-libs/rocclr: Added "${EPREFIX}"
Signed-off-by: Wilfried Holzke <gentoo@holzke.net> Package-Manager: Portage-2.3.103, Repoman-2.3.23 Closes: https://github.com/gentoo/gentoo/pull/17211 Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/rocclr/rocclr-3.5.0-r1.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/rocclr/rocclr-3.5.0-r1.ebuild b/dev-libs/rocclr/rocclr-3.5.0-r1.ebuild
new file mode 100644
index 000000000000..2601b431de18
--- /dev/null
+++ b/dev-libs/rocclr/rocclr-3.5.0-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Radeon Open Compute Common Language Runtime"
+HOMEPAGE="https://github.com/ROCm-Developer-Tools/ROCclr"
+SRC_URI="https://github.com/ROCm-Developer-Tools/ROCclr/archive/roc-${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/roc-${PV}.tar.gz -> rocm-opencl-runtime-${PV}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+
+RDEPEND=">=dev-libs/rocm-comgr-${PV}"
+DEPEND="${RDEPEND}
+ >=dev-libs/rocm-comgr-${PV}
+ virtual/opengl
+ >=dev-util/rocm-cmake-${PV}"
+
+PATCHES=(
+ "${FILESDIR}/rocclr-3.5.0-cmake-install-destination.patch"
+ "${FILESDIR}/rocclr-3.5.0-find-opencl.patch"
+)
+
+S="${WORKDIR}/ROCclr-roc-${PV}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_COMGR_LIBRARY=YES
+ -DOPENCL_DIR="${WORKDIR}/ROCm-OpenCL-Runtime-roc-${PV}"
+ -DCMAKE_INSTALL_PREFIX="/usr"
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ # This should be fixed in the CMakeLists.txt to get this installed automatically
+ sed -e "s:${BUILD_DIR}:${EPREFIX}/usr/$(get_libdir):" -i "${BUILD_DIR}/amdrocclr_staticTargets.cmake"
+ insinto /usr/$(get_libdir)/cmake/rocclr
+ doins "${BUILD_DIR}/amdrocclr_staticTargets.cmake"
+
+ cmake_src_install
+}