vcpkg/ports/atk/portfile.cmake
Kai Pastor 5bb5f3923a
[pango,libgd,atk,gtk3,graphviz] Cleanup, fix static windows builds (#28766)
* [libgd] Fix static builds on windows

* [pango] Cleanup

* Use freetype2.pc with msvc

* Update CI baseline [skip actions]

* [atk] Cleanup, fix static builds

* [gtk3] Cleanup, fix static builds

* [graphviz] Fix static builds

* Update versions

* [libgd] Revert bad substitution

* [graphviz] Plugins

* [graphviz] Plugins

* [libgd] Fix static usage

* [gtk3] versions
2023-01-09 14:15:51 -08:00

32 lines
1.0 KiB
CMake

vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
vcpkg_from_gitlab(
GITLAB_URL https://gitlab.gnome.org/
OUT_SOURCE_PATH SOURCE_PATH
REPO GNOME/atk
REF "${VERSION}"
HEAD_REF master
SHA512 f31951ecbdace6a18fb9f772616137cb8732163b37448fef4daf1af60ba8479c94d498dcdaf4880468c80012c77a446da585926a99704a9a940b80e546080cf3
)
vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-Dintrospection=false
ADDITIONAL_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_copy_pdbs()
vcpkg_fixup_pkgconfig()
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/atk-1.0/atk/atkmisc.h" "ifdef ATK_STATIC_COMPILATION" "if 1")
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)