diff options
author | Adel KARA SLIMANE <adel.ks@zegrapher.com> | 2021-12-11 02:09:15 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-02-19 05:14:08 +0000 |
commit | e63dabbf02ec8e07a4ac2d2771092ff668be2687 (patch) | |
tree | f86bb64fee505e11feb131fe96d979ee96595da1 /media-video | |
parent | media-libs/amdgpu-pro-vulkan: new package (diff) | |
download | gentoo-e63dabbf02ec8e07a4ac2d2771092ff668be2687.tar.gz gentoo-e63dabbf02ec8e07a4ac2d2771092ff668be2687.tar.bz2 gentoo-e63dabbf02ec8e07a4ac2d2771092ff668be2687.zip |
media-video/amdgpu-pro-amf: new package
Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
Closes: https://github.com/gentoo/gentoo/pull/23248
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/amdgpu-pro-amf/Manifest | 1 | ||||
-rw-r--r-- | media-video/amdgpu-pro-amf/amdgpu-pro-amf-1.4.24.1376756.ebuild | 56 | ||||
-rw-r--r-- | media-video/amdgpu-pro-amf/metadata.xml | 12 |
3 files changed, 69 insertions, 0 deletions
diff --git a/media-video/amdgpu-pro-amf/Manifest b/media-video/amdgpu-pro-amf/Manifest new file mode 100644 index 000000000000..1f2a3c75799c --- /dev/null +++ b/media-video/amdgpu-pro-amf/Manifest @@ -0,0 +1 @@ +DIST amdgpu-pro-amf-1.4.24.1376756.deb 1302168 BLAKE2B 706528317c317e0319e80decc8a9a59a0c55fed8c4c43c701ba93a2a503fbf5f2ee9fb44cfeb5bd582b013ebb8961514cb5b9faead8f24fdfe2b205f7d2dc656 SHA512 77740014e6bc2c91e822261e4fa247ac0e49747d6ff8af0c3b3046ec993c7c99621b55639ef18582021389a329e52ccc59edb85eb29d9e6a81da6986a487ec3e diff --git a/media-video/amdgpu-pro-amf/amdgpu-pro-amf-1.4.24.1376756.ebuild b/media-video/amdgpu-pro-amf/amdgpu-pro-amf-1.4.24.1376756.ebuild new file mode 100644 index 000000000000..0be0c41d4a6b --- /dev/null +++ b/media-video/amdgpu-pro-amf/amdgpu-pro-amf-1.4.24.1376756.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2022 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" + +PRO_VULKAN_PKG_VER="21.50.1" + +MY_LINK="https://repo.radeon.com/amdgpu/${PRO_VULKAN_PKG_VER}/ubuntu/pool/proprietary/a/${MY_PN}" + +DESCRIPTION="AMD's closed source Advanced Media Framework (AMF) driver" +HOMEPAGE="https://www.amd.com/en/support" +SRC_URI="${MY_LINK}/${MY_PN}_${MY_PV_FULL}_amd64.deb -> ${P}.deb" + +S="${WORKDIR}" + +RESTRICT="bindist mirror" + +LICENSE="AMD-GPU-PRO-EULA" +SLOT="0" +KEYWORDS="-* ~amd64" + +RDEPEND=" + media-libs/libglvnd + x11-libs/libX11 +" + +QA_PREBUILT=" + usr/lib64/libamfrt64.so* +" + +src_unpack() { + mkdir "${S}/${PN}-amd64" || die + cd "${S}/${PN}-amd64" || die + unpack_deb "${DISTDIR}/${P}.deb" +} + +src_install() { + insinto "/usr/$(get_libdir)" + + # AMF + 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" + dosym "libamfrt64.so.${MY_PV}" "/usr/$(get_libdir)/libamfrt64.so.1" +} diff --git a/media-video/amdgpu-pro-amf/metadata.xml b/media-video/amdgpu-pro-amf/metadata.xml new file mode 100644 index 000000000000..03e31d9fc34c --- /dev/null +++ b/media-video/amdgpu-pro-amf/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <name>Adel Kara Slimane</name> + <email>adel.ks@zegrapher.com</email> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> +</pkgmetadata> |