aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/xcb-util-errors
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/xcb-util-errors
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/xcb-util-errors')
-rw-r--r--vcpkg/ports/xcb-util-errors/portfile.cmake34
-rw-r--r--vcpkg/ports/xcb-util-errors/vcpkg.json12
2 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/xcb-util-errors/portfile.cmake b/vcpkg/ports/xcb-util-errors/portfile.cmake
new file mode 100644
index 0000000..813ed1f
--- /dev/null
+++ b/vcpkg/ports/xcb-util-errors/portfile.cmake
@@ -0,0 +1,34 @@
+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)
+ return()
+endif()
+
+vcpkg_from_gitlab(
+ GITLAB_URL https://gitlab.freedesktop.org/xorg
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO lib/libxcb-errors
+ REF 517dd82c079de762a7426f20166a44f11e8d38c5 #1.0.1
+ SHA512 391f6bc9452bf4d6a3f1fa69232cdbef43f9fcd339b8d1965132a3b227ed7ebcbaad553fe64d42bc525811caedf3ff9d5bec108f6ac2efd5a014f75fb35cbf85
+ HEAD_REF master
+)
+file(TOUCH "${SOURCE_PATH}/m4/dummy")
+set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
+
+vcpkg_find_acquire_program(PYTHON3)
+get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
+vcpkg_add_to_path("${PYTHON3_DIR}")
+
+vcpkg_configure_make(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTOCONFIG
+ COPY_SOURCE
+)
+
+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)
diff --git a/vcpkg/ports/xcb-util-errors/vcpkg.json b/vcpkg/ports/xcb-util-errors/vcpkg.json
new file mode 100644
index 0000000..57ea925
--- /dev/null
+++ b/vcpkg/ports/xcb-util-errors/vcpkg.json
@@ -0,0 +1,12 @@
+{
+ "name": "xcb-util-errors",
+ "version": "1.0.1",
+ "port-version": 1,
+ "description": "XCB utility library that gives human readable names to error, event, & request codes.",
+ "homepage": "https://xcb.freedesktop.org/",
+ "license": null,
+ "dependencies": [
+ "xcb",
+ "xcb-util"
+ ]
+}