From c6a5a81a7a3d0d88c1cd86c77dcc8bb750bc2017 Mon Sep 17 00:00:00 2001 From: apio Date: Tue, 8 Aug 2023 19:51:45 +0200 Subject: [PATCH] ports: Port required libraries to build GCC --- ports/README.md | 5 ++++- ports/binutils/PACKAGE | 2 +- ports/gmp/PACKAGE | 18 ++++++++++++++++++ ports/mpc/PACKAGE | 19 +++++++++++++++++++ ports/mpfr/PACKAGE | 19 +++++++++++++++++++ 5 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 ports/gmp/PACKAGE create mode 100644 ports/mpc/PACKAGE create mode 100644 ports/mpfr/PACKAGE diff --git a/ports/README.md b/ports/README.md index 101378f9..615c89a0 100644 --- a/ports/README.md +++ b/ports/README.md @@ -13,8 +13,11 @@ Name | Version | Description | URL ---|---|--- | --- bc | 6.6.0 | An implementation of the POSIX bc calculator | https://github.com/gavinhoward/bc binutils | 2.39 | The GNU suite of binary utilities | https://www.gnu.org/software/binutils +gmp | 6.3.0 | The GNU Multiple Precision Arithmetic Library | https://gmplib.org minitar | 1.7.5 | Tiny and easy-to-use C library to read/write tar archives | https://git.cloudapio.eu/apio/minitar -nasm | 2.16.01 | An assembler for the x86 CPU architecture | https://nasm.us +mpc | 1.3.1 | The GNU Multiple Precision Complex Library | https://www.multiprecision.org +mpfr | 4.2.0 | The GNU Multiple Precision Floating-Point Reliable Library | https://mpfr.org +nasm | 2.16.01 | An assembler for the x86 CPU architecture | https://nasm.us ## Installing ports diff --git a/ports/binutils/PACKAGE b/ports/binutils/PACKAGE index de56d904..86189bdf 100644 --- a/ports/binutils/PACKAGE +++ b/ports/binutils/PACKAGE @@ -19,5 +19,5 @@ do_patch() do_configure() { - $srcdir/configure --host=$LUNA_ARCH-luna --disable-nls --disable-werror --enable-warn-rwx-segments=no --prefix=/usr --enable-gold=no --enable-ld=yes --enable-gprofng=no + $srcdir/configure --host=$LUNA_ARCH-luna --with-build-sysroot=$LUNA_BASE --disable-nls --disable-werror --enable-warn-rwx-segments=no --prefix=/usr --enable-gold=no --enable-ld=yes --enable-gprofng=no } diff --git a/ports/gmp/PACKAGE b/ports/gmp/PACKAGE new file mode 100644 index 00000000..b625fa54 --- /dev/null +++ b/ports/gmp/PACKAGE @@ -0,0 +1,18 @@ +# Basic information +name="gmp" +version="6.3.0" + +# Download options +format="tar" +url="https://gmplib.org/download/gmp/gmp-$version.tar.xz" +output="gmp-$version.tar.xz" +sha256sum="a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898" + +# Build instructions +default_build_make=true +default_install_make=true + +do_configure() +{ + $srcdir/configure --enable-shared=no --with-gnu-ld --host=$LUNA_ARCH-luna --prefix=/usr +} diff --git a/ports/mpc/PACKAGE b/ports/mpc/PACKAGE new file mode 100644 index 00000000..9fd4d5f9 --- /dev/null +++ b/ports/mpc/PACKAGE @@ -0,0 +1,19 @@ +# Basic information +name="mpc" +version="1.3.1" +dependencies=(gmp mpfr) + +# Download options +format="tar" +url="https://ftp.gnu.org/gnu/mpc/mpc-$version.tar.gz" +output="mpc-$version.tar.gz" +sha256sum="ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8" + +# Build instructions +default_build_make=true +default_install_make=true + +do_configure() +{ + $srcdir/configure --enable-shared=no --with-gnu-ld --host=$LUNA_ARCH-luna --prefix=/usr +} diff --git a/ports/mpfr/PACKAGE b/ports/mpfr/PACKAGE new file mode 100644 index 00000000..2d718148 --- /dev/null +++ b/ports/mpfr/PACKAGE @@ -0,0 +1,19 @@ +# Basic information +name="mpfr" +version="4.2.0" +dependencies=(gmp) + +# Download options +format="tar" +url="https://www.mpfr.org/mpfr-current/mpfr-$version.tar.gz" +output="mpfr-$version.tar.gz" +sha256sum="f1cc1c6bb14d18f0c61cc416e083f5e697b6e0e3cf9630b9b33e8e483fc960f0" + +# Build instructions +default_build_make=true +default_install_make=true + +do_configure() +{ + $srcdir/configure --enable-shared=no --with-gnu-ld --host=$LUNA_ARCH-luna --prefix=/usr +}