aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/mpc
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/mpc
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/mpc')
-rw-r--r--vcpkg/ports/mpc/portfile.cmake26
-rw-r--r--vcpkg/ports/mpc/vcpkg.json12
2 files changed, 38 insertions, 0 deletions
diff --git a/vcpkg/ports/mpc/portfile.cmake b/vcpkg/ports/mpc/portfile.cmake
new file mode 100644
index 0000000..7d2f050
--- /dev/null
+++ b/vcpkg/ports/mpc/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_download_distfile(ARCHIVE
+ URLS
+ "https://ftpmirror.gnu.org/gnu/mpc/mpc-${VERSION}.tar.gz"
+ "https://ftp.gnu.org/gnu/mpc/mpc-${VERSION}.tar.gz"
+ FILENAME "mpc-${VERSION}.tar.gz"
+ SHA512 4bab4ef6076f8c5dfdc99d810b51108ced61ea2942ba0c1c932d624360a5473df20d32b300fc76f2ba4aa2a97e1f275c9fd494a1ba9f07c4cb2ad7ceaeb1ae97
+)
+
+vcpkg_extract_source_archive(
+ SOURCE_PATH
+ ARCHIVE "${ARCHIVE}"
+)
+
+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")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING.LESSER")
diff --git a/vcpkg/ports/mpc/vcpkg.json b/vcpkg/ports/mpc/vcpkg.json
new file mode 100644
index 0000000..64e476e
--- /dev/null
+++ b/vcpkg/ports/mpc/vcpkg.json
@@ -0,0 +1,12 @@
+{
+ "name": "mpc",
+ "version": "1.3.1",
+ "port-version": 2,
+ "description": "GNU MPC is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result.",
+ "homepage": "https://www.multiprecision.org/mpc/",
+ "license": "LGPL-3.0-or-later",
+ "dependencies": [
+ "gmp",
+ "mpfr"
+ ]
+}