1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

Ports: Added checksums / signature files and other fixes

* Use ${version} instead of explicit version numbers in urls/filenames
* Move -L option to port script, as this is always good
* Fix some various other stuff
This commit is contained in:
Emanuel Sprung 2020-02-04 01:11:35 +01:00 committed by Andreas Kling
parent 991953ab0a
commit f46d80ac4f
39 changed files with 148 additions and 74 deletions

View file

@ -3,23 +3,16 @@ port=gcc
version=9.2.0
useconfigure=true
configopts="--target=i686-pc-serenity --with-sysroot=/ --with-build-sysroot=$SERENITY_ROOT/Root --with-newlib --enable-languages=c,c++ --disable-lto --disable-nls"
files="https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.xz gcc-9.2.0.tar.xz"
files="https://ftp.gnu.org/gnu/gcc/gcc-${version}/gcc-${version}.tar.xz gcc-${version}.tar.xz
https://ftp.gnu.org/gnu/gcc/gcc-${version}/gcc-${version}.tar.xz.sig gcc-${version}.tar.xz.sig
https://ftp.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
makeopts="all-gcc all-target-libgcc all-target-libstdc++-v3 -j $(nproc)"
installopts="DESTDIR=$SERENITY_ROOT/Root install-gcc install-target-libgcc install-target-libstdc++-v3"
depends="binutils"
fetch() {
read url filename <<< $(echo "$files")
if [ -f "$filename" ]; then
echo "$filename already exists"
else
run_nocd curl -O "$url" -o "$filename"
fi
run_nocd tar xf "$filename"
auth_type="sig"
auth_opts="--keyring ./gnu-keyring.gpg gcc-${version}.tar.xz.sig"
post_fetch() {
run contrib/download_prerequisites
for f in patches/*; do
run patch -p1 < "$f"
done
}
build() {
run make $makeopts