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

jmr at macports.org jmr at macports.org
Sun May 20 10:28:30 PDT 2012


Revision: 93347
          https://trac.macports.org/changeset/93347
Author:   jmr at macports.org
Date:     2012-05-20 10:28:30 -0700 (Sun, 20 May 2012)
Log Message:
-----------
libvpx: don't fail to parse because of unknown arch

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

Modified: trunk/dports/multimedia/libvpx/Portfile
===================================================================
--- trunk/dports/multimedia/libvpx/Portfile	2012-05-20 17:25:36 UTC (rev 93346)
+++ trunk/dports/multimedia/libvpx/Portfile	2012-05-20 17:28:30 UTC (rev 93347)
@@ -82,10 +82,16 @@
     configure.universal_args-delete --disable-dependency-tracking
     foreach my_arch ${configure.universal_archs} {
         set merger_host(${my_arch}) ""
-        set merger_configure_args(${my_arch}) --target=$my_targets(${my_arch})-${os.platform}${os.major}-gcc
+        if {[info exists my_targets(${my_arch})]} {
+            set merger_configure_args(${my_arch}) --target=$my_targets(${my_arch})-${os.platform}${os.major}-gcc
+        }
     }
 } else {
     # specify only the single target, otherwise 'configure' will try
     # for a universal install.
-    configure.args-append --target=$my_targets(${build_arch})-${os.platform}${os.major}-gcc
+    if {[info exists my_targets(${my_arch})]} {
+        configure.args-append --target=$my_targets(${build_arch})-${os.platform}${os.major}-gcc
+    } else {
+        configure.args-append --target=${os.arch}-${os.platform}${os.major}-gcc
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120520/b0ed358e/attachment.html>


More information about the macports-changes mailing list