Diff rocr-runtime-5.1.3-r1 with a rocr-runtime-5.3.3-r1

/usr/portage/dev-libs/rocr-runtime/rocr-runtime-5.3.3-r1.ebuild 2023-10-09 14:52:29.760368357 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
inherit cmake llvm
6
inherit cmake flag-o-matic llvm
7 7

  
8 8
LLVM_MAX_SLOT=15
9 9

  
......
20 20
DESCRIPTION="Radeon Open Compute Runtime"
21 21
HOMEPAGE="https://github.com/RadeonOpenCompute/ROCR-Runtime"
22 22
PATCHES=(
23
	"${FILESDIR}/${PN}-5.0.1-cmake-install-paths.patch"
24 23
	"${FILESDIR}/${PN}-4.3.0_no-aqlprofiler.patch"
25 24
)
26 25

  
27 26
LICENSE="MIT"
28 27
SLOT="0/$(ver_cut 1-2)"
28
IUSE="debug"
29 29

  
30 30
COMMON_DEPEND="dev-libs/elfutils"
31 31
RDEPEND="${COMMON_DEPEND}"
......
37 37
BDEPEND="app-editors/vim-core"
38 38
	# vim-core is needed for "xxd"
39 39

  
40
CMAKE_BUILD_TYPE=Release
41

  
42 40
src_prepare() {
43 41
	# ... otherwise system llvm/clang is used ...
44 42
	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
45 43

  
46 44
	# Gentoo installs "*.bc" to "/usr/lib" instead of a "[path]/bitcode" directory ...
47
	sed -e "s:/opt/rocm/amdgcn/bitcode:${EPREFIX}/usr/lib/amdgcn/bitcode:" -i image/blit_src/CMakeLists.txt || die
45
	sed -e "s:-O2:--rocm-path=${EPREFIX}/usr/lib/ -O2:" -i image/blit_src/CMakeLists.txt || die
48 46

  
49 47
	cmake_src_prepare
50 48
}
49

  
50
src_configure() {
51
	use debug || append-cxxflags "-DNDEBUG"
52
	local mycmakeargs=( -DINCLUDE_PATH_COMPATIBILITY=OFF )
53
	cmake_src_configure
54
}
Thank you!