diff options
Diffstat (limited to 'vcpkg/ports/xcb-util')
| -rw-r--r-- | vcpkg/ports/xcb-util/portfile.cmake | 31 | ||||
| -rw-r--r-- | vcpkg/ports/xcb-util/ssize.patch | 15 | ||||
| -rw-r--r-- | vcpkg/ports/xcb-util/vcpkg.json | 12 |
3 files changed, 58 insertions, 0 deletions
diff --git a/vcpkg/ports/xcb-util/portfile.cmake b/vcpkg/ports/xcb-util/portfile.cmake new file mode 100644 index 0000000..f7070a4 --- /dev/null +++ b/vcpkg/ports/xcb-util/portfile.cmake @@ -0,0 +1,31 @@ +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-util
+ REF acf790d7752f36e450d476ad79807d4012ec863b #v0.4.0
+ SHA512 d1ef49c1e16b7643a7afeca1495a96ab9ab9c537ea7669a13b3adda400a204626714afc8ed7fcc3d7532ebe1f89a3aa31e3ca0ee9617330d4df5b65b0c8e6dbc
+ HEAD_REF master
+ PATCHES ssize.patch
+)
+
+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-util/ssize.patch b/vcpkg/ports/xcb-util/ssize.patch new file mode 100644 index 0000000..3b32713 --- /dev/null +++ b/vcpkg/ports/xcb-util/ssize.patch @@ -0,0 +1,15 @@ +diff --git a/src/event.c b/src/event.c +index 88058c4e7..3bc0d635f 100644 +--- a/src/event.c ++++ b/src/event.c +@@ -38,6 +38,10 @@ + + #include <sys/types.h> + ++#if !defined ssize_t && defined(_WIN32) ++ #define ssize_t ptrdiff_t ++#endif ++ + #define ssizeof(foo) (ssize_t)sizeof(foo) + #define countof(foo) (ssizeof(foo) / ssizeof(foo[0])) + diff --git a/vcpkg/ports/xcb-util/vcpkg.json b/vcpkg/ports/xcb-util/vcpkg.json new file mode 100644 index 0000000..5ed3da5 --- /dev/null +++ b/vcpkg/ports/xcb-util/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "xcb-util", + "version": "0.4.0", + "description": "C interface to the X Window System protocol, which replaces the traditional Xlib interface.", + "homepage": "https://xcb.freedesktop.org/", + "license": null, + "dependencies": [ + "xcb", + "xcb-util-m4", + "xorg-macros" + ] +} |