[57219] trunk/dports/aqua/qt4-mac/Portfile

macsforever2000 at macports.org macsforever2000 at macports.org
Mon Sep 7 12:16:34 PDT 2009


Revision: 57219
          http://trac.macports.org/changeset/57219
Author:   macsforever2000 at macports.org
Date:     2009-09-07 12:16:30 -0700 (Mon, 07 Sep 2009)
Log Message:
-----------
Fix for building in snow leopard. (#20937)

Modified Paths:
--------------
    trunk/dports/aqua/qt4-mac/Portfile

Modified: trunk/dports/aqua/qt4-mac/Portfile
===================================================================
--- trunk/dports/aqua/qt4-mac/Portfile	2009-09-07 18:54:00 UTC (rev 57218)
+++ trunk/dports/aqua/qt4-mac/Portfile	2009-09-07 19:16:30 UTC (rev 57219)
@@ -54,6 +54,15 @@
 configure.cppflags
 configure.ldflags
 
+################################################################################
+# We do not want flags of any kind -- QT is smart enough to set up its own.    #
+################################################################################
+
+configure.universal_cflags
+configure.universal_cppflags
+configure.universal_cxxflags
+configure.universal_ldflags
+
 set dirname qt4-mac
 set qt_dir ${prefix}/libexec/${dirname}
 
@@ -78,7 +87,8 @@
     -system-sqlite                                        \
     -openssl-linked                                       \
     -dbus-linked                                          \
-    -L${prefix}/lib
+    -L${prefix}/lib                                       \
+    -arch            \"${build_arch}\"
 
 lappend cpath        ${prefix}/include
 lappend library_path ${prefix}/lib
@@ -114,7 +124,7 @@
 
     lappend cpath        ${prefix}/include/mysql5/mysql
     lappend library_path ${prefix}/lib/mysql5/mysql
-    
+
     configure.args-delete -no-sql-mysql
 }
 
@@ -224,13 +234,8 @@
 
 variant universal {
     configure.universal_args-delete --disable-dependency-tracking
-    foreach arch ${universal_archs} {
-        if { ${arch}=="i386" } {
-            configure.args-append -arch x86
-        } else {
-            configure.args-append -arch ${arch}
-        }
-    }
+    configure.args-delete -arch            \"${build_arch}\"
+    configure.args-append -arch            \"${universal_archs}\"
     if {[info exists universal_sysroot]} {
         configure.args-append -sdk ${universal_sysroot}
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090907/71278956/attachment.html>


More information about the macports-changes mailing list