wok-next annotate gmp/receipt @ rev 21094
Apply "force-arch" for selected dev packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 31 17:23:40 2018 +0200 (2018-12-31) |
parents | d5aab818505e |
children | b916a2fbb9f0 |
rev | line source |
---|---|
al@19743 | 1 # SliTaz package receipt v2. |
pankso@520 | 2 |
pankso@520 | 3 PACKAGE="gmp" |
al@19743 | 4 VERSION="6.1.2" |
al@19743 | 5 CATEGORY="libdevel" |
al@19743 | 6 SHORT_DESC="GNU Multiple Precision Arithmetic Library" |
al@21020 | 7 MAINTAINER="devel@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 |
al@20436 | 20 compile_rules() { |
al@20436 | 21 # Create generic libraries |
al@20436 | 22 cp -v configfsf.guess config.guess |
al@20436 | 23 cp -v configfsf.sub config.sub |
al@20436 | 24 |
pankso@16027 | 25 ./configure \ |
pankso@16257 | 26 --enable-cxx \ |
al@19570 | 27 --disable-static \ |
pankso@16257 | 28 $CONFIGURE_ARGS && |
al@20570 | 29 fix libtool && |
gokhlayeh@8190 | 30 # -j > 1 make install fails. |
al@21020 | 31 make && |
al@21020 | 32 make html && |
al@21020 | 33 make install && |
al@21020 | 34 make install-html |
pankso@520 | 35 } |
pankso@520 | 36 |
al@20436 | 37 testsuite() { |
al@19570 | 38 checklog=$(mktemp) |
al@19570 | 39 make check 2>&1 | tee $checklog |
al@21020 | 40 pass=$(awk '/# PASS:/{total+=$3}; END{print total}' $checklog) |
al@19570 | 41 echo "$pass / 190 tests passed" |
al@19570 | 42 rm $checklog |
al@19570 | 43 } |
al@19743 | 44 |
al@20436 | 45 genpkg_rules() { |
al@19743 | 46 case $PACKAGE in |
al@20436 | 47 gmp) |
al@20436 | 48 copy @std |
al@20436 | 49 TAGS="LFS" |
al@20436 | 50 ;; |
al@19743 | 51 *-dev) copy @dev;; |
al@19743 | 52 esac |
al@19743 | 53 } |