wok-6.x annotate gmp/receipt @ rev 12262
Up: gmp (5.0.4) First new pkg used by new toolchain
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 11 17:36:00 2012 +0200 (2012-04-11) |
parents | 374c76bed660 |
children | ba9a10a1fef4 |
rev | line source |
---|---|
pankso@520 | 1 # SliTaz package receipt |
pankso@520 | 2 |
pankso@520 | 3 PACKAGE="gmp" |
pankso@12262 | 4 VERSION="5.0.4" |
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" |
gokhlayeh@11384 | 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@12262 | 35 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@520 | 36 } |
pankso@520 | 37 |