diff options
Diffstat (limited to 'vcpkg/ports/libdmx')
| -rw-r--r-- | vcpkg/ports/libdmx/portfile.cmake | 29 | ||||
| -rw-r--r-- | vcpkg/ports/libdmx/vcpkg.json | 12 |
2 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/libdmx/portfile.cmake b/vcpkg/ports/libdmx/portfile.cmake new file mode 100644 index 0000000..9482456 --- /dev/null +++ b/vcpkg/ports/libdmx/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/libdmx
+ REF "libdmx-${VERSION}"
+ SHA512 2c634f57a7229e2d10b3ce700fe20d53a1578b9eb6d575eab9f0a9f228410dd6a17aa2a3d60503c0c0a14029d8a4ca8db6061b966108272ac8e8052bd3750300
+ HEAD_REF master
+)
+set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
+
+vcpkg_configure_make(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTOCONFIG
+ OPTIONS --enable-malloc0returnsnull=yes
+)
+
+vcpkg_install_make()
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}/")
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+endif()
diff --git a/vcpkg/ports/libdmx/vcpkg.json b/vcpkg/ports/libdmx/vcpkg.json new file mode 100644 index 0000000..dc7174f --- /dev/null +++ b/vcpkg/ports/libdmx/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "libdmx", + "version": "1.1.5", + "description": "X Window System DMX (Distributed Multihead X) extension library", + "homepage": "https://gitlab.freedesktop.org/xorg/lib/libdmx", + "license": "MIT", + "dependencies": [ + "libxext", + "xorg-macros", + "xproto" + ] +} |