diff options
| author | Alexander Neumann <30894796+Neumann-A@users.noreply.github.com> | 2021-01-25 08:01:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-24 23:01:16 -0800 |
| commit | f2ec6c5a7cf8441ae30a857c938694c4bfff424f (patch) | |
| tree | dc0abf0efc350f936d1c8c629cbfe680a7e701de /ports/mpc | |
| parent | 051b33d36cfdde9e027ff456491d1704159864af (diff) | |
| download | vcpkg-f2ec6c5a7cf8441ae30a857c938694c4bfff424f.tar.gz vcpkg-f2ec6c5a7cf8441ae30a857c938694c4bfff424f.zip | |
[mpc/mpfr] Add new port / update mpfr (#13081)
* [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>
Diffstat (limited to 'ports/mpc')
| -rw-r--r-- | ports/mpc/CONTROL | 5 | ||||
| -rw-r--r-- | ports/mpc/gmpd.patch | 15 | ||||
| -rw-r--r-- | ports/mpc/portfile.cmake | 27 |
3 files changed, 47 insertions, 0 deletions
diff --git a/ports/mpc/CONTROL b/ports/mpc/CONTROL new file mode 100644 index 000000000..4514e6289 --- /dev/null +++ b/ports/mpc/CONTROL @@ -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
diff --git a/ports/mpc/gmpd.patch b/ports/mpc/gmpd.patch new file mode 100644 index 000000000..b08625777 --- /dev/null +++ b/ports/mpc/gmpd.patch @@ -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" diff --git a/ports/mpc/portfile.cmake b/ports/mpc/portfile.cmake new file mode 100644 index 000000000..66aeb9f18 --- /dev/null +++ b/ports/mpc/portfile.cmake @@ -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)
+
|
