2022-11-05 05:56:43 +08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
|
|
|
|
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"
|
2022-12-29 05:12:11 +08:00
|
|
|
SHA512 be468749bd88870dec37be35e544983a8fb7bda638eb9414c37334b9d553099ea2aa067045f51ae2c8ab86d852ef833e18161d173e414af0928e9a438c9b91f1
|
2017-08-08 23:48:24 +08:00
|
|
|
)
|
|
|
|
|
2022-11-05 05:56:43 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2022-02-17 04:56:41 +08:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
2022-07-30 03:53:41 +08:00
|
|
|
PATCHES
|
2021-01-25 15:01:16 +08:00
|
|
|
dll.patch
|
2022-02-17 04:56:41 +08:00
|
|
|
src-only.patch
|
2022-12-29 05:12:11 +08:00
|
|
|
4.1.1-p1.patch # https://www.mpfr.org/mpfr-4.1.1/#bugs
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2022-02-17 04:56:41 +08:00
|
|
|
|
2021-01-25 15:01:16 +08:00
|
|
|
vcpkg_configure_make(
|
2021-12-11 06:01:15 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-01-25 15:01:16 +08:00
|
|
|
AUTOCONFIG
|
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
|
|
|
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
|
|
|
|
2022-07-30 03:53:41 +08:00
|
|
|
file(REMOVE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/AUTHORS"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/BUGS"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/COPYING"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/COPYING.LESSER"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/NEWS"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/TODO"
|
|
|
|
)
|
|
|
|
|
2022-08-26 01:38:49 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2022-07-30 03:53:41 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING" "${SOURCE_PATH}/COPYING.LESSER")
|