1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 17:17:45 +00:00

Ports: Add MPC

Required to build the toolchain inside Serenity.
This commit is contained in:
Luke 2021-07-28 18:38:58 +01:00 committed by Andreas Kling
parent 36af58c187
commit 0a8209ab81
3 changed files with 22 additions and 0 deletions

11
Ports/mpc/package.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=mpc
version=1.2.1
useconfigure=true
configopts="--target=${SERENITY_ARCH}-pc-serenity --with-sysroot=/"
files="https://ftpmirror.gnu.org/gnu/mpc/mpc-${version}.tar.gz mpc-${version}.tar.gz
https://ftpmirror.gnu.org/gnu/mpc/mpc-${version}.tar.gz.sig mpc-${version}.tar.gz.sig
https://ftpmirror.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
auth_type="sig"
auth_opts="--keyring ./gnu-keyring.gpg mpc-${version}.tar.gz.sig"
depends="gmp mpfr"

View file

@ -0,0 +1,10 @@
--- mpc-1.2.1/build-aux/config.sub 2020-10-20 17:26:31.000000000 +0100
+++ mpc-1.2.1.serenity/build-aux/config.sub 2021-07-28 18:13:47.269493423 +0100
@@ -1339,6 +1339,7 @@
# Each alternative MUST end in a * to match a version number.
# sysv* is not here because it comes later, after sysvr4.
gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
+ | serenity* \
| *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
| hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
| sym* | kopensolaris* | plan9* \