diff options
Diffstat (limited to 'vcpkg/ports/libxtst')
| -rw-r--r-- | vcpkg/ports/libxtst/portfile.cmake | 30 | ||||
| -rw-r--r-- | vcpkg/ports/libxtst/vcpkg.json | 13 |
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/libxtst/portfile.cmake b/vcpkg/ports/libxtst/portfile.cmake new file mode 100644 index 0000000..b23b6ec --- /dev/null +++ b/vcpkg/ports/libxtst/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/libxtst
+ REF 99b89c3bcb0ebb0b6dd86bfdc9d276715eaea889
+ SHA512 6479294057c73e91a086891e461e98d2717ae1fbe746cd74c9d13036a59bce931b8b0d5293d3c5ab4feeea426f2297647335179997e06a040b847697c7557199
+ 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/libxtst/vcpkg.json b/vcpkg/ports/libxtst/vcpkg.json new file mode 100644 index 0000000..796f433 --- /dev/null +++ b/vcpkg/ports/libxtst/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "libxtst", + "version": "1.2.4", + "description": "Xlib-based library for XTEST & RECORD extensions", + "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxtst", + "license": null, + "dependencies": [ + "libx11", + "libxext", + "libxi", + "xproto" + ] +} |