SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "mpfr"

# SliTaz package receipt

PACKAGE="mpfr"
VERSION="4.1.0"
CATEGORY="development"
SHORT_DESC="C library for multiple-precision floating-point computations."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://gitlab.inria.fr/mpfr"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="https://ftp.gnu.org/gnu/mpfr/$TARBALL"

DEPENDS="gmp"
BUILD_DEPENDS="gmp-dev"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - https://www.mpfr.org/mpfr-current/ 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

#--with-gmp-lib=/cross/$ARCH/sysroot/usr/lib
#--with-gmp-include=/cross/$ARCH/sysroot/usr/include

# Rules to configure and make the package.
compile_rules()
{
    case "$ARCH" in
    (i?86)
        ./configure            \
            --enable-thread-safe    \
            $CONFIGURE_ARGS &&
        make &&
        make check &&
        make install
        ;;
    (*)
        ./configure            \
            --enable-thread-safe    \
            $CONFIGURE_ARGS &&
        make &&
        make install
        ;;
    esac
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_files    *.so*
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)