2017-08-08 23:48:24 +08:00
|
|
|
include(vcpkg_common_functions)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2017-08-08 23:48:24 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2019-09-25 02:05:30 +08:00
|
|
|
URLS "http://www.mpfr.org/mpfr-4.0.2/mpfr-4.0.2.tar.xz"
|
|
|
|
FILENAME "mpfr-4.0.2.tar.xz"
|
|
|
|
SHA512 d583555d08863bf36c89b289ae26bae353d9a31f08ee3894520992d2c26e5683c4c9c193d7ad139632f71c0a476d85ea76182702a98bf08dde7b6f65a54f8b88
|
2017-08-08 23:48:24 +08:00
|
|
|
)
|
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
ARCHIVE ${ARCHIVE}
|
|
|
|
)
|
|
|
|
|
2017-08-08 23:48:24 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-11-30 02:23:46 +08:00
|
|
|
PREFER_NINJA
|
2017-08-08 23:48:24 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mpfr)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/mpfr/COPYING ${CURRENT_PACKAGES_DIR}/share/mpfr/copyright)
|