[71978] trunk/dports/devel/tbb/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Sep 29 05:32:45 PDT 2010


Revision: 71978
          http://trac.macports.org/changeset/71978
Author:   ryandesign at macports.org
Date:     2010-09-29 05:32:42 -0700 (Wed, 29 Sep 2010)
Log Message:
-----------
tbb: use a switch statement where that would be the most logical choice

Modified Paths:
--------------
    trunk/dports/devel/tbb/Portfile

Modified: trunk/dports/devel/tbb/Portfile
===================================================================
--- trunk/dports/devel/tbb/Portfile	2010-09-29 12:01:51 UTC (rev 71977)
+++ trunk/dports/devel/tbb/Portfile	2010-09-29 12:32:42 UTC (rev 71978)
@@ -32,14 +32,17 @@
 build.target        tbb tbbmalloc
 
 configure {
-    if {${build_arch} eq "i386"} {
-        set arch_flag intel32
-    } elseif {${build_arch} eq "x86_64"} {
-        set arch_flag intel64
-    } elseif {${build_arch} eq "ppc"} {
-        set arch_flag ppc
-    } elseif {${build_arch} eq "ppc64"} {
-        set arch_flag ppc64
+    switch ${build_arch} {
+        i386 {
+            set arch_flag intel32
+        }
+        x86_64 {
+            set arch_flag intel64
+        }
+        ppc -
+        ppc64 {
+            set arch_flag ${build_arch}
+        }
     }
     build.env-append    arch=${arch_flag}
     test.env-append     arch=${arch_flag}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100929/cf314204/attachment.html>


More information about the macports-changes mailing list