]> git.ipfire.org Git - ipfire-3.x.git/blame - gmp/gmp.nm
gmp: Fix setting ABI variable (+ arm).
[ipfire-3.x.git] / gmp / gmp.nm
CommitLineData
58608bd4 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
58608bd4
MT
4###############################################################################
5
802ea3af
MT
6name = gmp
7version = 5.0.1
ed91fe31 8release = 1
58608bd4 9
802ea3af
MT
10groups = System/Libraries
11url = http://gmplib.org/
12license = LGPLv3+
13summary = A GNU arbitrary precision library.
58608bd4 14
802ea3af 15description
58608bd4
MT
16 The gmp package contains GNU MP, a library for arbitrary precision \
17 arithmetic, signed integers operations, rational numbers and floating \
18 point numbers. GNU MP is designed for speed, for both small and very \
19 large operands. GNU MP is fast because it uses fullwords as the basic \
20 arithmetic type, it uses fast algorithms, it carefully optimizes \
21 assembly code for many CPUs' most common inner loops, and it generally \
22 emphasizes speed over simplicity/elegance in its operations.
802ea3af 23end
58608bd4 24
ed91fe31 25source_dl = ftp://ftp.gmplib.org/pub/%{thisapp}/
802ea3af 26sources = %{thisapp}.tar.bz2
64dc7375 27
802ea3af
MT
28build
29 requires
30 gcc-c++
31 m4
32 end
64dc7375 33
ed91fe31
MT
34 ABI = standard
35
36 if "%{DISTRO_ARCH}" == "x86_64"
37 ABI = 64
38 end
58608bd4 39
ed91fe31
MT
40 if "%{DISTRO_ARCH}" == "i686"
41 ABI = 32
42 end
43
44 build
802ea3af 45 ABI=%{ABI} \
58608bd4 46 ./configure \
58608bd4
MT
47 --prefix=/usr \
48 --enable-cxx \
49 --enable-mpbsd \
50 --disable-static
51
802ea3af
MT
52 make %{PARALLELISMFLAGS}
53 end
54
55 test
56 make check
57 end
58end
59
60packages
61 package %{name}
62 end
63
64 package %{name}-devel
65 template DEVEL
66 end
67end