wok-stable annotate gcc3/receipt @ rev 9333

Up: slitaz-fbsplash (1.1) - Up config
author Christophe Lincoln <pankso@slitaz.org>
date Fri Mar 18 13:24:24 2011 +0100 (2011-03-18)
parents 616a8fb2f4e1
children 89d2e45be6c5
rev   line source
pascal@439 1 # SliTaz package receipt.
pascal@439 2
pascal@439 3 PACKAGE="gcc3"
pascal@439 4 VERSION="3.4.6"
pascal@439 5 CATEGORY="development"
pascal@439 6 SHORT_DESC="The the GNU Compiler Collection."
pascal@439 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@439 8 BUILD_DEPENDS="gawk"
pascal@439 9 DEPENDS="gcc"
slaxemulator@9127 10 SOURCE="gcc"
slaxemulator@9127 11 TARBALL="$SOURCE-$VERSION.tar.bz2"
pascal@439 12 WEB_SITE="http://gcc.gnu.org/"
slaxemulator@9127 13 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL"
slaxemulator@9127 14 #WGET_URL="ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/releases/gcc-$VERSION/$TARBALL"
pascal@439 15
pascal@439 16 # Rules to configure and make the package.
pascal@439 17 compile_rules()
pascal@439 18 {
pascal@439 19 mkdir gcc-build
pascal@439 20 cd gcc-build
gokhlayeh@8793 21 $src/configure --prefix=/usr --libexecdir=/usr/lib \
pascal@439 22 --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \
pascal@439 23 --enable-languages=c,c++ --enable-shared --with-system-zlib \
pascal@439 24 --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit \
pascal@439 25 --enable-threads=posix --with-tune=i486 i486-pc-linux-gnu \
pascal@439 26 --program-suffix=-3
pascal@5781 27 make -j 4 bootstrap
pascal@439 28 # Make install in the source tree to help creating derivated pkgs
pascal@439 29 # and keep $_pkg variable set for genpkg.
pascal@9023 30 make -j 4 install
pascal@439 31 }
pascal@439 32
pascal@439 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@439 34 genpkg_rules()
pascal@439 35 {
pascal@439 36 mkdir -p $fs/usr
pascal@9023 37 cp -a $_pkg/usr/bin $_pkg/usr/lib $_pkg/usr/include $fs/usr
pascal@439 38 rm $fs/usr/lib/lib*
pascal@439 39 }