You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit unpacker
|
|
|
|
ROCM_VERSION="3.1.0"
|
|
MY_PV="${PV}-rocm-rel-$(ver_cut 1-2 ${ROCM_VERSION})-44-ecafeba1"
|
|
|
|
DESCRIPTION="Proprietary image-support library for Radeon Open Compute"
|
|
HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm#closed-source-components"
|
|
SRC_URI="http://repo.radeon.com/rocm/apt/debian/pool/main/h/${PN}-dev/${PN}-dev_${MY_PV}_amd64.deb"
|
|
|
|
LICENSE="AMD-GPU-PRO-EULA"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="-deprecated"
|
|
|
|
RESTRICT="bindist strip"
|
|
|
|
QA_PREBUILT="/opt/${PN}/lib*/*"
|
|
|
|
S="${WORKDIR}"
|
|
|
|
src_unpack() {
|
|
unpack_deb ${A}
|
|
}
|
|
|
|
src_install() {
|
|
local destdir="/opt/${PN}"
|
|
local soversion=$(ver_cut 1-3)
|
|
local somajor=$(ver_cut 1)
|
|
|
|
local solibs_to_install=( "libhsa-ext-image64.so" )
|
|
if use deprecated; then
|
|
solibs_to_install+=( "libhsa-runtime-tools64.so" )
|
|
fi
|
|
|
|
into "${destdir}"
|
|
for solib in ${solibs_to_install[@]}; do
|
|
dolib.so "opt/rocm-${ROCM_VERSION}/hsa/lib/${solib}.${soversion}"
|
|
dosym "../..${destdir}/$(get_libdir)/${solib}.${soversion}" "/usr/$(get_libdir)/${solib}.${soversion}"
|
|
dosym "${solib}.${soversion}" "/usr/$(get_libdir)/${solib}.${somajor}"
|
|
done
|
|
}
|