wok-current view mpfr/receipt @ rev 25124
updated apache-mod-perl (2.0.8 -> 2.0.11)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 28 16:23:55 2022 +0100 (2022-06-28) |
parents | 9dbcbcae7c12 |
children | 5926178cd6fa |
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://gitlab.inria.fr/mpfr"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://ftp.gnu.org/gnu/mpfr/$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 }