aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxxf86vm/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libxxf86vm/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libxxf86vm/portfile.cmake')
-rw-r--r--vcpkg/ports/libxxf86vm/portfile.cmake35
1 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/ports/libxxf86vm/portfile.cmake b/vcpkg/ports/libxxf86vm/portfile.cmake
new file mode 100644
index 0000000..341aaf8
--- /dev/null
+++ b/vcpkg/ports/libxxf86vm/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/libxxf86vm
+ REF 7fe2d41f164d3015216c1079cc7fbce1eea90c98
+ SHA512 c7ee07478bcc5db18e47a5a7b8965d89172bbab733f60fb13b9527b7888445fdd86d5d99aa67d6436fc2ef3ea0bd8d9c6e4f10fbef351f229de982bd6f21f9c9
+ HEAD_REF master
+ PATCHES no-undefined.patch
+)
+
+set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
+
+if(VCPKG_CROSSCOMPILING)
+ set(OPTIONS --enable-malloc0returnsnull=yes
+ xorg_cv_malloc0_returns_null=yes)
+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")
+
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+endif()