wok-6.x annotate gmp/receipt @ rev 10575
gmp: Only install binutils when not installed and using cook. Don't added to bdeps since it will break tazwok cookorder.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed May 25 19:26:31 2011 +0000 (2011-05-25) |
parents | dd0e8a306fc7 |
children | 374c76bed660 |
rev | line source |
---|---|
pankso@520 | 1 # SliTaz package receipt |
pankso@520 | 2 |
pankso@520 | 3 PACKAGE="gmp" |
slaxemulator@6516 | 4 VERSION="5.0.1" |
pankso@520 | 5 CATEGORY="development" |
pankso@520 | 6 SHORT_DESC="GNU Multiple Precision Arithmetic Library." |
pankso@520 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@520 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@520 | 9 WEB_SITE="http://gmplib.org/" |
pankso@520 | 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@520 | 11 |
slaxemulator@10575 | 12 DEPENDS="glibc-base" |
slaxemulator@10575 | 13 #BUILD_DEPENDS="binutils" |
slaxemulator@10575 | 14 |
pankso@520 | 15 # Rules to configure and make the package. |
pankso@520 | 16 compile_rules() |
pankso@520 | 17 { |
pankso@520 | 18 cd $src |
slaxemulator@10575 | 19 if [ -x /usr/bin/cook ]; then |
slaxemulator@10575 | 20 [ -d "/var/lib/tazpkg/binutils" ] || tazpkg get-install binutils |
slaxemulator@10575 | 21 fi |
gokhlayeh@8190 | 22 # gmp try to cook for 64bits system if kernel can support when using |
pankso@10026 | 23 # tmp toolchain. Not only and this export does nothing !!! |
gokhlayeh@8190 | 24 export ABI=32 |
pankso@10026 | 25 ./configure $CONFIGURE_ARGS && |
pascal@1511 | 26 make && |
gokhlayeh@8190 | 27 # -j > 1 make install fails. |
gokhlayeh@8190 | 28 make -j 1 install |
pankso@520 | 29 } |
pankso@520 | 30 |
pankso@520 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@520 | 32 genpkg_rules() |
pankso@520 | 33 { |
pankso@520 | 34 mkdir -p $fs/usr/lib |
pankso@520 | 35 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@520 | 36 } |
pankso@520 | 37 |