ports: Add mpfr port

This will be used by gcc
This commit is contained in:
Bananymous 2025-01-25 18:36:17 +02:00
parent 42500ce043
commit ba83ede0d1
2 changed files with 22 additions and 0 deletions

10
ports/mpfr/build.sh Executable file
View File

@ -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=/'
)

View File

@ -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*)