diff options
Diffstat (limited to 'vcpkg/ports/libxinerama')
| -rw-r--r-- | vcpkg/ports/libxinerama/portfile.cmake | 35 | ||||
| -rw-r--r-- | vcpkg/ports/libxinerama/vcpkg.json | 12 |
2 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/libxinerama/portfile.cmake b/vcpkg/ports/libxinerama/portfile.cmake new file mode 100644 index 0000000..2e1366c --- /dev/null +++ b/vcpkg/ports/libxinerama/portfile.cmake @@ -0,0 +1,35 @@ +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/libxinerama
+ REF c3ab2361f13154921df2992f9eacc1ea1b3f946b #1.1.4
+ SHA512 c65ed77d370e063f861ff9ed3abee5ad89be9ba452de987263da702985b1aa5be2ddd464e67b7978155e072e67f03ef49192a87fa707fcead408434e1771cbc0
+ HEAD_REF master
+)
+
+set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
+
+if (VCPKG_CROSSCOMPILING)
+ list(APPEND OPTIONS --enable-malloc0returnsnull)
+endif()
+
+vcpkg_configure_make(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTOCONFIG
+ OPTIONS ${OPTIONS}
+)
+
+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/libxinerama/vcpkg.json b/vcpkg/ports/libxinerama/vcpkg.json new file mode 100644 index 0000000..18042f5 --- /dev/null +++ b/vcpkg/ports/libxinerama/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "libxinerama", + "version": "1.1.4", + "description": "Xlib API for Xinerama extension to X11 Protocol", + "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxinerama", + "license": null, + "dependencies": [ + "libx11", + "libxext", + "xorg-macros" + ] +} |