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://gitlab.inria.fr/mpfr/mpfr/-/tags?sort=updated_desc 2>/dev/null | \
    sed '/item-title/!d;s|.*tags/||;s|".*||;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*
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)