diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/xcb-keysyms | |
Diffstat (limited to 'vcpkg/ports/xcb-keysyms')
| -rw-r--r-- | vcpkg/ports/xcb-keysyms/portfile.cmake | 29 | ||||
| -rw-r--r-- | vcpkg/ports/xcb-keysyms/vcpkg.json | 13 |
2 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/xcb-keysyms/portfile.cmake b/vcpkg/ports/xcb-keysyms/portfile.cmake new file mode 100644 index 0000000..a624dac --- /dev/null +++ b/vcpkg/ports/xcb-keysyms/portfile.cmake @@ -0,0 +1,29 @@ +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/libxcb-keysyms
+ REF 85e093f14b0ade2956e0a5d1c37cfde06d8b1ba6 #v 0.4.1
+ SHA512 cee1224ba673c637d20387d22d445be92970dd1b169247550befe64908e1b7f8cc4311018b7e7854e46ccaa62b8c6258293dcb144a94e320bee5a1e060b194f1
+ HEAD_REF master
+)
+file(TOUCH "${SOURCE_PATH}/m4/dummy")
+set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
+
+vcpkg_configure_make(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTOCONFIG
+)
+
+vcpkg_install_make()
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+endif()
diff --git a/vcpkg/ports/xcb-keysyms/vcpkg.json b/vcpkg/ports/xcb-keysyms/vcpkg.json new file mode 100644 index 0000000..a5eb8ac --- /dev/null +++ b/vcpkg/ports/xcb-keysyms/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "xcb-keysyms", + "version": "0.4.1", + "description": "Standard X key constants and conversion to/from keycodes", + "homepage": "https://xcb.freedesktop.org/", + "license": null, + "dependencies": [ + "bzip2", + "xcb", + "xorg-macros", + "xproto" + ] +} |