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

[libva] add new port #43405

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 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
23 changes: 23 additions & 0 deletions ports/libva/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO intel/libva
REF "${VERSION}"
SHA512 cd633e5e09eac1ed10f1fc12b0f664f836e0eda9e47c17e1295b746cfd643a18fd0564a06a148ced3cf1e2321aa4d21275918bcf8c717d3981e98a598179f370
HEAD_REF master
)

set(options "")

vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${options}
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
OPTIONS ${options}

Copy link
Contributor

Choose a reason for hiding this comment

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

If there is no OPTIONS, please remove this line and set(options "").

)

vcpkg_install_meson()
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
n0f4ph4mst3r marked this conversation as resolved.
Show resolved Hide resolved
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
n0f4ph4mst3r marked this conversation as resolved.
Show resolved Hide resolved
16 changes: 16 additions & 0 deletions ports/libva/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
The package libva provides pkg-config modules:

# Userspace Video Acceleration (VA) DRM interface
libva-drm

# Userspace Video Acceleration (VA) GLX interface
libva-glx

# Userspace Video Acceleration (VA) Wayland interface
libva-wayland

# Userspace Video Acceleration (VA) X11 interface
libva-x11

# Userspace Video Acceleration (VA) core interface
libva
13 changes: 13 additions & 0 deletions ports/libva/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "libva",
"version": "2.22.0",
"description": "Libva is an implementation for VA-API (Video Acceleration API)",
"homepage": "https://github.com/intel/libva",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-tool-meson",
"host": true
}
]
}
9 changes: 9 additions & 0 deletions versions/l-/libva.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "20b00e055d2ac462f1a9a2cc065650610f7abf86",
"version": "2.22.0",
"port-version": 0
}
]
}
Loading