wok annotate mpfr/receipt @ rev 25511
memtest: 386 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 13 17:17:56 2023 +0000 (21 months ago) |
parents | 9dbcbcae7c12 |
children | c470ca10c896 |
rev | line source |
---|---|
pankso@520 | 1 # SliTaz package receipt |
pankso@520 | 2 |
pankso@520 | 3 PACKAGE="mpfr" |
Hans-G?nter@24922 | 4 VERSION="4.1.0" |
pankso@520 | 5 CATEGORY="development" |
pankso@520 | 6 SHORT_DESC="C library for multiple-precision floating-point computations." |
pankso@520 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pascal@24980 | 9 WEB_SITE="https://gitlab.inria.fr/mpfr" |
Hans-G?nter@21483 | 10 |
Hans-G?nter@21483 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@24980 | 12 WGET_URL="https://ftp.gnu.org/gnu/mpfr/$TARBALL" |
pankso@9741 | 13 |
pankso@9741 | 14 DEPENDS="gmp" |
pankso@9750 | 15 BUILD_DEPENDS="gmp-dev" |
pankso@520 | 16 |
Hans-G?nter@21483 | 17 HOST_ARCH="i486 arm" |
Hans-G?nter@21483 | 18 |
pascal@24436 | 19 # What is the latest version available today? |
pascal@24436 | 20 current_version() |
pascal@24436 | 21 { |
pascal@24436 | 22 wget -O - https://www.mpfr.org/mpfr-current/ 2>/dev/null | \ |
pascal@24436 | 23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24436 | 24 } |
pascal@24436 | 25 |
pankso@16319 | 26 #--with-gmp-lib=/cross/$ARCH/sysroot/usr/lib |
pankso@16319 | 27 #--with-gmp-include=/cross/$ARCH/sysroot/usr/include |
pankso@16319 | 28 |
pankso@520 | 29 # Rules to configure and make the package. |
pankso@520 | 30 compile_rules() |
pankso@16319 | 31 { |
pascal@19096 | 32 case "$ARCH" in |
Hans-G?nter@24922 | 33 (i?86) |
Hans-G?nter@21483 | 34 ./configure \ |
Hans-G?nter@21483 | 35 --enable-thread-safe \ |
pascal@19096 | 36 $CONFIGURE_ARGS && |
Hans-G?nter@21483 | 37 make && |
Hans-G?nter@21483 | 38 make check && |
Hans-G?nter@24922 | 39 make install |
Hans-G?nter@24922 | 40 ;; |
Hans-G?nter@24922 | 41 (*) |
Hans-G?nter@21483 | 42 ./configure \ |
Hans-G?nter@21483 | 43 --enable-thread-safe \ |
pascal@19096 | 44 $CONFIGURE_ARGS && |
Hans-G?nter@21483 | 45 make && |
Hans-G?nter@24922 | 46 make install |
Hans-G?nter@24922 | 47 ;; |
pascal@19096 | 48 esac |
pankso@520 | 49 } |
pankso@520 | 50 |
pankso@520 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@520 | 52 genpkg_rules() |
pankso@520 | 53 { |
Hans-G?nter@24922 | 54 cook_copy_files *.so* |
pankso@520 | 55 } |