wok view mpfr/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents c470ca10c896
children
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://www.mpfr.org/$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://gitlab.inria.fr/mpfr/mpfr/-/tags?sort=updated_desc 2>/dev/null | \
23 sed '/item-title/!d;s|.*tags/||;s|".*||;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 }