wok-4.x view gcc/receipt @ rev 496
Typo in Xine and add missing desktop file
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 23 20:43:44 2008 +0100 (2008-03-23) |
parents | 17a39e4461e4 |
children | 880f45097250 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gcc"
4 VERSION="4.2.2"
5 CATEGORY="development"
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 }
43 # Post install commands for Tazpkg.
44 post_install()
45 {
46 local root
47 root=$1
48 echo "Processing post-install commands..."
49 if [ ! -f "$root/lib/cpp" ]; then
50 ln -s ../usr/bin/cpp $root/lib
51 fi
52 if [ ! -f "$root/usr/bin/cc" ]; then
53 ln -s gcc $root/usr/bin/cc
54 fi
55 }