aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/pango
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/pango
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/pango')
-rw-r--r--vcpkg/ports/pango/portfile.cmake45
-rw-r--r--vcpkg/ports/pango/vcpkg.json62
2 files changed, 107 insertions, 0 deletions
diff --git a/vcpkg/ports/pango/portfile.cmake b/vcpkg/ports/pango/portfile.cmake
new file mode 100644
index 0000000..6c54d96
--- /dev/null
+++ b/vcpkg/ports/pango/portfile.cmake
@@ -0,0 +1,45 @@
+vcpkg_from_gitlab(
+ GITLAB_URL https://gitlab.gnome.org/
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO GNOME/pango
+ REF "${VERSION}"
+ SHA512 c980cfed2a4811c32ba473846d7d075e0b949a833089f4cafb436ce7442719307a60eb68956606c315dd6185cb8753df87d4bac140d752eaeaf0b67b17afbd79
+ HEAD_REF master
+)
+
+if("introspection" IN_LIST FEATURES)
+ list(APPEND OPTIONS_RELEASE -Dintrospection=enabled)
+ vcpkg_get_gobject_introspection_programs(PYTHON3 GIR_COMPILER GIR_SCANNER)
+else()
+ list(APPEND OPTIONS_RELEASE -Dintrospection=disabled)
+endif()
+
+vcpkg_configure_meson(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -Dfontconfig=enabled # Build with FontConfig support.
+ -Dsysprof=disabled # include tracing support for sysprof
+ -Dlibthai=disabled # Build with libthai support
+ -Dcairo=enabled # Build with cairo support
+ -Dxft=disabled # Build with xft support
+ -Dfreetype=enabled # Build with freetype support
+ -Dgtk_doc=false #Build API reference for Pango using GTK-Doc
+ ${OPTIONS}
+ OPTIONS_RELEASE
+ ${OPTIONS_RELEASE}
+ OPTIONS_DEBUG
+ -Dintrospection=disabled
+ ADDITIONAL_BINARIES
+ "glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'"
+ "glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'"
+ "g-ir-compiler='${GIR_COMPILER}'"
+ "g-ir-scanner='${GIR_SCANNER}'"
+)
+
+vcpkg_install_meson(ADD_BIN_TO_PATH)
+vcpkg_fixup_pkgconfig()
+vcpkg_copy_pdbs()
+
+vcpkg_copy_tools(TOOL_NAMES pango-view pango-list pango-segmentation AUTO_CLEAN)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
diff --git a/vcpkg/ports/pango/vcpkg.json b/vcpkg/ports/pango/vcpkg.json
new file mode 100644
index 0000000..91e9a62
--- /dev/null
+++ b/vcpkg/ports/pango/vcpkg.json
@@ -0,0 +1,62 @@
+{
+ "name": "pango",
+ "version": "1.56.1",
+ "port-version": 2,
+ "description": "Text and font handling library.",
+ "homepage": "https://ftp.gnome.org/pub/GNOME/sources/pango/",
+ "license": "LGPL-2.0-or-later",
+ "supports": "!xbox",
+ "dependencies": [
+ {
+ "name": "cairo",
+ "features": [
+ "gobject"
+ ]
+ },
+ "fontconfig",
+ "freetype",
+ "fribidi",
+ {
+ "name": "gettext",
+ "host": true,
+ "default-features": false,
+ "features": [
+ "tools"
+ ]
+ },
+ "gettext-libintl",
+ "glib",
+ {
+ "name": "glib",
+ "host": true
+ },
+ "harfbuzz",
+ {
+ "name": "harfbuzz",
+ "features": [
+ "coretext"
+ ],
+ "platform": "osx"
+ },
+ {
+ "name": "vcpkg-tool-meson",
+ "host": true
+ }
+ ],
+ "features": {
+ "introspection": {
+ "description": "Build with introspection",
+ "supports": "!static",
+ "dependencies": [
+ "gobject-introspection",
+ {
+ "name": "harfbuzz",
+ "default-features": false,
+ "features": [
+ "introspection"
+ ]
+ }
+ ]
+ }
+ }
+}