wok-next annotate gcc3/receipt @ rev 8350
Fix: wv needs -j1 to install.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Feb 02 05:08:40 2011 +0000 (2011-02-02) |
parents | 887328e98069 |
children | 7461a0c31d62 |
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" |
pascal@439 | 10 TARBALL="gcc-$VERSION.tar.bz2" |
pascal@439 | 11 WEB_SITE="http://gcc.gnu.org/" |
pascal@439 | 12 WGET_URL="ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/releases/gcc-$VERSION/$TARBALL" |
pascal@439 | 13 |
pascal@439 | 14 # Rules to configure and make the package. |
pascal@439 | 15 compile_rules() |
pascal@439 | 16 { |
pascal@439 | 17 mkdir gcc-build |
pascal@439 | 18 cd gcc-build |
pascal@439 | 19 ../gcc-$VERSION/configure --prefix=/usr --libexecdir=/usr/lib \ |
pascal@439 | 20 --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \ |
pascal@439 | 21 --enable-languages=c,c++ --enable-shared --with-system-zlib \ |
pascal@439 | 22 --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit \ |
pascal@439 | 23 --enable-threads=posix --with-tune=i486 i486-pc-linux-gnu \ |
pascal@439 | 24 --program-suffix=-3 |
pascal@5781 | 25 make -j 4 bootstrap |
pascal@439 | 26 # Make install in the source tree to help creating derivated pkgs |
pascal@439 | 27 # and keep $_pkg variable set for genpkg. |
pascal@5781 | 28 make -j 4 DESTDIR=$src/_pkg install |
pascal@439 | 29 } |
pascal@439 | 30 |
pascal@439 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@439 | 32 genpkg_rules() |
pascal@439 | 33 { |
pascal@439 | 34 mkdir -p $fs/usr |
pascal@439 | 35 cp -a $src/_pkg/usr/bin $src/_pkg/usr/lib $src/_pkg/usr/include $fs/usr |
pascal@439 | 36 rm $fs/usr/lib/lib* |
pascal@439 | 37 } |