1
0
Fork 0
frozenports/lang/gcc/SCHEMATIC

38 lines
1.4 KiB
Bash

#!/bin/sh
name="gcc"
short_desc="GNU Compiler Collection"
desc="The GNU Compiler Collection contains a variety of compilers for many languages (such as C, C++, Fortran, and D)
This package contains the C and C++ compilers."
category="lang"
version="13.2.0"
maintainer="ffqq@danwin1210.de"
www="https://www.gnu.org/software/gcc/"
master_site="ftp://ftp.gnu.org/gnu/gcc/$name-$version"
source_name="$name-$version.tar.gz"
license_logic="and" # accepted values: single, and, or
licenses=("GPLv3" "GPLv3RLE")
build_dependencies=("devel/gmake" "devel/binutils" "devel/bison" "archivers/zlib" "math/gmp" "math/mpfr" "math/mpc")
run_dependencies=("system/glibc" "devel/binutils" "archivers/zlib" "math/gmp" "math/mpfr" "math/mpc")
build_process() {
cd $name-$version || exit 1
mkdir -p build || exit 1
cd build || exit 1
../configure --prefix=/usr \
LD=ld \
--enable-languages=c,c++ \
--enable-default-pie \
--enable-default-ssp \
--disable-multilib \
--disable-bootstrap \
--disable-fixincludes \
--with-system-zlib || exit 1
make -j$(nproc) || exit 1
make DESTDIR="$TAMANDUA_STAGE_DIR" install || exit 1
ln -sr cpp $TAMANDUA_STAGE_DIR/usr/lib/cpp
ln -s gcc $TAMANDUA_STAGE_DIR/usr/bin/cc
ln -s gcc $TAMANDUA_STAGE_DIR/usr/bin/c99
rm -r $TAMANDUA_STAGE_DIR/usr/share/info
}