wok-6.x annotate gcc/receipt @ rev 3249

Up: libwebkit, libwebkit-dev, webkit-web-inspector (1.1.8)
author Mallory Mollo <mallory@sweetpeople.org>
date Sun May 31 23:20:33 2009 +0200 (2009-05-31)
parents 1a75c11a137f
children 45d85b50203a
rev   line source
pankso@9 1 # SliTaz package receipt.
pankso@9 2
pankso@9 3 PACKAGE="gcc"
pankso@3185 4 VERSION="4.4.0"
pankso@204 5 CATEGORY="development"
pankso@9 6 SHORT_DESC="The the GNU Compiler Collection."
pankso@9 7 MAINTAINER="pankso@slitaz.org"
pankso@2700 8 DEPENDS="libgomp gmp mpfr"
pankso@2700 9 BUILD_DEPENDS="glibc-dev gawk flex gmp gmp-dev mpfr mpfr-dev"
pankso@9 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@9 11 WEB_SITE="http://gcc.gnu.org/"
pankso@9 12 WGET_URL="ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/releases/$PACKAGE-$VERSION/$TARBALL"
pankso@9 13
pankso@9 14 # Rules to configure and make the package.
pankso@9 15 compile_rules()
pankso@9 16 {
pankso@3185 17 # Use libiberty.a from binutils.
pankso@3185 18 sed -i 's/install_to_$(INSTALL_DEST) //' \
pankso@3185 19 $PACKAGE-$VERSION/libiberty/Makefile.in || exit 1
pankso@9 20 mkdir gcc-build
pankso@9 21 cd gcc-build
pankso@9 22 ../$PACKAGE-$VERSION/configure --prefix=/usr --libexecdir=/usr/lib \
pankso@9 23 --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \
pankso@9 24 --enable-languages=c,c++ --enable-shared --with-system-zlib \
pankso@9 25 --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit \
pankso@2700 26 --enable-threads=posix --with-tune=i486 i486-pc-linux-gnu &&
pankso@2700 27 make bootstrap &&
pankso@9 28 # Make install in the source tree to help creating derivated pkgs
pankso@9 29 # and keep $_pkg variable set for genpkg.
pankso@9 30 make DESTDIR=$src/_pkg install
pankso@9 31 }
pankso@9 32
pankso@9 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@9 34 genpkg_rules()
pankso@9 35 {
pankso@9 36 mkdir -p $fs/usr/share
pankso@9 37 cp -a $_pkg/usr/bin $fs/usr
pankso@9 38 # Copy all libs. Remove libgcc_s.so and libstdc++.so
pankso@9 39 # they goes in gcc-lib-base-$VERSION package.
pankso@9 40 cp -a $_pkg/usr/lib $fs/usr
pankso@9 41 rm $fs/usr/lib/libgcc_s.so*
pankso@9 42 rm $fs/usr/lib/libstdc++.so*
pascal@2309 43 rm $fs/usr/lib/libgomp.so*
pankso@9 44 # Include files.
pankso@9 45 cp -a $_pkg/usr/include $fs/usr
pankso@9 46 }
pankso@9 47
pankso@9 48 # Post install commands for Tazpkg.
pankso@9 49 post_install()
pankso@9 50 {
pankso@9 51 local root
pankso@9 52 root=$1
pankso@9 53 echo "Processing post-install commands..."
pankso@9 54 if [ ! -f "$root/lib/cpp" ]; then
pankso@9 55 ln -s ../usr/bin/cpp $root/lib
pankso@9 56 fi
pankso@9 57 if [ ! -f "$root/usr/bin/cc" ]; then
pankso@9 58 ln -s gcc $root/usr/bin/cc
pankso@9 59 fi
pankso@9 60 }