mirror of https://github.com/microsoft/vcpkg.git
[libva] add new port (#46648)
Co-authored-by: honglongyu <honglongyu@sansi.com>
This commit is contained in:
parent
72be04b2cd
commit
7087dcfba6
|
|
@ -0,0 +1,56 @@
|
|||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO intel/libva
|
||||
REF "${VERSION}"
|
||||
SHA512 cd633e5e09eac1ed10f1fc12b0f664f836e0eda9e47c17e1295b746cfd643a18fd0564a06a148ced3cf1e2321aa4d21275918bcf8c717d3981e98a598179f370
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
x11 WITH_X11
|
||||
wayland WITH_WAYLAND
|
||||
glx WITH_GLX
|
||||
)
|
||||
|
||||
message(WARNING "You will need to install libdrm dependencies to use this port:\nsudo apt install libdrm-dev\n")
|
||||
|
||||
if ("x11" IN_LIST FEATURES)
|
||||
message(WARNING "You will need to install Xorg dependencies to use feature x11:\nsudo apt install libx11-dev libxext-dev libxfixes-dev libx11-xcb-dev libxcb-dri3-dev\n")
|
||||
endif()
|
||||
if ("wayland" IN_LIST FEATURES)
|
||||
message(WARNING "You will need to install Wayland dependencies to use feature wayland:\nsudo apt install libwayland-dev\n")
|
||||
endif()
|
||||
if ("glx" IN_LIST FEATURES)
|
||||
message(WARNING "You will need to install GLX dependencies to use feature glx:\nsudo apt install libglu1-mesa-dev\n")
|
||||
endif()
|
||||
if(WITH_X11)
|
||||
list(APPEND options -Dwith_x11=yes)
|
||||
else()
|
||||
list(APPEND options -Dwith_x11=no)
|
||||
endif()
|
||||
|
||||
if(WITH_WAYLAND)
|
||||
list(APPEND options -Dwith_wayland=yes)
|
||||
else()
|
||||
list(APPEND options -Dwith_wayland=no)
|
||||
endif()
|
||||
|
||||
if(WITH_GLX)
|
||||
list(APPEND options -Dwith_glx=yes)
|
||||
else()
|
||||
list(APPEND options -Dwith_glx=no)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_meson(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS ${options}
|
||||
)
|
||||
|
||||
vcpkg_install_meson()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"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",
|
||||
"supports": "linux",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-tool-meson",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"glx": {
|
||||
"description": "Build with GLX support",
|
||||
"supports": "linux",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "libva",
|
||||
"features": [
|
||||
"x11"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"wayland": {
|
||||
"description": "Build with Wayland support",
|
||||
"supports": "linux"
|
||||
},
|
||||
"x11": {
|
||||
"description": "Build with X11 support",
|
||||
"supports": "linux"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5568,6 +5568,10 @@
|
|||
"baseline": "0.0.7",
|
||||
"port-version": 1
|
||||
},
|
||||
"libva": {
|
||||
"baseline": "2.22.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"libvault": {
|
||||
"baseline": "0.63.0",
|
||||
"port-version": 0
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "cfe6693c4b773959c98e2e77f4928f20563f9f39",
|
||||
"version": "2.22.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue