[121203] trunk/dports/python/py-sip/Portfile

michaelld at macports.org michaelld at macports.org
Thu Jun 19 19:10:33 PDT 2014


Revision: 121203
          https://trac.macports.org/changeset/121203
Author:   michaelld at macports.org
Date:     2014-06-19 19:10:32 -0700 (Thu, 19 Jun 2014)
Log Message:
-----------
py*-sip: Always add some arch flags during configuration, since the user might have overridden the default arch build.  Addresses ticket #44086.

Modified Paths:
--------------
    trunk/dports/python/py-sip/Portfile

Modified: trunk/dports/python/py-sip/Portfile
===================================================================
--- trunk/dports/python/py-sip/Portfile	2014-06-20 02:09:23 UTC (rev 121202)
+++ trunk/dports/python/py-sip/Portfile	2014-06-20 02:10:32 UTC (rev 121203)
@@ -85,10 +85,12 @@
                         --incdir=${python.include} \
                         --sipdir=${prefix}/share/${subport}
 
-    configure.post_args LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
+    # always add some arch flags, since the user might have overridden
+    # the default arch build (e.g., ticket #44086).
 
     python.add_archflags    no
     if {[variant_isset universal]} {
+
         foreach arch ${configure.universal_archs} {
             configure.args-append   "--arch=${arch}"
         }
@@ -97,6 +99,15 @@
                                     ${configure.universal_ldflags}"
         configure.post_args-append  CFLAGS="${configure.universal_cflags}"
         configure.post_args-append  CXXFLAGS="${configure.universal_cxxflags}"
+
+    } else {
+
+        configure.args-append       "--arch=${configure.build_arch}"
+        configure.post_args LFLAGS="-F${frameworks_dir} -L${prefix}/lib \
+                                    ${configure.ld_archflags}"
+        configure.post_args-append  CFLAGS="${configure.cc_archflags}"
+        configure.post_args-append  CXXFLAGS="${configure.cxx_archflags}"
+
     }
 
     if {[vercmp ${xcodeversion} 4.3] < 0} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140619/783af628/attachment.html>


More information about the macports-changes mailing list