[137244] trunk/dports/math/gts/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Jun 7 00:04:28 PDT 2015


Revision: 137244
          https://trac.macports.org/changeset/137244
Author:   ryandesign at macports.org
Date:     2015-06-07 00:04:28 -0700 (Sun, 07 Jun 2015)
Log Message:
-----------
gts: don't require a native arch to be listed first in universal_archs

Modified Paths:
--------------
    trunk/dports/math/gts/Portfile

Modified: trunk/dports/math/gts/Portfile
===================================================================
--- trunk/dports/math/gts/Portfile	2015-06-07 06:50:11 UTC (rev 137243)
+++ trunk/dports/math/gts/Portfile	2015-06-07 07:04:28 UTC (rev 137244)
@@ -54,16 +54,11 @@
         }
     }
     
-    set run_arch [lindex ${universal_archs} 0]
-    if {[lsearch ${cross_archs} ${run_arch}] >= 0} {
-        ui_msg "When building a universal binary of ${name}, make sure none of {${cross_archs}} is first in universal_archs in ${prefix}/etc/macports/macports.conf"
-        error "incompatible universal_archs value"
-    }
-    
     post-configure {
+        system -W ${worksrcpath}-${build_arch}/src "${build.cmd} predicates_init"
         foreach arch ${cross_archs} {
             if {[file exists ${worksrcpath}-${arch}/src/Makefile]} {
-                reinplace "s|\\./predicates_init|${worksrcpath}-${run_arch}/src/predicates_init|" \
+                reinplace "s|\\./predicates_init|${worksrcpath}-${build_arch}/src/predicates_init|" \
                     ${worksrcpath}-${arch}/src/Makefile
             }
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150607/0896639f/attachment.html>


More information about the macports-changes mailing list