vcpkg/ports/guile/portfile.cmake

39 lines
1.5 KiB
CMake
Raw Normal View History

2022-08-24 12:04:34 -04:00
vcpkg_download_distfile(GUILE_ARCHIVE
2024-03-12 11:14:50 +08:00
URLS https://ftp.gnu.org/gnu/guile/guile-${VERSION}.tar.gz
FILENAME guile-${VERSION}.tar.gz
2024-10-08 03:11:06 +08:00
SHA512 8b0e6354fdfccd009fd92a5618828f8a8343faf20d1d3698be77a6ef7a8fe56ce633fd1239520e6a6be511ba4ca75eb90c8a81c45888b8b73d938cd2908d7a1f
2022-08-24 12:04:34 -04:00
)
vcpkg_extract_source_archive(GUILE_SOURCES ARCHIVE ${GUILE_ARCHIVE})
2024-03-12 11:14:50 +08:00
vcpkg_add_to_path("${CURRENT_HOST_INSTALLED_DIR}/tools/gperf")
2022-08-24 12:04:34 -04:00
vcpkg_configure_make(
SOURCE_PATH "${GUILE_SOURCES}"
ADD_BIN_TO_PATH
AUTOCONFIG
)
vcpkg_install_make()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_fixup_pkgconfig()
2022-09-30 23:42:18 +02:00
if (NOT VCPKG_BUILD_TYPE)
foreach(file guile-tools guile-config guild)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/${file}" "${CURRENT_INSTALLED_DIR}/debug/../tools/guile/debug/bin" "`dirname $0`" IGNORE_UNCHANGED)
2022-09-30 23:42:18 +02:00
endforeach()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/guile-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../..")
endif()
foreach(file guile-tools guile-config guild)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/${file}" "${CURRENT_INSTALLED_DIR}/tools/guile/bin" "`dirname $0`" IGNORE_UNCHANGED)
2022-09-30 23:42:18 +02:00
endforeach()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/guile-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../..")
2022-08-24 12:04:34 -04:00
file(
INSTALL "${GUILE_SOURCES}/COPYING.LESSER"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright
)