forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #509 from microsoft/master
[mpc/mpfr] Add new port / update mpfr (microsoft#13081)
- Loading branch information
Showing
16 changed files
with
156 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/SMP/libgmp.def b/SMP/libgmp.def | ||
index 289f0e2d1..632274ab2 100644 | ||
--- a/SMP/libgmp.def | ||
+++ b/SMP/libgmp.def | ||
@@ -16,6 +16,7 @@ __gmp_randclear | ||
__gmp_urandomb_ui | ||
__gmp_urandomm_ui | ||
__gmp_asprintf | ||
+__gmp_vasprintf | ||
__gmp_fprintf | ||
__gmp_printf | ||
__gmp_snprintf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Source: mpc | ||
Version: 1.2.0 | ||
Homepage: http://www.multiprecision.org/mpc/ | ||
Description: GNU MPC is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result. | ||
Build-Depends: gmp, mpfr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/configure.ac b/configure.ac | ||
index ab3da6092..2533df1d8 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -151,7 +151,9 @@ AC_CHECK_FUNCS([dup dup2],, | ||
|
||
AC_CHECK_LIB([gmp], [__gmpz_init], | ||
[LIBS="-lgmp $LIBS"], | ||
- [AC_MSG_ERROR([libgmp not found or uses a different ABI (including static vs shared).])]) | ||
+ [AC_CHECK_LIB([gmpd], [__gmpz_init], | ||
+ [LIBS="-lgmpd $LIBS"], | ||
+ [AC_MSG_ERROR([libgmp not found or uses a different ABI (including static vs shared).])])]) | ||
|
||
AC_MSG_CHECKING(for MPFR) | ||
LIBS="-lmpfr $LIBS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
vcpkg_download_distfile(ARCHIVE | ||
URLS "https://ftp.gnu.org/gnu/mpc/mpc-1.2.0.tar.gz" | ||
FILENAME "mpc-1.2.0.tar.gz" | ||
SHA512 84fa3338f51d369111456a63ad040256a1beb70699e21e2a932c779aa1c3bd08b201412c1659ecbb58403ea0548faacc35996d94f88f0639549269b7563c61b7 | ||
) | ||
|
||
vcpkg_extract_source_archive_ex( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
ARCHIVE ${ARCHIVE} | ||
PATCHES gmpd.patch | ||
) | ||
|
||
vcpkg_configure_make( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
AUTOCONFIG | ||
) | ||
|
||
vcpkg_install_make() | ||
|
||
vcpkg_fixup_pkgconfig() | ||
|
||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) | ||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) | ||
|
||
# # Handle copyright | ||
file(INSTALL "${SOURCE_PATH}/COPYING.LESSER" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.