diff options
author | Adel KARA SLIMANE <adel.ks@zegrapher.com> | 2024-09-23 00:10:12 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-09-26 10:14:16 +0300 |
commit | 0f9c80dbb7d2d4e9b5a1ab120485dd5a9108b7d8 (patch) | |
tree | 09c56eb2f171b7d50f349d0aa926b5c37faace91 /media-video/amdgpu-pro-amf/amdgpu-pro-amf-1.4.34.1787253.ebuild | |
parent | media-libs/amf-headers: add 1.4.34 (diff) | |
download | gentoo-0f9c80dbb7d2d4e9b5a1ab120485dd5a9108b7d8.tar.gz gentoo-0f9c80dbb7d2d4e9b5a1ab120485dd5a9108b7d8.tar.bz2 gentoo-0f9c80dbb7d2d4e9b5a1ab120485dd5a9108b7d8.zip |
media-video/amdgpu-pro-amf: add 1.4.34.1787253
Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-video/amdgpu-pro-amf/amdgpu-pro-amf-1.4.34.1787253.ebuild')
-rw-r--r-- | media-video/amdgpu-pro-amf/amdgpu-pro-amf-1.4.34.1787253.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/media-video/amdgpu-pro-amf/amdgpu-pro-amf-1.4.34.1787253.ebuild b/media-video/amdgpu-pro-amf/amdgpu-pro-amf-1.4.34.1787253.ebuild new file mode 100644 index 000000000000..fa004817f5f6 --- /dev/null +++ b/media-video/amdgpu-pro-amf/amdgpu-pro-amf-1.4.34.1787253.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit unpacker + +MY_PV_HIGH=$(ver_cut 1) +MY_PV_MIDDLE=$(ver_cut 2) +MY_PV_LOW=$(ver_cut 3) +MY_PV_REV=$(ver_cut 4) + +MY_PV="${MY_PV_HIGH}.${MY_PV_MIDDLE}.${MY_PV_LOW}" +MY_PV_FULL="${MY_PV}-${MY_PV_REV}" + +MY_PN="amf-amdgpu-pro" +MY_PN_ENC="libamdenc-amdgpu-pro" + +INTERNAL_VER="6.1.3" +UBUNTU_VER="22.04" + +DESCRIPTION="AMD's closed source Advanced Media Framework (AMF) driver for AMD GPUs" +HOMEPAGE="https://www.amd.com/en/support" + +URI_PREFIX="repo.radeon.com/amdgpu/${INTERNAL_VER}/ubuntu/pool/proprietary" + +SRC_URI=" + https://${URI_PREFIX}/a/${MY_PN}/${MY_PN}_${MY_PV_FULL}.${UBUNTU_VER}_amd64.deb -> ${P}.deb + https://${URI_PREFIX}/liba/${MY_PN_ENC}/${MY_PN_ENC}_1.0-${MY_PV_REV}.${UBUNTU_VER}_amd64.deb -> ${P}-enc.deb +" + +S="${WORKDIR}" + +LICENSE="AMD-GPU-PRO-EULA" +SLOT="0" +KEYWORDS="-* amd64" + +IUSE="+radv pro video_cards_amdgpu" +REQUIRED_USE=" + video_cards_amdgpu + || ( radv pro ) +" + +RESTRICT="bindist mirror" + +RDEPEND=" + media-libs/libglvnd + x11-libs/libdrm + x11-libs/libX11 + pro? ( media-libs/amdgpu-pro-vulkan ) + radv? ( media-libs/mesa[proprietary-codecs,vulkan] ) +" + +QA_PREBUILT=" + usr/lib64/libamfrt64.so* + usr/lib64/libamdenc64.so* +" + +src_unpack() { + mkdir "${S}/${PN}-amd64" || die + cd "${S}/${PN}-amd64" || die + unpack_deb "${DISTDIR}/${P}.deb" + unpack_deb "${DISTDIR}/${P}-enc.deb" +} + +src_install() { + insinto "/usr/$(get_libdir)" + + doins "${S}/${PN}-amd64/opt/amdgpu-pro/lib/x86_64-linux-gnu/libamfrt64.so.${MY_PV}" + dosym "libamfrt64.so.${MY_PV}" "/usr/$(get_libdir)/libamfrt64.so.1" + + doins "${S}/${PN}-amd64/opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdenc64.so.1.0" + doins "${S}/${PN}-amd64/opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdenc64.so" +} |