wok view gcc/receipt @ rev 1472
netatalk: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 04 12:39:08 2008 +0000 (2008-10-04) |
parents | a0004e60c7fd |
children | b89693943f43 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gcc"
4 VERSION="4.2.3"
5 CATEGORY="development"
6 SHORT_DESC="The the GNU Compiler Collection."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS=""
9 BUILD_DEPENDS="glibc-dev gawk flex"
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 # Include files.
41 cp -a $_pkg/usr/include $fs/usr
42 }
44 # Post install commands for Tazpkg.
45 post_install()
46 {
47 local root
48 root=$1
49 echo "Processing post-install commands..."
50 if [ ! -f "$root/lib/cpp" ]; then
51 ln -s ../usr/bin/cpp $root/lib
52 fi
53 if [ ! -f "$root/usr/bin/cc" ]; then
54 ln -s gcc $root/usr/bin/cc
55 fi
56 }