wok annotate mpfr/receipt @ rev 24922
updated mpfr and mpfr-dev (4.0.2 -> 4.1.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 11 07:23:35 2022 +0100 (2022-04-11) |
parents | 2a0479881723 |
children | 9b180a3071fb |
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@20671 | 9 WEB_SITE="https://www.mpfr.org/" |
Hans-G?nter@21483 | 10 |
Hans-G?nter@21483 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@21483 | 12 WGET_URL="${WEB_SITE}$PACKAGE-$VERSION/$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 } |