[mpfr] Add warning message on Linux (#21940)

* [mpfr] Add warning message on Linux

* update version

* Update portfile.cmake

* update version

Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
This commit is contained in:
LilyWangLL 2021-12-11 06:01:15 +08:00 committed by GitHub
parent 31bf0e4a36
commit c6e208fccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,7 @@
if (VCPKG_TARGET_IS_LINUX)
message(WARNING "${PORT} currently requires the following packages:\n autoconf-archive\n texinfo\nThese can be installed on Ubuntu systems via\n sudo apt-get update -y\n sudo apt-get install -y autoconf-archive texinfo\n")
endif()
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"
@ -15,7 +19,7 @@ vcpkg_extract_source_archive_ex(
file(REMOVE_RECURSE "${SOURCE_PATH}/m4")
vcpkg_configure_make(
SOURCE_PATH ${SOURCE_PATH}
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
ADDITIONAL_MSYS_PACKAGES texinfo gettext autoconf-archive
)
@ -32,4 +36,4 @@ 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)
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,7 @@
{
"name": "mpfr",
"version-string": "4.1.0",
"port-version": 1,
"port-version": 2,
"description": "The MPFR library is a C library for multiple-precision floating-point computations with correct rounding",
"homepage": "https://www.mpfr.org",
"dependencies": [

View File

@ -4510,7 +4510,7 @@
},
"mpfr": {
"baseline": "4.1.0",
"port-version": 1
"port-version": 2
},
"mpg123": {
"baseline": "1.29.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "655c136cd8328e30476ae39a3fd5ff99c915907c",
"version-string": "4.1.0",
"port-version": 2
},
{
"git-tree": "54544af431b7f178bc7bbe6604f103c40b7aa93b",
"version-string": "4.1.0",