wok-next view gmp/receipt @ rev 20554
Fix build brasero, clutter-gtk, freetype-infinality, gnome-commander
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 06 16:49:09 2018 +0300 (2018-04-06) |
parents | 12ed7c1691a4 |
children | a5d7827e08cf |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gmp"
4 VERSION="6.1.2"
5 CATEGORY="libdevel"
6 SHORT_DESC="GNU Multiple Precision Arithmetic Library"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://gmplib.org/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gmp.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="binutils m4 ncurses-dev readline-dev texinfo"
16 SPLIT="gmp gmp-dev"
18 compile_rules() {
19 # Create generic libraries
20 cp -v configfsf.guess config.guess
21 cp -v configfsf.sub config.sub
23 ./configure \
24 --enable-cxx \
25 --disable-static \
26 $CONFIGURE_ARGS &&
27 # -j > 1 make install fails.
28 make && make html && make install && make install-html
29 }
31 testsuite() {
32 checklog=$(mktemp)
33 make check 2>&1 | tee $checklog
34 pass=$(awk '/# PASS:/{total+=$3} ; END{print total}' $checklog)
35 echo "$pass / 190 tests passed"
36 rm $checklog
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 gmp)
42 copy @std
43 TAGS="LFS"
44 ;;
45 *-dev) copy @dev;;
46 esac
47 }