summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdel KARA SLIMANE <adel.ks@zegrapher.com>2024-09-23 00:10:12 +0200
committerJoonas Niilola <juippis@gentoo.org>2024-09-26 10:14:16 +0300
commit0f9c80dbb7d2d4e9b5a1ab120485dd5a9108b7d8 (patch)
tree09c56eb2f171b7d50f349d0aa926b5c37faace91 /media-video
parentmedia-libs/amf-headers: add 1.4.34 (diff)
downloadgentoo-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')
-rw-r--r--media-video/amdgpu-pro-amf/Manifest2
-rw-r--r--media-video/amdgpu-pro-amf/amdgpu-pro-amf-1.4.34.1787253.ebuild74
-rw-r--r--media-video/amdgpu-pro-amf/metadata.xml4
3 files changed, 80 insertions, 0 deletions
diff --git a/media-video/amdgpu-pro-amf/Manifest b/media-video/amdgpu-pro-amf/Manifest
index 06cdc29d13c0..917b967e6ec2 100644
--- a/media-video/amdgpu-pro-amf/Manifest
+++ b/media-video/amdgpu-pro-amf/Manifest
@@ -1,3 +1,5 @@
DIST amdgpu-pro-amf-1.4.24.1452059.deb 1307216 BLAKE2B 2ecae593da961e2ff86e807c017a85fda5459458434c491e538f3845a12b0354e65da568550bbdebb47685aad6b7d22607b5f2a281b49718154ead6f92d30058 SHA512 9e3611ad3cad50da4aeeec2b14ad944e2ff7d83b9b104f65acf5e5915f74644fb25f74bfa51a5802dac828fa6c84e01351fbe58f14e1dde1145ba908d6a0445d
DIST amdgpu-pro-amf-1.4.29.1580631.deb 1653852 BLAKE2B 5af5250c07e1b99ae8c1ee28507927e28ee7811929c789b5939a06f631b81155d6795e1392830945bf377f5298a5153e9af3541b2d94533661db394a059fb715 SHA512 07568c5e2f92f10274f7ac25a9d68539b8ce2e5d24c87e9b6a3aec2b8d5a32980c8fd802394dfa6eb421d3321dd60e07929e7f481578d23afcf623c5c9aa2fcc
DIST amdgpu-pro-amf-1.4.33.1718238.deb 3311972 BLAKE2B 549ab0cae83e6014ef79ef70981cdb296cebee1cdeeb7d07258523018d9efa89e174fbabe537896e524b69064806dc12bf24aae29f291d76b5bddb3d2e203639 SHA512 ec5771eebe30d749e5fa753600a9fc02ca97b5023cbbd9f58ffbf657a5f6c4d1e2066da1974ad759c6d9089b233c25654fbb0ec019b34232445f9e4f53720388
+DIST amdgpu-pro-amf-1.4.34.1787253-enc.deb 256792 BLAKE2B 91948608c6f298eb3757d12f3bd60f10c28a81cbfe973d4a025ebb9d1806efbc7d36e647f7fbd7d4d6f5cfdb36f54e21066bdf040762070b5f30ed7bb8f7c739 SHA512 38b0ac921326d9b9aa47c9c281bb8708f6cbc1de82b979eb4491fde3d78205898e638ca4704fa00c1d0b0d73291efc85e818762cd0880d0ce6672172e09402ef
+DIST amdgpu-pro-amf-1.4.34.1787253.deb 3203792 BLAKE2B 3dc70fd3b68f7a2d2ba0706cc2203afeca28b297c2e7c1cd60fdcba373d0b32553e6630c537cbfeed8c849873ebc41cac2868ace9c9fc1764aee03b04f94a0a8 SHA512 d6773b3dfb1176ea14663b4a1f2827fb7b4ce2baeed1a9b457382c5cbe2536673a9729215586177819be26e8272c8db22a663880a0366194057bb957aa6f8e76
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"
+}
diff --git a/media-video/amdgpu-pro-amf/metadata.xml b/media-video/amdgpu-pro-amf/metadata.xml
index 6d07c8aa6259..fbd4c6cd9424 100644
--- a/media-video/amdgpu-pro-amf/metadata.xml
+++ b/media-video/amdgpu-pro-amf/metadata.xml
@@ -9,4 +9,8 @@
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
+ <use>
+ <flag name="radv">Pull media-libs/amdgpu-pro-vulkan as dependency</flag>
+ <flag name="pro">Pull media-libs/mesa as dependency</flag>
+ </use>
</pkgmetadata>