[96268] trunk/dports/multimedia/XviD/Portfile

jmr at macports.org jmr at macports.org
Mon Aug 6 13:07:02 PDT 2012


Revision: 96268
          https://trac.macports.org/changeset/96268
Author:   jmr at macports.org
Date:     2012-08-06 13:07:00 -0700 (Mon, 06 Aug 2012)
Log Message:
-----------
XviD: avoid parse error when build_arch is not in the array of recognised values (#35432)

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

Modified: trunk/dports/multimedia/XviD/Portfile
===================================================================
--- trunk/dports/multimedia/XviD/Portfile	2012-08-06 20:02:12 UTC (rev 96267)
+++ trunk/dports/multimedia/XviD/Portfile	2012-08-06 20:07:00 UTC (rev 96268)
@@ -53,7 +53,9 @@
             set merger_configure_args(${arch}) --build=$my_targets(${arch})-apple-darwin${os.major}
         }
     } else {
-        configure.args-append --build=$my_targets(${configure.build_arch})-apple-darwin${os.major}
+        if {[info exists my_targets(${configure.build_arch})]} {
+            configure.args-append --build=$my_targets(${configure.build_arch})-apple-darwin${os.major}
+        }
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120806/db445c53/attachment.html>


More information about the macports-changes mailing list