wok diff gmp/receipt @ rev 16240
picoblog: browsers should not execute TARBALL on mirror
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 03 07:03:51 2014 +0000 (2014-04-03) |
parents | f4c22f009037 |
children | 314808318aef |
line diff
1.1 --- a/gmp/receipt Sat Sep 07 18:25:02 2013 +0000 1.2 +++ b/gmp/receipt Thu Apr 03 07:03:51 2014 +0000 1.3 @@ -9,24 +9,22 @@ 1.4 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.5 WEB_SITE="http://gmplib.org/" 1.6 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.7 +#HOST_ARCH="i486 arm" 1.8 1.9 -DEPENDS="glibc-base" 1.10 BUILD_DEPENDS="binutils m4" 1.11 1.12 # Rules to configure and make the package. 1.13 compile_rules() 1.14 { 1.15 - cd $src 1.16 - if [ -x /usr/bin/cook ]; then 1.17 - [ -d "/var/lib/tazpkg/binutils" ] || tazpkg get-install binutils 1.18 - fi 1.19 - # gmp try to cook for 64bits system if kernel can support when using 1.20 - # tmp toolchain. Not only and this export does nothing !!! 1.21 - export ABI=32 1.22 - ./configure $CONFIGURE_ARGS --enable-cxx && 1.23 - make && 1.24 + case "$ARCH" in 1.25 + i?86) 1.26 + export ABI=32 1.27 + ARCH_ARGS="--enable-cxx" ;; 1.28 + esac 1.29 + ./configure \ 1.30 + $CONFIGURE_ARGS $ARCH_ARGS && 1.31 # -j > 1 make install fails. 1.32 - make -j 1 install 1.33 + make && make -j 1 install 1.34 } 1.35 1.36 # Rules to gen a SliTaz package suitable for Tazpkg.