]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
gmp: Fix setting ABI variable (+ arm).
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Dec 2011 18:53:13 +0000 (19:53 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Dec 2011 18:53:13 +0000 (19:53 +0100)
gmp/gmp.nm

index 730e1f4c7893a1f8e6d655ecd6f406c12bb5f592..5ad22836c9eb99ca787c7b854e07b6ea2eedee44 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = gmp
 version    = 5.0.1
-release    = 0
+release    = 1
 
 groups     = System/Libraries
 url        = http://gmplib.org/
@@ -22,7 +22,7 @@ description
        emphasizes speed over simplicity/elegance in its operations.
 end
 
-source_dl  =
+source_dl  = ftp://ftp.gmplib.org/pub/%{thisapp}/
 sources    = %{thisapp}.tar.bz2
 
 build
@@ -31,13 +31,17 @@ build
                m4
        end
 
-       build
-               if [ "%{MACHINE}" = "x86_64" ]; then
-                       ABI=64
-               else
-                       ABI=32
-               fi
+       ABI = standard
+
+       if "%{DISTRO_ARCH}" == "x86_64"
+               ABI = 64
+       end
 
+       if "%{DISTRO_ARCH}" == "i686"
+               ABI = 32
+       end
+
+       build
                ABI=%{ABI} \
                ./configure \
                        --prefix=/usr \