Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libvmaf] New port #41152

Merged
merged 8 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ports/libvmaf/no-tools.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Skip tools subdir in libvmaf to build only the library.
--- a/libvmaf/meson.build
+++ b/libvmaf/meson.build
@@ -51,6 +51,5 @@ endif

subdir('include')
subdir('src')
-subdir('tools')
subdir('doc')
subdir('test')
26 changes: 26 additions & 0 deletions ports/libvmaf/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Netflix/vmaf
REF "v${VERSION}"
SHA512 9e356bb274ce7d5d85a64d2a1a122ea9d267809edd83bb6e663fb348a1a46355882eb9044982bf679f03df7f93c6f66c9b0d9a94661979b2c722db30b21c4f32
HEAD_REF master
PATCHES
no-tools.patch
)

vcpkg_find_acquire_program(NASM)
get_filename_component(NASM_PATH "${NASM}" DIRECTORY)
vcpkg_add_to_path("${NASM_PATH}")

vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}/libvmaf"
OPTIONS
-Denable_tests=false
-Denable_docs=false
)

vcpkg_install_meson()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
15 changes: 15 additions & 0 deletions ports/libvmaf/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "libvmaf",
"version": "3.0.0",
"port-version": 1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"port-version": 1,

New port doesn't need add port-version.

"description": "libvmaf is a library developed by Netflix to compute the VMAF (Video Multi-Method Assessment Fusion) metric.",
"homepage": "https://github.com/Netflix/vmaf",
"license": "BSD-2-Clause-Patent",
"supports": "!windows",
"dependencies": [
{
"name": "vcpkg-tool-meson",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5260,6 +5260,10 @@
"baseline": "20231127",
"port-version": 0
},
"libvmaf": {
"baseline": "3.0.0",
"port-version": 1
},
"libvmdk": {
"baseline": "20221124",
"port-version": 1
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/libvmaf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "0dd987af51a76e8b775c3e73dbb38f21a4d69b65",
"version": "3.0.0",
"port-version": 1
}
]
}
Loading