media-libs/libaom: fix hardcoded vmaf model path

Signed-off-by: Paul Zander <negril.nx+gentoo@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@gentoo.org>
This commit is contained in:
Paul Zander 2025-08-09 16:11:04 +02:00 committed by Sam James
parent 728b130421
commit 21b3b27891
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 16 additions and 0 deletions

View File

@ -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).

View File

@ -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).