1 # Copyright 1999-2022 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 MY_PV_HIGH
=$
(ver_cut
1)
9 MY_PV_MIDDLE
=$
(ver_cut
2)
10 MY_PV_LOW
=$
(ver_cut
3)
11 MY_PV_REV
=$
(ver_cut
4)
13 MY_PV
="${MY_PV_HIGH}.${MY_PV_MIDDLE}.${MY_PV_LOW}"
14 MY_PV_FULL
="${MY_PV}-${MY_PV_REV}"
15 MY_PN
="amf-amdgpu-pro"
17 PRO_VULKAN_PKG_VER
="5.4.3"
20 DESCRIPTION
="AMD's closed source Advanced Media Framework (AMF) driver"
21 HOMEPAGE
="https://www.amd.com/en/support"
22 SRC_URI
="https://repo.radeon.com/amdgpu/${PRO_VULKAN_PKG_VER}/ubuntu/pool/proprietary/a/${MY_PN}/${MY_PN}_${MY_PV_FULL}.${UBUNTU_VER}_amd64.deb -> ${P}.deb"
26 RESTRICT
="bindist mirror"
28 LICENSE
="AMD-GPU-PRO-EULA"
33 media-libs/amdgpu-pro-vulkan
40 usr/lib64/libamfrt64.so*
44 mkdir
"${S}/${PN}-amd64" || die
45 cd "${S}/${PN}-amd64" || die
46 unpack_deb
"${DISTDIR}/${P}.deb"
50 insinto
"/usr/$(get_libdir)"
53 doins
"${S}/${PN}-amd64/opt/amdgpu-pro/lib/x86_64-linux-gnu/libamfrt64.so.${MY_PV}"
54 dosym
"libamfrt64.so.${MY_PV}" "/usr/$(get_libdir)/libamfrt64.so.1"
55 dosym
"libamfrt64.so.${MY_PV}" "/usr/$(get_libdir)/libamfrt64.so"