[70237] trunk/dports/multimedia/libvpx/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Aug 3 00:23:32 PDT 2010


Revision: 70237
          http://trac.macports.org/changeset/70237
Author:   ryandesign at macports.org
Date:     2010-08-03 00:23:28 -0700 (Tue, 03 Aug 2010)
Log Message:
-----------
libvpx: use a switch statement where that is the most logical construct

Modified Paths:
--------------
    trunk/dports/multimedia/libvpx/Portfile

Modified: trunk/dports/multimedia/libvpx/Portfile
===================================================================
--- trunk/dports/multimedia/libvpx/Portfile	2010-08-03 07:16:08 UTC (rev 70236)
+++ trunk/dports/multimedia/libvpx/Portfile	2010-08-03 07:23:28 UTC (rev 70237)
@@ -58,11 +58,10 @@
 if {![variant_isset universal] || ![variant_exists universal]} {
     # specify only the single target, otherwise 'configure' will try
     # for a 'universal' install.
-    set tgt_isa "${build_arch}"
-    if {${build_arch} == "i386"} {
-        set tgt_isa "x86"
-    } elseif {${build_arch} == "ppc"} {
-        set tgt_isa "ppc32"
+    switch ${build_arch} {
+        i386    { set tgt_isa x86           }
+        ppc     { set tgt_isa ppc32         }
+        default { set tgt_isa ${build_arch} }
     }
     configure.args-append --target=${tgt_isa}-${os.platform}${os.major}-gcc
 } else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100803/e6be98e4/attachment.html>


More information about the macports-changes mailing list