wok annotate h8300-gcc3/receipt @ rev 5782
Speedup some builds
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 10 11:19:46 2010 +0200 (2010-07-10) |
parents | 57411a44bf69 |
children | 91ff9e877eff |
rev | line source |
---|---|
pascal@2176 | 1 # SliTaz package receipt. |
pascal@2176 | 2 |
pascal@2176 | 3 PACKAGE="h8300-gcc3" |
pascal@2176 | 4 SOURCE="gcc" |
pascal@2176 | 5 VERSION="3.4.6" |
pascal@2176 | 6 CATEGORY="development" |
pascal@2176 | 7 SHORT_DESC="gcc targeting the H8/300" |
pascal@2176 | 8 MAINTAINER="rcx@zoominternet.net" |
pascal@2176 | 9 DEPENDS="h8300-binutils" |
rcx@3290 | 10 BUILD_DEPENDS="slitaz-toolchain bison flex h8300-binutils" |
pascal@2176 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@2176 | 12 WEB_SITE="http://www.gnu.org/software/gcc/" |
pascal@2176 | 13 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" |
rcx@4029 | 14 PROVIDE="h8300-gcc" |
pascal@2176 | 15 |
rcx@4034 | 16 # Configuration only needs included if we're in the build/wok environment |
rcx@4034 | 17 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then |
rcx@4034 | 18 . $WOK/h8300-toolchain/stuff/h8300.conf |
rcx@4034 | 19 fi |
rcx@4034 | 20 |
pascal@2176 | 21 # Rules to configure and make the package. |
pascal@2176 | 22 compile_rules() |
pascal@2176 | 23 { |
rcx@3292 | 24 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils |
rcx@3292 | 25 mkdir -p $SOURCE-$VERSION-build |
rcx@3292 | 26 cd $SOURCE-$VERSION-build |
pascal@2176 | 27 $src/configure \ |
rcx@4034 | 28 --target=$H8300_TARGET \ |
rcx@3294 | 29 --enable-languages=c,c++,ada \ |
pascal@2176 | 30 --disable-nls \ |
pascal@2176 | 31 --enable-target-optspace \ |
pascal@2176 | 32 --prefix=/usr \ |
pascal@4014 | 33 --libexecdir=/usr/lib \ |
pascal@2176 | 34 --infodir=/usr/share/info \ |
pascal@2176 | 35 --mandir=/usr/share/man \ |
pascal@2176 | 36 $CONFIGURE_ARGS && |
pascal@5782 | 37 make -j 4 && |
pascal@2176 | 38 make DESTDIR=$src/_pkg install |
pascal@2176 | 39 } |
pascal@2176 | 40 |
pascal@2176 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2176 | 42 genpkg_rules() |
pascal@2176 | 43 { |
pascal@2176 | 44 mkdir -p $fs/usr |
pascal@2176 | 45 cp -a $_pkg/usr/bin $fs/usr |
pascal@2176 | 46 cp -a $_pkg/usr/include $fs/usr |
rcx@4034 | 47 # Do not need to copy lib/libiberty.a |
pascal@2176 | 48 mkdir -p $fs/usr/lib |
pascal@2176 | 49 cp -a $_pkg/usr/lib/gcc $fs/usr/lib |
rcx@4034 | 50 # Do not include the h8300* variant folders; create separate packages if they are needed |
rcx@4034 | 51 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h |
rcx@4034 | 52 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s |
pascal@2176 | 53 } |
rcx@3292 | 54 |
rcx@3292 | 55 # Rules to clean the package |
rcx@3292 | 56 clean_wok() |
rcx@3292 | 57 { |
rcx@3292 | 58 rm -r $SOURCE-$VERSION-build |
rcx@3292 | 59 } |