aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxi
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/libxi
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libxi')
-rw-r--r--vcpkg/ports/libxi/portfile.cmake35
-rw-r--r--vcpkg/ports/libxi/vcpkg.json11
2 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/libxi/portfile.cmake b/vcpkg/ports/libxi/portfile.cmake
new file mode 100644
index 0000000..7f7676b
--- /dev/null
+++ b/vcpkg/ports/libxi/portfile.cmake
@@ -0,0 +1,35 @@
+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/libxi
+ REF f24d7f43ab4d97203e60677a3d42e11dbc80c8b4 # 1.8
+ SHA512 bc98d03f1c53f26d0c2063de5a0b58951c9db44dfcfb44519efca89f20c8f8f50599c264d11546357164430f3486dd263742657de426cc7fbb3a306be0bc8866
+ 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/libxi/vcpkg.json b/vcpkg/ports/libxi/vcpkg.json
new file mode 100644
index 0000000..1993f6c
--- /dev/null
+++ b/vcpkg/ports/libxi/vcpkg.json
@@ -0,0 +1,11 @@
+{
+ "name": "libxi",
+ "version": "1.8",
+ "description": "Xlib library for the X Input Extension",
+ "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxi",
+ "license": null,
+ "dependencies": [
+ "libxext",
+ "libxfixes"
+ ]
+}