aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxdmcp
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/libxdmcp
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libxdmcp')
-rw-r--r--vcpkg/ports/libxdmcp/configure.ac.patch13
-rw-r--r--vcpkg/ports/libxdmcp/portfile.cmake36
-rw-r--r--vcpkg/ports/libxdmcp/vcpkg.json12
3 files changed, 61 insertions, 0 deletions
diff --git a/vcpkg/ports/libxdmcp/configure.ac.patch b/vcpkg/ports/libxdmcp/configure.ac.patch
new file mode 100644
index 0000000..8a8f474
--- /dev/null
+++ b/vcpkg/ports/libxdmcp/configure.ac.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.ac b/configure.ac
+index 7aedf3424..43ab8dbaf 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -56,7 +56,7 @@ AC_PROG_LN_S
+ AC_SEARCH_LIBS([recvfrom],[socket])
+
+ case $host_os in
+- *mingw*)
++ *mingw* | *msys* )
+ AC_CHECK_LIB([ws2_32],[main])
+ ;;
+ *)
diff --git a/vcpkg/ports/libxdmcp/portfile.cmake b/vcpkg/ports/libxdmcp/portfile.cmake
new file mode 100644
index 0000000..a48b84d
--- /dev/null
+++ b/vcpkg/ports/libxdmcp/portfile.cmake
@@ -0,0 +1,36 @@
+#SET(VCPKG_POLICY_DLLS_WITHOUT_LIBS enabled) # this is a lie but the lib has a different name than the dll
+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/libxdmcp
+ REF 618b3ba5f826d930df2ca6a6a0ce212fa75cef42 # 1.1.3
+ SHA512 f8b035fa95f6948cc6bac69bfcc33498cd65db73c62aadee714bce371d61c50f283c45d1a3f43397a96b3c956b41dfe94355e94e33764760b29bf98ba8dfebe2
+ HEAD_REF master
+ PATCHES configure.ac.patch
+)
+
+set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
+if(VCPKG_TARGET_IS_WINDOWS)
+ set(OPTIONS --disable-dependency-tracking)
+ string(APPEND VCPKG_C_FLAGS "/showIncludes ")
+ string(APPEND VCPKG_CXX_FLAGS "/showIncludes ")
+endif()
+vcpkg_configure_make(
+ SOURCE_PATH ${SOURCE_PATH}
+ AUTOCONFIG
+ OPTIONS ${OPTIONS} --enable-unit-tests=no
+)
+
+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/libxdmcp/vcpkg.json b/vcpkg/ports/libxdmcp/vcpkg.json
new file mode 100644
index 0000000..a2a977c
--- /dev/null
+++ b/vcpkg/ports/libxdmcp/vcpkg.json
@@ -0,0 +1,12 @@
+{
+ "name": "libxdmcp",
+ "version": "1.1.3",
+ "description": "X Display Manager Control Protocol library",
+ "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxdmcp",
+ "license": "MIT-open-group",
+ "dependencies": [
+ "bzip2",
+ "xorg-macros",
+ "xproto"
+ ]
+}