diff options
author | Wilfried Holzke <gentoo@holzke.net> | 2020-11-14 21:55:43 +0100 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2020-11-14 16:02:38 -0500 |
commit | 6ef967f94febd929afb75ad2916baff3ca190c05 (patch) | |
tree | bff66c3c8964b57753748d17fc355230d88d7ac5 /dev-libs/rocclr/rocclr-3.9.0.ebuild | |
parent | dev-libs/rocm-opencl-runtime: Version bump to 3.9.0 (diff) | |
download | gentoo-6ef967f94febd929afb75ad2916baff3ca190c05.tar.gz gentoo-6ef967f94febd929afb75ad2916baff3ca190c05.tar.bz2 gentoo-6ef967f94febd929afb75ad2916baff3ca190c05.zip |
dev-libs/rocclr: Version bump to 3.9.0
Signed-off-by: Wilfried Holzke <gentoo@holzke.net>
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'dev-libs/rocclr/rocclr-3.9.0.ebuild')
-rw-r--r-- | dev-libs/rocclr/rocclr-3.9.0.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-libs/rocclr/rocclr-3.9.0.ebuild b/dev-libs/rocclr/rocclr-3.9.0.ebuild new file mode 100644 index 000000000000..ffa5203065d2 --- /dev/null +++ b/dev-libs/rocclr/rocclr-3.9.0.ebuild @@ -0,0 +1,44 @@ +# 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/rocm-${PV}.tar.gz -> ${P}.tar.gz + https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/rocm-${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} + >=dev-libs/rocr-runtime-${PV}" +DEPEND="${RDEPEND} + >=dev-libs/rocm-comgr-${PV} + virtual/opengl + >=dev-util/rocm-cmake-${PV}" + +PATCHES=( + "${FILESDIR}/rocclr-3.7.0-cmake-install-destination.patch" +) + +S="${WORKDIR}/ROCclr-rocm-${PV}" + +src_configure() { + local mycmakeargs=( + -DUSE_COMGR_LIBRARY=YES + -DOPENCL_DIR="${WORKDIR}/ROCm-OpenCL-Runtime-rocm-${PV}" + -DCMAKE_INSTALL_PREFIX="/usr" + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + # This should be fixed in the CMakeLists.txt + sed -e "s:${BUILD_DIR}:${EPREFIX}/usr:" -i "${D}/usr/lib/cmake/rocclr/ROCclrConfig.cmake" || die +} |