aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxcomposite
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/libxcomposite
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libxcomposite')
-rw-r--r--vcpkg/ports/libxcomposite/portfile.cmake30
-rw-r--r--vcpkg/ports/libxcomposite/vcpkg.json14
2 files changed, 44 insertions, 0 deletions
diff --git a/vcpkg/ports/libxcomposite/portfile.cmake b/vcpkg/ports/libxcomposite/portfile.cmake
new file mode 100644
index 0000000..be8413e
--- /dev/null
+++ b/vcpkg/ports/libxcomposite/portfile.cmake
@@ -0,0 +1,30 @@
+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/libxcomposite
+ REF fd7d02cc014ac9bf5bb7e68b66102ea36a76a59a # 0.4.5
+ SHA512 68ee9d61d364816bf190db010f624312e9daf8d6b411dc209486ac0c7d92b3c75ca5a2650bc085b0c444bec1adfefca593e1d9e6fda4ba12ab5f12ebe7fd6ade
+ HEAD_REF master
+)
+
+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")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+endif() \ No newline at end of file
diff --git a/vcpkg/ports/libxcomposite/vcpkg.json b/vcpkg/ports/libxcomposite/vcpkg.json
new file mode 100644
index 0000000..69ff6b2
--- /dev/null
+++ b/vcpkg/ports/libxcomposite/vcpkg.json
@@ -0,0 +1,14 @@
+{
+ "name": "libxcomposite",
+ "version": "0.4.5",
+ "description": "Xlib-based client library for the Composite extension to the X11 protocol",
+ "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxcomposite",
+ "license": null,
+ "dependencies": [
+ "bzip2",
+ "libx11",
+ "libxfixes",
+ "xorg-macros",
+ "xproto"
+ ]
+}