aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxrender
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libxrender')
-rw-r--r--vcpkg/ports/libxrender/portfile.cmake35
-rw-r--r--vcpkg/ports/libxrender/vcpkg.json11
2 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/libxrender/portfile.cmake b/vcpkg/ports/libxrender/portfile.cmake
new file mode 100644
index 0000000..0a60e04
--- /dev/null
+++ b/vcpkg/ports/libxrender/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/libxrender
+ REF 845716f8f14963d338e5a8d5d2424baafc90fb30 # 0.9.10
+ SHA512 a7e8d383a8400d63eb726b741cd25a1e9e671c7eadef04beddc4e31fec59b384ae4fa3f305e62a2aecbaedffc76c7b0626f525ec8634c9940a29de058e4a653c
+ 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/libxrender/vcpkg.json b/vcpkg/ports/libxrender/vcpkg.json
new file mode 100644
index 0000000..6c0bd85
--- /dev/null
+++ b/vcpkg/ports/libxrender/vcpkg.json
@@ -0,0 +1,11 @@
+{
+ "name": "libxrender",
+ "version": "0.9.10",
+ "description": "library for the Render Extension to the X11 protocol",
+ "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxrender",
+ "license": null,
+ "dependencies": [
+ "libx11",
+ "xorg-macros"
+ ]
+}