wok view gcc/receipt @ rev 2806

update to 4.5.0
author Allan Pinto <allan316@gmail.com>
date Wed Apr 29 09:38:17 2009 +0000 (2009-04-29)
parents b89693943f43
children 8dc67d801588
line source
1 # SliTaz package receipt.
3 PACKAGE="gcc"
4 VERSION="4.3.3"
5 CATEGORY="development"
6 SHORT_DESC="The the GNU Compiler Collection."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="libgomp gmp mpfr"
9 BUILD_DEPENDS="glibc-dev gawk flex gmp gmp-dev mpfr mpfr-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://gcc.gnu.org/"
12 WGET_URL="ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/releases/$PACKAGE-$VERSION/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mkdir gcc-build
18 cd gcc-build
19 ../$PACKAGE-$VERSION/configure --prefix=/usr --libexecdir=/usr/lib \
20 --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \
21 --enable-languages=c,c++ --enable-shared --with-system-zlib \
22 --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit \
23 --enable-threads=posix --with-tune=i486 i486-pc-linux-gnu &&
24 make bootstrap &&
25 # Make install in the source tree to help creating derivated pkgs
26 # and keep $_pkg variable set for genpkg.
27 make DESTDIR=$src/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share
34 cp -a $_pkg/usr/bin $fs/usr
35 # Copy all libs. Remove libgcc_s.so and libstdc++.so
36 # they goes in gcc-lib-base-$VERSION package.
37 cp -a $_pkg/usr/lib $fs/usr
38 rm $fs/usr/lib/libgcc_s.so*
39 rm $fs/usr/lib/libstdc++.so*
40 rm $fs/usr/lib/libgomp.so*
41 # Include files.
42 cp -a $_pkg/usr/include $fs/usr
43 }
45 # Post install commands for Tazpkg.
46 post_install()
47 {
48 local root
49 root=$1
50 echo "Processing post-install commands..."
51 if [ ! -f "$root/lib/cpp" ]; then
52 ln -s ../usr/bin/cpp $root/lib
53 fi
54 if [ ! -f "$root/usr/bin/cc" ]; then
55 ln -s gcc $root/usr/bin/cc
56 fi
57 }