2021-01-25 15:01:16 +08:00
|
|
|
set(VERSION 4.1.0)
|
2017-08-08 23:48:24 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2021-01-25 15:01:16 +08:00
|
|
|
URLS "http://www.mpfr.org/mpfr-${VERSION}/mpfr-${VERSION}.tar.xz" "https://ftp.gnu.org/gnu/mpfr/mpfr-${VERSION}.tar.xz"
|
|
|
|
FILENAME "mpfr-${VERSION}.tar.xz"
|
|
|
|
SHA512 1bd1c349741a6529dfa53af4f0da8d49254b164ece8a46928cdb13a99460285622d57fe6f68cef19c6727b3f9daa25ddb3d7d65c201c8f387e421c7f7bee6273
|
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}
|
2021-01-25 15:01:16 +08:00
|
|
|
PATCHES
|
|
|
|
gmpd.patch
|
|
|
|
dll.patch
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
|
|
|
|
2021-01-25 15:01:16 +08:00
|
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/m4")
|
|
|
|
vcpkg_configure_make(
|
2017-08-08 23:48:24 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2021-01-25 15:01:16 +08:00
|
|
|
AUTOCONFIG
|
|
|
|
ADDITIONAL_MSYS_PACKAGES texinfo gettext autoconf-archive
|
2017-08-08 23:48:24 +08:00
|
|
|
)
|
|
|
|
|
2021-01-25 15:01:16 +08:00
|
|
|
vcpkg_install_make()
|
2017-08-08 23:48:24 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-01-25 15:01:16 +08:00
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/mpfr.pc" AND VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/mpfr.pc" " -lgmp" " -lgmpd")
|
|
|
|
endif()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-08-08 23:48:24 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2020-04-07 06:21:36 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|