commit: 4c950fbf2aa814b7238d71904422eb74eb8a6973 Author: Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com> AuthorDate: Wed Jan 28 19:58:16 2026 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Wed Mar 11 02:24:34 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c950fbf
media-libs/amf-headers: add 1.5.0 ffmpeg with amf USE enabled - can only built with amf-headers installed. - can only use AMF ( the 'XXXX_amf' codecs) at runtime when 'amdgpu-pro-amf' is installed (the shared libs it installs are dlopen'ed by ffmpeg) - can only use the AMF features that it has explicit code for Given that amdgpu-pro-amf is on top of that a proprietary binary -> we straight to stable when ver-bumping 'amdgpu-pro-amf' and `amf-headers' Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com> Part-of: https://github.com/gentoo/gentoo/pull/45565 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> media-libs/amf-headers/Manifest | 1 + media-libs/amf-headers/amf-headers-1.5.0.ebuild | 44 +++++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/media-libs/amf-headers/Manifest b/media-libs/amf-headers/Manifest index 97e09909abef..e3753d1b64b6 100644 --- a/media-libs/amf-headers/Manifest +++ b/media-libs/amf-headers/Manifest @@ -3,3 +3,4 @@ DIST amf-headers-1.4.34.tar.gz 164856609 BLAKE2B d406648ffb7a0f7839971324a5fc4e0 DIST amf-headers-1.4.35.tar.gz 179084584 BLAKE2B f8b95e362dd213add36049b9a35502e5450e21988ec6135c19988fd496356c39b0e4884ae554b7393f9c23d5403cd75c917c516fc7bfe7e3bb0433dc34b79f41 SHA512 8a2aa3a358a7c0cfac47f545b8a375de86652d6590795161ad592e49219f54f5ec8dd06d5d48ea9e091fac09e83dbac2044d7ed551898f907cc1b30eea66b7ab DIST amf-headers-1.4.36-r1.tar.gz 178993370 BLAKE2B 849e6c57d8834d8ffd7dc52326f2f4a08c243d6aaf808eae5eae396dcf23b5d832565cc3e178cd442716131e081fe43fbd193e89c63c2ddcc02017bd5a8edd1f SHA512 e19f8f98448412812ea1a4bf677ea501bebfc37871160e1cd0d0d2bf91af22f2115406949b594f405dab153952dcc3cbdc666ef2e6be1b768b803cdde7e23a7b DIST amf-headers-1.4.36.tar.gz 179136336 BLAKE2B dbc9992096c4f72e42bab41d37a596469accdd731a4abe2966b30c32e603559d0e7124873a5cac67e39cb46bfa2e6112a766a8be1f24daf1d0646ca72da11f2f SHA512 589fccabaadb27e48e9adb1d3594db2adadee343c966f8db99ff29a92ec78ae6b0c42f13113a4fc66da0044ee660cfa1caf6867c508af044935646c09f5af50e +DIST amf-headers-1.5.0.tar.gz 178691080 BLAKE2B 9da1d0eaa998905eab92e6fdcf61898b37f7d6be2f844fb61d59005a6866447c044c262dfa106276f97d609029cfa50031e7232fb0773a2c564212922ab6740b SHA512 cd38f4e72b783b93d0b3ec254330a072b8f14102cf4cce0950d84c7a90e1d42dce92d712f1930edb124aac88f02a12174efe7abc58dc1c199d6c5e5c2279de84 diff --git a/media-libs/amf-headers/amf-headers-1.5.0.ebuild b/media-libs/amf-headers/amf-headers-1.5.0.ebuild new file mode 100644 index 000000000000..b797df5c3aef --- /dev/null +++ b/media-libs/amf-headers/amf-headers-1.5.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/GPUOpen-LibrariesAndSDKs/AMF" +else + SRC_URI="https://github.com/GPUOpen-LibrariesAndSDKs/AMF/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + + # ffmpeg with amf USE enabled + # - can only built with amf-headers installed. + # - can only use AMF ( the 'XXXX_amf' codecs) at runtime when 'amdgpu-pro-amf' is installed (the shared libs it installs are dlopen'ed by ffmpeg) + # - can only use the AMF features that it has explicit code for + # Given that amdgpu-pro-amf is on top of that a proprietary binary + # -> we straight to stable when ver-bumping 'amdgpu-pro-amf' and `amf-headers' + KEYWORDS="amd64 ~arm64" +fi + +DESCRIPTION="The Advanced Media Framework (AMF) SDK" +HOMEPAGE="https://github.com/GPUOpen-LibrariesAndSDKs/AMF" + +S="${WORKDIR}/AMF-${PV}" + +LICENSE="MIT" +SLOT="0" + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.36-static-inline.patch +) + +src_unpack() { + default + + if [[ ${PV} == 9999 ]]; then + git-r3_src_unpack + fi +} + +src_install() { + insinto "/usr/include/AMF" + doins -r "${S}/amf/public/include/"* +}
