2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
|
|
|
|
|
2021-04-27 01:28:21 +08:00
|
|
|
set(ATK_VERSION 2.36.0)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2021-04-27 01:28:21 +08:00
|
|
|
URLS "https://ftp.gnome.org/pub/GNOME/sources/atk/2.36/atk-${ATK_VERSION}.tar.xz"
|
2019-05-03 13:57:43 +08:00
|
|
|
FILENAME "atk-${ATK_VERSION}.tar.xz"
|
2021-04-27 01:28:21 +08:00
|
|
|
SHA512 d0f18204eaf96511e8448e3dfbc4b6953a7cf8b816151fb7caf5592cf578572b1cdb16836fe2157b11e3ad018ef171f1ca1bfdf255bb31bb455716d7519fd634
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2019-05-03 13:57:43 +08:00
|
|
|
|
2019-09-18 02:34:55 +08:00
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-10-08 01:35:13 +08:00
|
|
|
ARCHIVE ${ARCHIVE}
|
2019-05-03 13:57:43 +08:00
|
|
|
PATCHES
|
2019-09-18 02:34:55 +08:00
|
|
|
)
|
2019-05-03 13:57:43 +08:00
|
|
|
|
2021-04-27 01:28:21 +08:00
|
|
|
vcpkg_configure_meson(
|
2019-05-03 13:57:43 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2021-04-27 01:28:21 +08:00
|
|
|
OPTIONS -Dintrospection=false
|
|
|
|
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()
|
2019-05-03 13:57:43 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2020-12-08 00:27:33 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2021-04-27 01:28:21 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-10-08 01:35:13 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|