wok-stable diff h8300-gcc3/receipt @ rev 5652
Up: clamav (0.96.1)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat May 29 19:35:09 2010 +0000 (2010-05-29) |
parents | 892129529706 |
children | fdcef0b5e0c7 |
line diff
1.1 --- a/h8300-gcc3/receipt Sat Sep 05 15:03:56 2009 +0000 1.2 +++ b/h8300-gcc3/receipt Sat May 29 19:35:09 2010 +0000 1.3 @@ -13,6 +13,11 @@ 1.4 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" 1.5 PROVIDE="h8300-gcc" 1.6 1.7 +# Configuration only needs included if we're in the build/wok environment 1.8 +if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then 1.9 + . $WOK/h8300-toolchain/stuff/h8300.conf 1.10 +fi 1.11 + 1.12 # Rules to configure and make the package. 1.13 compile_rules() 1.14 { 1.15 @@ -20,12 +25,11 @@ 1.16 mkdir -p $SOURCE-$VERSION-build 1.17 cd $SOURCE-$VERSION-build 1.18 $src/configure \ 1.19 - --target=h8300-hitachi-hms \ 1.20 + --target=$H8300_TARGET \ 1.21 --enable-languages=c,c++,ada \ 1.22 --disable-nls \ 1.23 --enable-target-optspace \ 1.24 --prefix=/usr \ 1.25 - --exec-prefix=/usr \ 1.26 --libexecdir=/usr/lib \ 1.27 --infodir=/usr/share/info \ 1.28 --mandir=/usr/share/man \ 1.29 @@ -40,9 +44,12 @@ 1.30 mkdir -p $fs/usr 1.31 cp -a $_pkg/usr/bin $fs/usr 1.32 cp -a $_pkg/usr/include $fs/usr 1.33 - # do not need to copy lib/libiberty.a 1.34 + # Do not need to copy lib/libiberty.a 1.35 mkdir -p $fs/usr/lib 1.36 cp -a $_pkg/usr/lib/gcc $fs/usr/lib 1.37 + # Do not include the h8300* variant folders; create separate packages if they are needed 1.38 + rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h 1.39 + rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s 1.40 } 1.41 1.42 # Rules to clean the package