wok-next annotate gmp/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | e19ff076dc63 |
children |
rev | line source |
---|---|
al@19743 | 1 # SliTaz package receipt v2. |
pankso@520 | 2 |
pankso@520 | 3 PACKAGE="gmp" |
Hans-G?nter@21691 | 4 VERSION="6.2.0" |
al@19743 | 5 CATEGORY="libdevel" |
al@19743 | 6 SHORT_DESC="GNU Multiple Precision Arithmetic Library" |
Hans-G?nter@21691 | 7 MAINTAINER="maintainer@slitaz.org" |
pascal@15201 | 8 LICENSE="GPL3" |
al@19570 | 9 WEB_SITE="https://gmplib.org/" |
al@20436 | 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gmp.html" |
pankso@520 | 11 |
al@19570 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19570 | 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
al@19570 | 14 |
al@21094 | 15 COOKOPTS="force-arch" # different .h |
al@21094 | 16 |
al@19570 | 17 BUILD_DEPENDS="binutils m4 ncurses-dev readline-dev texinfo" |
al@21020 | 18 SPLIT="$PACKAGE-dev" |
slaxemulator@10575 | 19 |
Hans-G?nter@21691 | 20 compile_rules() |
Hans-G?nter@21691 | 21 { |
al@20436 | 22 # Create generic libraries |
Hans-G?nter@21691 | 23 cp -v configfsf.guess config.guess |
Hans-G?nter@21691 | 24 cp -v configfsf.sub config.sub |
al@20436 | 25 |
Hans-G?nter@21691 | 26 ./configure \ |
Hans-G?nter@21691 | 27 --enable-cxx \ |
Hans-G?nter@21691 | 28 --disable-static \ |
pankso@16257 | 29 $CONFIGURE_ARGS && |
al@20570 | 30 fix libtool && |
gokhlayeh@8190 | 31 # -j > 1 make install fails. |
al@21020 | 32 make && |
al@21020 | 33 make html && |
al@21020 | 34 make install && |
al@21020 | 35 make install-html |
pankso@520 | 36 } |
pankso@520 | 37 |
Hans-G?nter@21691 | 38 testsuite() |
Hans-G?nter@21691 | 39 { |
al@19570 | 40 checklog=$(mktemp) |
al@19570 | 41 make check 2>&1 | tee $checklog |
al@21020 | 42 pass=$(awk '/# PASS:/{total+=$3}; END{print total}' $checklog) |
al@19570 | 43 echo "$pass / 190 tests passed" |
al@19570 | 44 rm $checklog |
al@19570 | 45 } |
al@19743 | 46 |
Hans-G?nter@21691 | 47 genpkg_rules() |
Hans-G?nter@21691 | 48 { |
al@19743 | 49 case $PACKAGE in |
al@20436 | 50 gmp) |
al@20436 | 51 copy @std |
al@20436 | 52 TAGS="LFS" |
al@20436 | 53 ;; |
al@19743 | 54 *-dev) copy @dev;; |
al@19743 | 55 esac |
al@19743 | 56 } |