2021-05-18 15:38:23 +08:00
|
|
|
vcpkg_from_gitlab(
|
|
|
|
GITLAB_URL https://gitlab.gnome.org/
|
2019-11-04 06:10:24 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-05-18 15:38:23 +08:00
|
|
|
REPO GNOME/pango
|
2022-08-20 01:43:44 +08:00
|
|
|
REF a3517dcc6de9bae1193075b7112aa7db97b39dcc #v1.50.9
|
|
|
|
SHA512 d09bc672e65897f5a3deae45f6e7f91844fb6d72c43944d3480a4b9e84b43fcb0e701b0b84d864b15d8520287f6d0d02b489a42775df6746ffe6673588f8f05c
|
2021-05-18 15:38:23 +08:00
|
|
|
HEAD_REF master # branch name
|
|
|
|
)
|
2019-11-04 06:10:24 +08:00
|
|
|
|
2021-04-27 01:28:21 +08:00
|
|
|
vcpkg_configure_meson(
|
2019-11-04 06:10:24 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2021-04-27 01:28:21 +08:00
|
|
|
OPTIONS
|
|
|
|
-Dintrospection=disabled # Build the GObject introspection data for Pango
|
|
|
|
-Dfontconfig=enabled # Build with FontConfig support.
|
|
|
|
-Dsysprof=disabled # include tracing support for sysprof
|
2021-08-28 08:06:39 +08:00
|
|
|
-Dlibthai=disabled # Build with libthai support
|
2021-04-27 01:28:21 +08:00
|
|
|
-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
|
|
|
|
ADDITIONAL_NATIVE_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
|
|
|
|
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
|
|
|
|
ADDITIONAL_CROSS_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
|
|
|
|
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
|
2019-11-04 06:10:24 +08:00
|
|
|
)
|
|
|
|
|
2021-04-27 01:28:21 +08:00
|
|
|
vcpkg_install_meson()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-11-04 06:10:24 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-12-01 02:16:41 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES pango-view pango-list pango-segmentation AUTO_CLEAN)
|
2021-04-27 01:28:21 +08:00
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
|
|
|
|
set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/pango.pc")
|
|
|
|
if(EXISTS "${_file}")
|
|
|
|
vcpkg_replace_string("${_file}" [[-I"${includedir}/pango-1.0"]] [[-I"${includedir}/pango-1.0" -I"${includedir}/harfbuzz"]])
|
|
|
|
endif()
|
|
|
|
set(_file "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/pango.pc")
|
|
|
|
if(EXISTS "${_file}")
|
|
|
|
vcpkg_replace_string("${_file}" [[-I"${includedir}/pango-1.0"]] [[-I"${includedir}/pango-1.0" -I"${includedir}/harfbuzz"]])
|
|
|
|
endif()
|