Skip to content

Commit

Permalink
dev-libs/rocm-opencl-runtime: support Prefix.
Browse files Browse the repository at this point in the history
Drop an upstream fixed hack.

Reference: ROCm/ROCm-OpenCL-Runtime@2bfbd8a
Suggested-by: Suggested-by: Yiyang Wu <[email protected]>
Package-Manager: Portage-3.0.12, Repoman-3.0.1
Signed-off-by: Benda Xu <[email protected]>
  • Loading branch information
heroxbd committed Jan 20, 2021
1 parent 2963700 commit fcb2013
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-4.0.0.ebuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake flag-o-matic
inherit cmake flag-o-matic prefix

if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/"
Expand Down Expand Up @@ -42,10 +42,9 @@ src_prepare() {
# Remove "clinfo" - use "dev-util/clinfo" instead
[ -d tools/clinfo ] && rm -rf tools/clinfo || die

# Wrong position of a '"' results in a list of strings instead of a single string and the build fails...
sed -e "s:set(CMAKE_SHARED_LINKER_FLAGS \${CMAKE_SHARED_LINKER_FLAGS} \":set(CMAKE_SHARED_LINKER_FLAGS \"\${CMAKE_SHARED_LINKER_FLAGS} :" -i "${S}/amdocl/CMakeLists.txt"

cmake_src_prepare

hprefixify amdocl/CMakeLists.txt
}

src_configure() {
Expand Down

0 comments on commit fcb2013

Please sign in to comment.