set(PANGO_VERSION 1.48.0) vcpkg_download_distfile(ARCHIVE URLS "http://ftp.gnome.org/pub/GNOME/sources/pango/1.48/pango-${PANGO_VERSION}.tar.xz" FILENAME "pango-${PANGO_VERSION}.tar.xz" SHA512 4819575a583134083819c1548d86bba71af97fd927f7cac05e3903b6d1c84de0ab1b593eea1e17b974f194e2d81123aa46e3af942eef258ad1bd14c72322342e) vcpkg_extract_source_archive_ex( OUT_SOURCE_PATH SOURCE_PATH ARCHIVE ${ARCHIVE} REF ${PANGO_VERSION} ) vcpkg_configure_meson( SOURCE_PATH ${SOURCE_PATH} OPTIONS -Dintrospection=disabled # Build the GObject introspection data for Pango -Dfontconfig=enabled # Build with FontConfig support. -Dsysprof=disabled # include tracing support for sysprof -Dlibtahi=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 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' ) vcpkg_install_meson() vcpkg_fixup_pkgconfig() vcpkg_copy_pdbs() vcpkg_copy_tools(TOOL_NAMES pango-view pango-list AUTO_CLEAN) 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()