wok-next annotate gcc3/receipt @ rev 20882

Check Repology info from a* to g* packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jul 10 20:08:05 2018 +0300 (2018-07-10)
parents 435f77efe3de
children d5aab818505e
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"
erkan@19462 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
pascal@439 20 # Rules to configure and make the package.
pascal@439 21 compile_rules()
pascal@439 22 {
pascal@19878 23 sed -i 's/struct siginfo /siginfo_t /' gcc/config/*/linux*.h
pascal@13879 24 mkdir gcc-build
pascal@13879 25 cd gcc-build
pascal@15323 26 {
pascal@19878 27 export LD_LIBRARY_PATH="/usr/libgcc49:$LD_LIBRARY_PATH"
pascal@19878 28 export CC=gcc-49
pascal@19878 29 export CXX=g++-49
pascal@13879 30 $src/configure --prefix=/usr --libexecdir=/usr/lib \
pascal@13879 31 --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \
pascal@13879 32 --enable-languages=c,c++ --enable-shared --with-system-zlib \
pascal@13879 33 --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit \
pascal@13879 34 --enable-threads=posix --with-tune=$ARCH \
pascal@19878 35 --program-suffix=-3 $CONFIGURE_ARGS
pascal@13879 36 make $MAKEFLAGS bootstrap &&
pascal@13879 37 make $MAKEFLAGS install
pascal@15323 38 } 2>&1 | sed 's/: No such file/: no such file/'
pascal@439 39 }
pascal@439 40
pascal@439 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@439 42 genpkg_rules()
pascal@439 43 {
pascal@13879 44 mkdir -p $fs/usr
pascal@13879 45 cp -a $install/usr/bin $install/usr/lib $install/usr/include $fs/usr
pascal@13879 46 rm $fs/usr/lib/lib*
pascal@439 47 }