wok view mpfr/receipt @ rev 24924

Add as & asxxxx
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 13 10:27:34 2022 +0000 (2022-04-13)
parents 2a0479881723
children 9b180a3071fb
line source
1 # SliTaz package receipt
3 PACKAGE="mpfr"
4 VERSION="4.1.0"
5 CATEGORY="development"
6 SHORT_DESC="C library for multiple-precision floating-point computations."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.mpfr.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="${WEB_SITE}$PACKAGE-$VERSION/$TARBALL"
14 DEPENDS="gmp"
15 BUILD_DEPENDS="gmp-dev"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://www.mpfr.org/mpfr-current/ 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 #--with-gmp-lib=/cross/$ARCH/sysroot/usr/lib
27 #--with-gmp-include=/cross/$ARCH/sysroot/usr/include
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 case "$ARCH" in
33 (i?86)
34 ./configure \
35 --enable-thread-safe \
36 $CONFIGURE_ARGS &&
37 make &&
38 make check &&
39 make install
40 ;;
41 (*)
42 ./configure \
43 --enable-thread-safe \
44 $CONFIGURE_ARGS &&
45 make &&
46 make install
47 ;;
48 esac
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 cook_copy_files *.so*
55 }