|
root / devel / gmp
gmp 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 GMP

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"

./configure \
    --prefix=$PREFIX \
    --libdir=$PREFIX/lib \
    --enable-cxx \
    --enable-fat

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# GMP - GNU Multiple Precision Arithmetic Library
# https://gmplib.org/

[package]
name = "gmp"
version = "6.3.0"
release = 1
description = "GNU Multiple Precision Arithmetic Library"
url = "https://gmplib.org/"
license = "LGPL-3.0-or-later OR GPL-2.0-or-later"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "gmp-6.3.0.tar.xz"
urls = [
    "https://ftpmirror.gnu.org/gmp/gmp-6.3.0.tar.xz",
    "https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz",
    "https://mirrors.kernel.org/gnu/gmp/gmp-6.3.0.tar.xz"
]
checksum = "a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898"

[build]
parallel = true