diff --git a/ports/mpfr/build.sh b/ports/mpfr/build.sh new file mode 100755 index 00000000..affc82ba --- /dev/null +++ b/ports/mpfr/build.sh @@ -0,0 +1,10 @@ +#!/bin/bash ../install.sh + +NAME='mpfr' +VERSION='4.2.1' +DOWNLOAD_URL="https://ftp.gnu.org/gnu/mpfr/mpfr-$VERSION.tar.gz#116715552bd966c85b417c424db1bbdf639f53836eb361549d1f8d6ded5cb4c6" +DEPENDENCIES=('gmp') +CONFIGURE_OPTIONS=( + "--target=$BANAN_TOOLCHAIN_TRIPLE" + '--with-sysroot=/' +) diff --git a/ports/mpfr/patches/0001-add-banan_os-target.patch b/ports/mpfr/patches/0001-add-banan_os-target.patch new file mode 100644 index 00000000..0fed95ae --- /dev/null +++ b/ports/mpfr/patches/0001-add-banan_os-target.patch @@ -0,0 +1,12 @@ +diff -ruN mpfr-4.2.1/config.sub mpfr-4.2.1-banan_os/config.sub +--- mpfr-4.2.1/config.sub 2023-08-22 10:47:14.000000000 +0300 ++++ mpfr-4.2.1-banan_os/config.sub 2024-08-07 22:48:27.798804026 +0300 +@@ -1754,7 +1754,7 @@ + | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ + | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ + | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ +- | fiwix* ) ++ | fiwix* | banan_os* ) + ;; + # This one is extra strict with allowed versions + sco3.2v2 | sco3.2v[4-9]* | sco5v6*)