mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 16:49:06 +08:00
f2ec6c5a7c
* [mpc] add mpc port * [mpfr] update mpfr to use make. * [gmp] fix preprocessor define for dlls. * more fixes * fix mpfr regression on !windows * install autoconf-archive in provisioning script * change indent of patches Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * fix merge error * update PR * update baseline Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com> Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
36 lines
1.2 KiB
CMake
36 lines
1.2 KiB
CMake
set(VERSION 4.1.0)
|
|
vcpkg_download_distfile(ARCHIVE
|
|
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
|
|
)
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
ARCHIVE ${ARCHIVE}
|
|
PATCHES
|
|
gmpd.patch
|
|
dll.patch
|
|
)
|
|
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/m4")
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
AUTOCONFIG
|
|
ADDITIONAL_MSYS_PACKAGES texinfo gettext autoconf-archive
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
vcpkg_copy_pdbs()
|
|
|
|
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")
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|