From 36af58c1875fb2718d5ab066d3f35cbb77bd54ec Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 28 Jul 2021 18:32:44 +0100 Subject: [PATCH] Ports: Add MPFR Required to build the toolchain inside Serenity. --- Ports/AvailablePorts.md | 1 + Ports/mpfr/package.sh | 11 +++++++++++ Ports/mpfr/patches/config.sub.patch | 11 +++++++++++ 3 files changed, 23 insertions(+) create mode 100755 Ports/mpfr/package.sh create mode 100644 Ports/mpfr/patches/config.sub.patch diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 56ea118bcd9..60857a6eeaf 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -92,6 +92,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`mawk`](mawk/) | mawk | 1.3.4-20200120 | https://invisible-island.net/mawk/ | | [`mbedtls`](mbedtls/) | Mbed TLS | 2.16.2 | https://tls.mbed.org/ | | [`milkytracker`](milkytracker/) | milkytracker | 1.03.00 | https://github.com/milkytracker/MilkyTracker | +| [`mpfr`](mpfr/) | GNU Multiple Precision Floating-Point Reliable Library (MPFR) | 4.1.0 | https://www.mpfr.org/ | | [`mrsh`](mrsh/) | mrsh | d9763a3 | https://mrsh.sh/ | | [`mysthous`](mysthous/) | Hi-Res Adventure #1: Mystery House | 1.0 | https://www.scummvm.org/games/#games-hires1 | | [`nano`](nano/) | GNU nano | 5.8 | https://www.nano-editor.org/ | diff --git a/Ports/mpfr/package.sh b/Ports/mpfr/package.sh new file mode 100755 index 00000000000..9e6cc116f28 --- /dev/null +++ b/Ports/mpfr/package.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=mpfr +version=4.1.0 +useconfigure=true +configopts="--target=${SERENITY_ARCH}-pc-serenity --with-sysroot=/" +files="https://ftpmirror.gnu.org/gnu/mpfr/mpfr-${version}.tar.xz mpfr-${version}.tar.xz +https://ftpmirror.gnu.org/gnu/mpfr/mpfr-${version}.tar.xz.sig mpfr-${version}.tar.xz.sig +https://ftpmirror.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg" +auth_type="sig" +auth_opts="--keyring ./gnu-keyring.gpg mpfr-${version}.tar.xz.sig" +depends="gmp" diff --git a/Ports/mpfr/patches/config.sub.patch b/Ports/mpfr/patches/config.sub.patch new file mode 100644 index 00000000000..38de5314ec1 --- /dev/null +++ b/Ports/mpfr/patches/config.sub.patch @@ -0,0 +1,11 @@ +--- mpfr-4.1.0/config.sub 2020-07-10 12:59:02.000000000 +0100 ++++ mpfr-4.1.0.serenity/config.sub 2021-07-28 18:05:59.462525103 +0100 +@@ -1390,7 +1390,7 @@ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ + | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ +- | -midnightbsd*) ++ | -midnightbsd* | -serenity*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*)