|
root / devel / mpc
mpc Plain Text 50 lines 1.1 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
49
#!/bin/bash
# Build script for MPC

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 \
    --with-mpfr=$PREFIX

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# MPC - Multiple Precision Complex Library
# https://www.multiprecision.org/mpc/

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

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

[[source]]
file = "mpc-1.3.1.tar.gz"
urls = [
    "https://ftpmirror.gnu.org/mpc/mpc-1.3.1.tar.gz",
    "https://ftp.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz",
    "https://mirrors.kernel.org/gnu/mpc/mpc-1.3.1.tar.gz"
]
checksum = "ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8"

[build]
parallel = true