aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxft
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/libxft
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libxft')
-rw-r--r--vcpkg/ports/libxft/portfile.cmake30
-rw-r--r--vcpkg/ports/libxft/vcpkg.json16
2 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/libxft/portfile.cmake b/vcpkg/ports/libxft/portfile.cmake
new file mode 100644
index 0000000..d78744b
--- /dev/null
+++ b/vcpkg/ports/libxft/portfile.cmake
@@ -0,0 +1,30 @@
+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/libxft
+ REF 98b121f22c3477b508dd17aa5db99f2ebf36ade4 # 2.3.4
+ SHA512 336d80b96b607b3f694a8dac1e2c3cb7f22640ee6f2eeb9d6f8b7b0ddabc3fe9a096f0108595657ddff2f5b2b720a12d8954497067b1339878e786f7470c5617
+ HEAD_REF master
+)
+
+set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
+
+vcpkg_configure_make(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTOCONFIG
+)
+
+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/libxft/vcpkg.json b/vcpkg/ports/libxft/vcpkg.json
new file mode 100644
index 0000000..f3fda42
--- /dev/null
+++ b/vcpkg/ports/libxft/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "libxft",
+ "version": "2.3.4",
+ "description": "X FreeType library",
+ "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxft",
+ "license": null,
+ "dependencies": [
+ "bzip2",
+ "fontconfig",
+ "freetype",
+ "libx11",
+ "libxrender",
+ "xorg-macros",
+ "xproto"
+ ]
+}