aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxxf86vm
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libxxf86vm')
-rw-r--r--vcpkg/ports/libxxf86vm/no-undefined.patch13
-rw-r--r--vcpkg/ports/libxxf86vm/portfile.cmake35
-rw-r--r--vcpkg/ports/libxxf86vm/vcpkg.json13
3 files changed, 61 insertions, 0 deletions
diff --git a/vcpkg/ports/libxxf86vm/no-undefined.patch b/vcpkg/ports/libxxf86vm/no-undefined.patch
new file mode 100644
index 0000000..aacc74f
--- /dev/null
+++ b/vcpkg/ports/libxxf86vm/no-undefined.patch
@@ -0,0 +1,13 @@
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 81f896790..100ca935a 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -6,7 +6,7 @@ AM_CFLAGS = $(XXF86VM_CFLAGS) $(MALLOC_ZERO_CFLAGS)
+ AM_CPPFLAGS = -I$(top_srcdir)/include
+
+ libXxf86vm_la_LIBADD = $(XXF86VM_LIBS)
+-libXxf86vm_la_LDFLAGS = -version-number 1:0:0
++libXxf86vm_la_LDFLAGS = -no-undefined -version-number 1:0:0
+
+ libXxf86vmincludedir = $(includedir)/X11/extensions
+ libXxf86vminclude_HEADERS = $(top_srcdir)/include/X11/extensions/xf86vmode.h
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()
diff --git a/vcpkg/ports/libxxf86vm/vcpkg.json b/vcpkg/ports/libxxf86vm/vcpkg.json
new file mode 100644
index 0000000..fc1e9a0
--- /dev/null
+++ b/vcpkg/ports/libxxf86vm/vcpkg.json
@@ -0,0 +1,13 @@
+{
+ "name": "libxxf86vm",
+ "version": "1.1.5",
+ "description": "Xlib-based library for the XFree86-VidMode X extension",
+ "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxxf86vm",
+ "license": null,
+ "dependencies": [
+ "bzip2",
+ "libxext",
+ "xorg-macros",
+ "xproto"
+ ]
+}