From: Michael Tremer Date: Sat, 3 Dec 2011 18:53:13 +0000 (+0100) Subject: gmp: Fix setting ABI variable (+ arm). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed91fe311d3d726fc2387bf446a30716129396df;p=ipfire-3.x.git gmp: Fix setting ABI variable (+ arm). --- diff --git a/gmp/gmp.nm b/gmp/gmp.nm index 730e1f4c7..5ad22836c 100644 --- a/gmp/gmp.nm +++ b/gmp/gmp.nm @@ -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 \