|
root / devel / mpfr
mpfr Plain Text 49 lines 1.0 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# Build script for MPFR

set -e
cd "$SRCDIR"

export PATH="/usr/gnu/bin:$PATH"
export CC="gcc -m64"
export CXX="g++ -m64"
export CFLAGS="-m64 -O2"
export CXXFLAGS="-m64 -O2"
export LDFLAGS="-L$PREFIX/lib $LDFLAGS"

./configure \
    --prefix=$PREFIX \
    --libdir=$PREFIX/lib \
    --with-gmp=$PREFIX

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# MPFR - Multiple Precision Floating-Point Reliable Library
# https://www.mpfr.org/

[package]
name = "mpfr"
version = "4.2.1"
release = 1
description = "Multiple Precision Floating-Point Reliable Library"
url = "https://www.mpfr.org/"
license = "LGPL-3.0-or-later"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["gmp"]
build = ["gmp"]

[[source]]
file = "mpfr-4.2.1.tar.xz"
urls = [
    "https://ftpmirror.gnu.org/mpfr/mpfr-4.2.1.tar.xz",
    "https://ftp.gnu.org/gnu/mpfr/mpfr-4.2.1.tar.xz",
    "https://mirrors.kernel.org/gnu/mpfr/mpfr-4.2.1.tar.xz"
]
checksum = "277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2"

[build]
parallel = true