From 944b3df0f275eea0fd7808913d72a0b280df0c33 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 6 Aug 2022 20:10:31 +0100 Subject: gentoo auto-resync : 06:08:2022 - 20:10:30 --- dev-libs/rocr-runtime/rocr-runtime-5.1.3.ebuild | 50 +++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 dev-libs/rocr-runtime/rocr-runtime-5.1.3.ebuild (limited to 'dev-libs/rocr-runtime/rocr-runtime-5.1.3.ebuild') diff --git a/dev-libs/rocr-runtime/rocr-runtime-5.1.3.ebuild b/dev-libs/rocr-runtime/rocr-runtime-5.1.3.ebuild new file mode 100644 index 000000000000..51cc36741308 --- /dev/null +++ b/dev-libs/rocr-runtime/rocr-runtime-5.1.3.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake llvm + +LLVM_MAX_SLOT=14 + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCR-Runtime/" + inherit git-r3 + S="${WORKDIR}/${P}/src" +else + SRC_URI="https://github.com/RadeonOpenCompute/ROCR-Runtime/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/ROCR-Runtime-rocm-${PV}/src" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Radeon Open Compute Runtime" +HOMEPAGE="https://github.com/RadeonOpenCompute/ROCR-Runtime" +PATCHES=( + "${FILESDIR}/${PN}-5.0.1-cmake-install-paths.patch" + "${FILESDIR}/${PN}-4.3.0_no-aqlprofiler.patch" +) + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" + +COMMON_DEPEND="dev-libs/elfutils" +RDEPEND="${COMMON_DEPEND}" +DEPEND="${COMMON_DEPEND} + >=dev-libs/roct-thunk-interface-${PV} + >=dev-libs/rocm-device-libs-${PV} + sys-devel/clang + sys-devel/lld" +BDEPEND="app-editors/vim-core" + # vim-core is needed for "xxd" + +CMAKE_BUILD_TYPE=Release + +src_prepare() { + # ... otherwise system llvm/clang is used ... + sed -e "/find_package(Clang REQUIRED HINTS /s:\${CMAKE_INSTALL_PREFIX}/llvm \${CMAKE_PREFIX_PATH}/llvm PATHS /opt/rocm/llvm:$(get_llvm_prefix ${LLVM_MAX_SLOT}):" -i image/blit_src/CMakeLists.txt || die + + # Gentoo installs "*.bc" to "/usr/lib" instead of a "[path]/bitcode" directory ... + sed -e "s:/opt/rocm/amdgcn/bitcode:${EPREFIX}/usr/lib/amdgcn/bitcode:" -i image/blit_src/CMakeLists.txt || die + + cmake_src_prepare +} -- cgit v1.2.3