diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libxpresent | |
Diffstat (limited to 'vcpkg/ports/libxpresent')
| -rw-r--r-- | vcpkg/ports/libxpresent/portfile.cmake | 31 | ||||
| -rw-r--r-- | vcpkg/ports/libxpresent/vcpkg.json | 16 |
2 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/libxpresent/portfile.cmake b/vcpkg/ports/libxpresent/portfile.cmake new file mode 100644 index 0000000..ec6d970 --- /dev/null +++ b/vcpkg/ports/libxpresent/portfile.cmake @@ -0,0 +1,31 @@ +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/libxpresent
+ REF ced59e4373b7ad8f89ba222b3f489fb22050b991 # 1.0.0
+ SHA512 3904af03ff03a5fca84e63ed92b53668b7d3c9b8572dc829016dbdc3176f3813f7731e519c2769ae84c4c105a4f5dec8378165f02f48d89354842c4dd8062328
+ HEAD_REF master
+)
+file(MAKE_DIRECTORY "${SOURCE_PATH}/m4/")
+file(TOUCH "${SOURCE_PATH}/m4/dummy")
+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/libxpresent/vcpkg.json b/vcpkg/ports/libxpresent/vcpkg.json new file mode 100644 index 0000000..400e4ff --- /dev/null +++ b/vcpkg/ports/libxpresent/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "libxpresent", + "version": "1.0.0", + "description": "Xlib-based library for the X Present Extension", + "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxpresent", + "license": null, + "dependencies": [ + "bzip2", + "libx11", + "libxext", + "libxfixes", + "libxrandr", + "xorg-macros", + "xproto" + ] +} |