aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxv
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/libxv
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libxv')
-rw-r--r--vcpkg/ports/libxv/portfile.cmake36
-rw-r--r--vcpkg/ports/libxv/vcpkg.json14
2 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/libxv/portfile.cmake b/vcpkg/ports/libxv/portfile.cmake
new file mode 100644
index 0000000..aed2c6a
--- /dev/null
+++ b/vcpkg/ports/libxv/portfile.cmake
@@ -0,0 +1,36 @@
+set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
+if(NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS)
+ message(STATUS "Utils and libraries provided by '${PORT}' should be provided by your system! Install the required packages or force vcpkg libraries by setting X_VCPKG_FORCE_VCPKG_X_LIBRARIES in your triplet!")
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+else()
+
+vcpkg_from_gitlab(
+ GITLAB_URL https://gitlab.freedesktop.org/xorg
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO lib/libxv
+ REF ef2a282876acc2316d338f8b66344ad5a2947057 # 1.0.11
+ SHA512 0c97de51c22791cd6ea351f3b0ab8261b68d1283bcdc1784f9cc601fe54ef0c43f668e5bb9d8929c3ff8828f14fa48a8653566742d6a93455fe908d026517839
+ HEAD_REF master
+)
+
+set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
+
+if (VCPKG_CROSSCOMPILING)
+ list(APPEND OPTIONS --enable-malloc0returnsnull)
+endif()
+
+vcpkg_configure_make(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTOCONFIG
+ OPTIONS ${OPTIONS}
+)
+
+vcpkg_install_make()
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+endif()
diff --git a/vcpkg/ports/libxv/vcpkg.json b/vcpkg/ports/libxv/vcpkg.json
new file mode 100644
index 0000000..cf2b636
--- /dev/null
+++ b/vcpkg/ports/libxv/vcpkg.json
@@ -0,0 +1,14 @@
+{
+ "name": "libxv",
+ "version": "1.0.11",
+ "description": "Xlib-based library for the X Video (Xv) extension to the X Window System",
+ "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxv",
+ "license": null,
+ "dependencies": [
+ "bzip2",
+ "libx11",
+ "libxext",
+ "xorg-macros",
+ "xproto"
+ ]
+}