commit:     21b3b27891b44d1eb6d8a3d8155a18eb9d84badd
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sat Aug  9 14:11:04 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 19 18:02:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21b3b278

media-libs/libaom: fix hardcoded vmaf model path

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44229
Closes: https://github.com/gentoo/gentoo/pull/44229
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/libaom/libaom-3.12.1.ebuild | 8 ++++++++
 media-libs/libaom/libaom-9999.ebuild   | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/media-libs/libaom/libaom-3.12.1.ebuild 
b/media-libs/libaom/libaom-3.12.1.ebuild
index 3dc7bcea99c7..92c9fe550952 100644
--- a/media-libs/libaom/libaom-3.12.1.ebuild
+++ b/media-libs/libaom/libaom-3.12.1.ebuild
@@ -52,6 +52,14 @@ PATCHES=(
        "${FILESDIR}"/${PN}-3.8.1-tests-parallel.patch
 )
 
+src_prepare() {
+       # fix hardcoded path
+       # libvmaf ERROR could not read model from path: 
"/usr/local/share/model/vmaf_v0.6.1.json"
+       sed -e "s#/usr/local/share/model/#${EPREFIX}/usr/share/vmaf/model/#g" 
-i README.md av1/av1_cx_iface.c || die
+
+       cmake_src_prepare
+}
+
 multilib_src_configure() {
        # Follow upstream recommendations in README (bug #921438) and avoid
        # asserts during common use (bug #914614).

diff --git a/media-libs/libaom/libaom-9999.ebuild 
b/media-libs/libaom/libaom-9999.ebuild
index 938ec619b5fe..44eb17f03508 100644
--- a/media-libs/libaom/libaom-9999.ebuild
+++ b/media-libs/libaom/libaom-9999.ebuild
@@ -52,6 +52,14 @@ PATCHES=(
        "${FILESDIR}"/${PN}-3.8.1-tests-parallel.patch
 )
 
+src_prepare() {
+       # fix hardcoded path
+       # libvmaf ERROR could not read model from path: 
"/usr/local/share/model/vmaf_v0.6.1.json"
+       sed -e "s#/usr/local/share/model/#${EPREFIX}/usr/share/vmaf/model/#g" 
-i README.md av1/av1_cx_iface.c || die
+
+       cmake_src_prepare
+}
+
 multilib_src_configure() {
        # Follow upstream recommendations in README (bug #921438) and avoid
        # asserts during common use (bug #914614).

Reply via email to