aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxdamage
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libxdamage')
-rw-r--r--vcpkg/ports/libxdamage/portfile.cmake30
-rw-r--r--vcpkg/ports/libxdamage/vcpkg.json14
2 files changed, 44 insertions, 0 deletions
diff --git a/vcpkg/ports/libxdamage/portfile.cmake b/vcpkg/ports/libxdamage/portfile.cmake
new file mode 100644
index 0000000..44ed2a4
--- /dev/null
+++ b/vcpkg/ports/libxdamage/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/libxdamage
+ REF 977b04cd69738806e0b48fcf5c725763d065f06d # 1.1.5
+ SHA512 79c3a4c63f6c50c39d324183b98ad7e70235aed1c8385acf2f593739c71e7929119448be3e15dffd276b32e4fbb056508deeb35f450f74b85c101047f68d4339
+ HEAD_REF master # branch name
+)
+
+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/libxdamage/vcpkg.json b/vcpkg/ports/libxdamage/vcpkg.json
new file mode 100644
index 0000000..dc86f1e
--- /dev/null
+++ b/vcpkg/ports/libxdamage/vcpkg.json
@@ -0,0 +1,14 @@
+{
+ "name": "libxdamage",
+ "version": "1.1.5",
+ "description": "X Damage Extension library",
+ "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxdamage",
+ "license": null,
+ "dependencies": [
+ "bzip2",
+ "libx11",
+ "libxfixes",
+ "xorg-macros",
+ "xproto"
+ ]
+}