wok-6.x view gcc/receipt @ rev 182
syslinux-extra: back to ver 3.54
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Tue Feb 05 00:47:04 2008 +0100 (2008-02-05) |
parents | |
children | 17a39e4461e4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gcc"
4 VERSION="4.2.2"
5 CATEGORY="extra"
6 SHORT_DESC="The the GNU Compiler Collection."
7 MAINTAINER="pankso@slitaz.org"
8 BUILD_DEPENDS="gawk"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://gcc.gnu.org/"
11 WGET_URL="ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/releases/$PACKAGE-$VERSION/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 mkdir gcc-build
17 cd gcc-build
18 ../$PACKAGE-$VERSION/configure --prefix=/usr --libexecdir=/usr/lib \
19 --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \
20 --enable-languages=c,c++ --enable-shared --with-system-zlib \
21 --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit \
22 --enable-threads=posix --with-tune=i486 i486-pc-linux-gnu
23 make bootstrap
24 # Make install in the source tree to help creating derivated pkgs
25 # and keep $_pkg variable set for genpkg.
26 make DESTDIR=$src/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share
33 cp -a $_pkg/usr/bin $fs/usr
34 # Copy all libs. Remove libgcc_s.so and libstdc++.so
35 # they goes in gcc-lib-base-$VERSION package.
36 cp -a $_pkg/usr/lib $fs/usr
37 rm $fs/usr/lib/libgcc_s.so*
38 rm $fs/usr/lib/libstdc++.so*
39 # Include files.
40 cp -a $_pkg/usr/include $fs/usr
41 # Strip.
42 strip --strip-debug $fs/usr/bin/* 2>/dev/null
43 strip --strip-debug $fs/usr/lib/*.so*
44 strip --strip-debug $fs/usr/lib/gcc/*/$VERSION/cc*
45 }
47 # Post install commands for Tazpkg.
48 post_install()
49 {
50 local root
51 root=$1
52 echo "Processing post-install commands..."
53 if [ ! -f "$root/lib/cpp" ]; then
54 ln -s ../usr/bin/cpp $root/lib
55 fi
56 if [ ! -f "$root/usr/bin/cc" ]; then
57 ln -s gcc $root/usr/bin/cc
58 fi
59 }