wok-next annotate gcc3/receipt @ rev 21195

updated scrollz (2.2.3 -> 2.3)
author Hans-G?nter Theisgen
date Thu Oct 03 15:54:27 2019 +0100 (2019-10-03)
parents d958fec46c9f
children
rev   line source
pascal@439 1 # SliTaz package receipt.
pascal@439 2
pascal@439 3 PACKAGE="gcc3"
pascal@439 4 VERSION="3.4.6"
pascal@439 5 CATEGORY="development"
al@21020 6 SHORT_DESC="The GNU Compiler Collection"
pascal@439 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@20882 9 WEB_SITE="http://gcc.gnu.org/"
al@20882 10 REPOLOGY="gcc"
al@20882 11
slaxemulator@9127 12 SOURCE="gcc"
slaxemulator@9127 13 TARBALL="$SOURCE-$VERSION.tar.bz2"
slaxemulator@9127 14 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL"
pascal@13033 15 TAGS="compiler C C++"
pascal@13033 16
pascal@19878 17 BUILD_DEPENDS="gawk gcc49"
pascal@13033 18 DEPENDS="gcc"
pascal@439 19
al@21020 20 compile_rules() {
pascal@19878 21 sed -i 's/struct siginfo /siginfo_t /' gcc/config/*/linux*.h
al@21020 22 mkdir gcc-build
pascal@13879 23 cd gcc-build
al@21020 24
pascal@19878 25 export LD_LIBRARY_PATH="/usr/libgcc49:$LD_LIBRARY_PATH"
pascal@19878 26 export CC=gcc-49
pascal@19878 27 export CXX=g++-49
al@21020 28 $src/configure \
al@21020 29 --prefix=/usr \
al@21020 30 --libexecdir=/usr/lib \
al@21020 31 --infodir=/usr/share/info \
al@21020 32 --mandir=/usr/share/man \
al@21020 33 --enable-nls \
al@21020 34 --enable-languages=c,c++ \
al@21020 35 --enable-shared \
al@21020 36 --with-system-zlib \
al@21020 37 --enable-clocale=gnu \
al@21020 38 --enable-objc-gc \
al@21020 39 --enable-__cxa_atexit \
al@21020 40 --enable-threads=posix \
al@21020 41 --with-tune=$ARCH \
al@21020 42 --program-suffix=-3 \
al@21020 43 $CONFIGURE_ARGS &&
pascal@13879 44 make $MAKEFLAGS bootstrap &&
pascal@13879 45 make $MAKEFLAGS install
pascal@439 46 }
pascal@439 47
al@21020 48 genpkg_rules() {
pascal@13879 49 mkdir -p $fs/usr
pascal@13879 50 cp -a $install/usr/bin $install/usr/lib $install/usr/include $fs/usr
pascal@13879 51 rm $fs/usr/lib/lib*
pascal@439 52 }