2019-05-17 08:37:25 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2024-06-27 04:05:15 +08:00
|
|
|
URLS "https://download.gnome.org/sources/libcroco/0.6/libcroco-${VERSION}.tar.xz"
|
|
|
|
"https://www.mirrorservice.org/sites/ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/libcroco-${VERSION}.tar.xz"
|
|
|
|
FILENAME "libcroco-${VERSION}.tar.xz"
|
2019-05-17 08:37:25 +08:00
|
|
|
SHA512 038a3ac9d160a8cf86a8a88c34367e154ef26ede289c93349332b7bc449a5199b51ea3611cebf3a2416ae23b9e45ecf8f9c6b24ea6d16a5519b796d3c7e272d4
|
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
|
|
|
ARCHIVE "${ARCHIVE}"
|
2019-05-17 08:37:25 +08:00
|
|
|
)
|
|
|
|
|
2024-06-27 04:05:15 +08:00
|
|
|
set(OPTIONS "")
|
|
|
|
if(VCPKG_TARGET_IS_OSX)
|
|
|
|
list(APPEND OPTIONS "--disable-Bsymbolic")
|
|
|
|
endif()
|
2023-03-08 06:14:52 +08:00
|
|
|
|
2024-06-27 04:05:15 +08:00
|
|
|
vcpkg_configure_make(
|
|
|
|
USE_WRAPPERS
|
2023-03-08 06:14:52 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-04-27 01:28:21 +08:00
|
|
|
OPTIONS
|
2024-06-27 04:05:15 +08:00
|
|
|
${OPTIONS}
|
2019-05-17 08:37:25 +08:00
|
|
|
)
|
2024-06-27 04:05:15 +08:00
|
|
|
|
|
|
|
vcpkg_install_make()
|
|
|
|
|
2023-09-26 14:47:35 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-05-17 08:37:25 +08:00
|
|
|
|
2024-06-27 04:05:15 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/libcroco/bin/croco-0.6-config"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/libcroco/debug/bin")
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-05-17 08:37:25 +08:00
|
|
|
|
2023-09-26 14:47:35 +08:00
|
|
|
file(COPY "${CURRENT_PORT_DIR}/unofficial-libcroco-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-libcroco")
|
|
|
|
file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2023-07-12 02:34:18 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|