aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxrandr
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libxrandr')
-rw-r--r--vcpkg/ports/libxrandr/portfile.cmake35
-rw-r--r--vcpkg/ports/libxrandr/vcpkg.json15
2 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/libxrandr/portfile.cmake b/vcpkg/ports/libxrandr/portfile.cmake
new file mode 100644
index 0000000..229122b
--- /dev/null
+++ b/vcpkg/ports/libxrandr/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 the 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/libxrandr
+ REF 55dcda4518eda8ae03ef25ea29d3c994ad71eb0a # 1.5.2
+ SHA512 63a3a7c5db8d41c73ef2f55e86a47bdae0112ac39802efa5da4fa26a8794066d6906d4a5e4e9af5abb5838a061f2583dc2b8865e38754ee3f2a8e3918de87168
+ 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/libxrandr/vcpkg.json b/vcpkg/ports/libxrandr/vcpkg.json
new file mode 100644
index 0000000..0d769da
--- /dev/null
+++ b/vcpkg/ports/libxrandr/vcpkg.json
@@ -0,0 +1,15 @@
+{
+ "name": "libxrandr",
+ "version": "1.5.2",
+ "description": "Xlib Resize, Rotate and Reflection (RandR) extension library",
+ "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxrandr",
+ "license": null,
+ "dependencies": [
+ "bzip2",
+ "libx11",
+ "libxext",
+ "libxrender",
+ "xorg-macros",
+ "xproto"
+ ]
+}