aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxext
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libxext')
-rw-r--r--vcpkg/ports/libxext/portfile.cmake31
-rw-r--r--vcpkg/ports/libxext/vcpkg.json12
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/libxext/portfile.cmake b/vcpkg/ports/libxext/portfile.cmake
new file mode 100644
index 0000000..a116f6f
--- /dev/null
+++ b/vcpkg/ports/libxext/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/libxext
+ REF ebb167f34a3514783966775fb12573c4ed209625 # 1.3.4
+ SHA512 509cb67ad9dba37adbcc49dca6e9803b318f62e8e2b981ccf73ce328a8104e94615312c5914b480ba04e28d208cd93d8a71b3e6e2ef1a4e5615aa2a3f9ba19e7
+ HEAD_REF master
+)
+
+set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
+
+vcpkg_configure_make(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTOCONFIG
+ OPTIONS xorg_cv_malloc0_returns_null=yes
+)
+
+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/libxext/vcpkg.json b/vcpkg/ports/libxext/vcpkg.json
new file mode 100644
index 0000000..ed49330
--- /dev/null
+++ b/vcpkg/ports/libxext/vcpkg.json
@@ -0,0 +1,12 @@
+{
+ "name": "libxext",
+ "version": "1.3.4",
+ "description": "Xlib-based library for common extensions to the X11 protocol",
+ "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxext",
+ "license": null,
+ "dependencies": [
+ "libx11",
+ "xorg-macros",
+ "xproto"
+ ]
+}