summaryrefslogtreecommitdiff
path: root/media-libs/libvmaf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-16 12:48:38 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-16 12:48:38 +0000
commitd08ea43e9ada434f42f4be8e115b67ab22ce38af (patch)
treebdc9f44b886b8b704d67c2417df0b7b2055a2976 /media-libs/libvmaf
parent80ea6e6ea87f4685ceff45cd13dd00d644688cac (diff)
gentoo auto-resync : 16:03:2024 - 12:48:37
Diffstat (limited to 'media-libs/libvmaf')
-rw-r--r--media-libs/libvmaf/Manifest2
-rw-r--r--media-libs/libvmaf/libvmaf-3.0.0.ebuild65
2 files changed, 67 insertions, 0 deletions
diff --git a/media-libs/libvmaf/Manifest b/media-libs/libvmaf/Manifest
index 3b20d1618769..18fb2873048e 100644
--- a/media-libs/libvmaf/Manifest
+++ b/media-libs/libvmaf/Manifest
@@ -1,4 +1,6 @@
DIST libvmaf-2.3.1.tar.gz 18388094 BLAKE2B df5af307382eeb215a5f47ea7f78d8d6d8087f238c3f68c2614c0588415dc948cadce5ce2da9b37f6e05a1c695e5437cfb9ca3917fc8346bab6312f0859e90a2 SHA512 4854247bba4b323d08fa9ef4a082a08ed9ab1763dffbe0a1af2b594205e908f47dfb919d03a32e0bce77a40e33e4b2a2594e5d1e8e081379640d6abf279a129b
+DIST libvmaf-3.0.0.tar.gz 18111853 BLAKE2B 8cb53dc2400d34f618ba76588dc77854f695dbd9225c2939e5d266afca1e969b467ee4f55290d87b38d5a144bf30ab695ab7b16633a18f435fd7f36399af2518 SHA512 9e356bb274ce7d5d85a64d2a1a122ea9d267809edd83bb6e663fb348a1a46355882eb9044982bf679f03df7f93c6f66c9b0d9a94661979b2c722db30b21c4f32
EBUILD libvmaf-2.3.1.ebuild 1353 BLAKE2B 06c161d294e8b1ac73e0a669a6ac60f6aaebad54477e68c41380b2ce4feed4649b3011ce512a29642807d328033d9d2c3d49447fab3a86382ff98704c47273f7 SHA512 cb03e4c4d01d83f479691ca5db32b44f2c450e865662d0507996a9b0846bb92cc038f643873c8ada3328ea5ea0ce7cc1e87c20103d397579c9b6da8c32bc0ba8
+EBUILD libvmaf-3.0.0.ebuild 1355 BLAKE2B 39a06f710b1432587374e36026f4acc78a2d443f2210f1ae55ad33b04e5755e92a373ccef77b283a6fe43d4e32bcdd53d034e841c4b2061ec52942ea4288d9ec SHA512 12d72ae19f77c9a2ce45834813ec7850e8943514328accb90af092d925ef8a31e32acedf6aa4e7093a7b31b264f0f4d1ed5ec5266d6a4a8e6db75acbbe6a3b14
EBUILD libvmaf-9999.ebuild 1423 BLAKE2B c0d2931e440404f49dc02bebb9995e4a8167c39fcaa02861a906611a60797940e2cb4e182f118436820d47b2e8d1d0b3d891a8684fee8ac61cb6a40aab8349f7 SHA512 7057aa700b4d8508946bba7a8e273adcffe85ad7d8c514cb61b02defc71930909212a66b45f33bff25d48321eae2fbe841b637181c4f4f69db725193459b9dc1
MISC metadata.xml 857 BLAKE2B 418ddef5fe12e5d06e978bedb739e26e119939d056c03761a3493851a69c7bfd110fe7cb31505fa3bd52104ec11045b05eae84fd2f5558007779b7bf776ef16a SHA512 52fd19cf32b9b24ae427ff9a1254ac0b514de79df6e7a47f638c304bbaab799294a29d9e7e8467c2fdb1ab0a208e3704f95c8a276fde9ad176c38e2786a962b3
diff --git a/media-libs/libvmaf/libvmaf-3.0.0.ebuild b/media-libs/libvmaf/libvmaf-3.0.0.ebuild
new file mode 100644
index 000000000000..62a0526f3947
--- /dev/null
+++ b/media-libs/libvmaf/libvmaf-3.0.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson-multilib flag-o-matic
+
+DESCRIPTION="C libary for Netflix's Perceptual video quality assessment"
+HOMEPAGE="https://github.com/Netflix/vmaf"
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/Netflix/vmaf.git"
+else
+ SRC_URI="
+ https://github.com/Netflix/vmaf/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ KEYWORDS="~amd64 ~loong ~riscv ~x86"
+fi
+
+LICENSE="BSD-2-with-patent"
+SLOT="0/3"
+IUSE="+embed-models test"
+
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ dev-lang/nasm
+ embed-models? ( app-editors/vim-core )
+"
+
+RDEPEND="${BDEPEND}"
+
+S="${WORKDIR}/vmaf-${PV}"
+
+src_prepare() {
+ default
+
+ # Workaround for https://bugs.gentoo.org/837221
+ # The paths in the tests are hard coded to look for the model folder as "../../model"
+ sed -i "s|\"../../model|\"../vmaf-${PV}/model|g" "${S}"/libvmaf/test/* || die
+}
+
+multilib_src_configure() {
+ local emesonargs=(
+ $(meson_use embed-models built_in_models)
+ $(meson_use test enable_tests)
+ )
+
+ EMESON_SOURCE="${S}/libvmaf"
+ filter-lto
+ meson_src_configure
+}
+
+multilib_src_install() {
+ meson_src_install
+ find "${D}" -name '*.la' -delete -o -name '*.a' -delete || die
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ insinto "/usr/share/vmaf"
+ doins -r "${S}/model"
+}