wok-next annotate gcc3/receipt @ rev 20717
pcmanfm-legacy: use patch
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 27 15:00:58 2018 +0300 (2018-05-27) |
parents | 95758c7d1a56 |
children | d958fec46c9f |
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" |
slaxemulator@9127 | 9 SOURCE="gcc" |
slaxemulator@9127 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@439 | 11 WEB_SITE="http://gcc.gnu.org/" |
slaxemulator@9127 | 12 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" |
pascal@13033 | 13 TAGS="compiler C C++" |
pascal@13033 | 14 |
pascal@19878 | 15 BUILD_DEPENDS="gawk gcc49" |
pascal@13033 | 16 DEPENDS="gcc" |
pascal@439 | 17 |
pascal@439 | 18 # Rules to configure and make the package. |
pascal@439 | 19 compile_rules() |
pascal@439 | 20 { |
pascal@19878 | 21 sed -i 's/struct siginfo /siginfo_t /' gcc/config/*/linux*.h |
pascal@13879 | 22 mkdir gcc-build |
pascal@13879 | 23 cd gcc-build |
pascal@15323 | 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 |
pascal@13879 | 28 $src/configure --prefix=/usr --libexecdir=/usr/lib \ |
pascal@13879 | 29 --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \ |
pascal@13879 | 30 --enable-languages=c,c++ --enable-shared --with-system-zlib \ |
pascal@13879 | 31 --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit \ |
pascal@13879 | 32 --enable-threads=posix --with-tune=$ARCH \ |
pascal@19878 | 33 --program-suffix=-3 $CONFIGURE_ARGS |
pascal@13879 | 34 make $MAKEFLAGS bootstrap && |
pascal@13879 | 35 make $MAKEFLAGS install |
pascal@15323 | 36 } 2>&1 | sed 's/: No such file/: no such file/' |
pascal@439 | 37 } |
pascal@439 | 38 |
pascal@439 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@439 | 40 genpkg_rules() |
pascal@439 | 41 { |
pascal@13879 | 42 mkdir -p $fs/usr |
pascal@13879 | 43 cp -a $install/usr/bin $install/usr/lib $install/usr/include $fs/usr |
pascal@13879 | 44 rm $fs/usr/lib/lib* |
pascal@439 | 45 } |