2019-06-05 10:03:08 +08:00
|
|
|
# Glib uses winapi functions not available in WindowsStore
|
2023-04-14 03:34:32 +08:00
|
|
|
string(REGEX MATCH "^([0-9]*[.][0-9]*)" GLIBMM_MAJOR_MINOR "${VERSION}")
|
2022-10-22 06:49:14 +08:00
|
|
|
vcpkg_download_distfile(GLIBMM_ARCHIVE
|
2023-04-14 03:34:32 +08:00
|
|
|
URLS "https://ftp.gnome.org/pub/GNOME/sources/glibmm/${GLIBMM_MAJOR_MINOR}/glibmm-${VERSION}.tar.xz"
|
|
|
|
FILENAME "glibmm-${VERSION}.tar.xz"
|
2024-02-13 06:22:46 +08:00
|
|
|
SHA512 5ace15c492be553e2c6abd8d0699197239261feaa2b45ff77181f59bb98b584dc822bdd46dbdee35691cc5a955a3b88e03f58532459236fd780823354c35d0a6
|
2017-10-22 20:16:33 +08:00
|
|
|
)
|
|
|
|
|
2022-10-22 06:49:14 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
|
|
|
ARCHIVE "${GLIBMM_ARCHIVE}"
|
2017-10-22 20:16:33 +08:00
|
|
|
)
|
|
|
|
|
2021-04-27 01:28:21 +08:00
|
|
|
vcpkg_configure_meson(
|
2022-01-06 10:42:21 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-10-22 06:49:14 +08:00
|
|
|
OPTIONS
|
2021-04-27 01:28:21 +08:00
|
|
|
-Dbuild-examples=false
|
|
|
|
-Dmsvc14x-parallel-installable=false
|
2017-10-22 20:16:33 +08:00
|
|
|
)
|
2022-10-22 06:49:14 +08:00
|
|
|
|
2021-04-27 01:28:21 +08:00
|
|
|
vcpkg_install_meson()
|
2017-10-22 20:16:33 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-10-22 06:49:14 +08:00
|
|
|
# intentionally 2.68 - glib does not install glibmm-2.7x files
|
2022-03-29 05:54:15 +08:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/lib/glibmm-2.68/proc"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib/glibmm-2.68/proc"
|
|
|
|
)
|
2022-01-06 10:42:21 +08:00
|
|
|
|
2020-12-29 04:32:51 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2022-10-22 06:49:14 +08:00
|
|
|
# Handle copyright and readmes
|
2021-09-17 01:50:15 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2022-10-22 06:49:14 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME readme.txt)
|
2024-02-13 06:22:46 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/README.win32.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|