ports: Port required libraries to build GCC
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-08-08 19:51:45 +02:00
parent 3f55a70f6e
commit c6a5a81a7a
Signed by: apio
GPG Key ID: B8A7D06E42258954
5 changed files with 61 additions and 2 deletions

View File

@ -13,7 +13,10 @@ 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
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

View File

@ -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
}

18
ports/gmp/PACKAGE Normal file
View File

@ -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
}

19
ports/mpc/PACKAGE Normal file
View File

@ -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
}

19
ports/mpfr/PACKAGE Normal file
View File

@ -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
}