aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxfixes
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libxfixes')
-rw-r--r--vcpkg/ports/libxfixes/portfile.cmake29
-rw-r--r--vcpkg/ports/libxfixes/vcpkg.json12
2 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/libxfixes/portfile.cmake b/vcpkg/ports/libxfixes/portfile.cmake
new file mode 100644
index 0000000..0441be9
--- /dev/null
+++ b/vcpkg/ports/libxfixes/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/libxfixes
+ REF 6fe3bd64dd82f704ed91478acb4c99ab5c00be16 # 6.0.0
+ SHA512 429e65f4183d92cee1380273a23be9bf157bdd19e01e164d8b9058a2a54601af8f4556888302a2cad062c2cfc4b3a37d6b8f5b7ac6bdd6b5c069c7b791422201
+ 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()
diff --git a/vcpkg/ports/libxfixes/vcpkg.json b/vcpkg/ports/libxfixes/vcpkg.json
new file mode 100644
index 0000000..a079b22
--- /dev/null
+++ b/vcpkg/ports/libxfixes/vcpkg.json
@@ -0,0 +1,12 @@
+{
+ "name": "libxfixes",
+ "version": "6.0.0",
+ "description": "Xlib-based library for the XFIXES Extension",
+ "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxfixes",
+ "license": null,
+ "dependencies": [
+ "libx11",
+ "xorg-macros",
+ "xproto"
+ ]
+}