aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libva
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libva
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libva')
-rw-r--r--vcpkg/ports/libva/portfile.cmake56
-rw-r--r--vcpkg/ports/libva/vcpkg.json36
2 files changed, 92 insertions, 0 deletions
diff --git a/vcpkg/ports/libva/portfile.cmake b/vcpkg/ports/libva/portfile.cmake
new file mode 100644
index 0000000..7aa6bf7
--- /dev/null
+++ b/vcpkg/ports/libva/portfile.cmake
@@ -0,0 +1,56 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO intel/libva
+ REF "${VERSION}"
+ SHA512 85f4aa6b6e9173d407ca3987745f985d0f898091f14c947a928b6db662a03b5cfe82483901690d81618697fe17a2c41ff6694a611f3654d5ab06840da987e40d
+ 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")
diff --git a/vcpkg/ports/libva/vcpkg.json b/vcpkg/ports/libva/vcpkg.json
new file mode 100644
index 0000000..3c8e388
--- /dev/null
+++ b/vcpkg/ports/libva/vcpkg.json
@@ -0,0 +1,36 @@
+{
+ "name": "libva",
+ "version": "2.20.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"
+ }
+ }
+}