<pre style='margin:0'>
MarcusCalhoun-Lopez pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/faa150aa1dd3b77115a58425ae97778ff0f0fbfd">https://github.com/macports/macports-ports/commit/faa150aa1dd3b77115a58425ae97778ff0f0fbfd</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit faa150aa1dd3b77115a58425ae97778ff0f0fbfd
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Tue Dec 27 11:35:13 2016 -0700
<span style='display:block; white-space:pre;color:#404040;'> qmake5 ports: for consistency, add -arch x86_64
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> qmake assumes 64-bit build is the default.
</span><span style='display:block; white-space:pre;color:#404040;'> It only uses -arch for -arch i386.
</span>---
_resources/port1.0/group/qmake5-1.0.tcl | 15 +++++++++++++++
aqua/qt5/files/patch-mkspecs.diff | 12 ++++++++++--
aqua/qt55/files/patch-mkspecs.diff | 12 ++++++++++--
3 files changed, 35 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/qmake5-1.0.tcl b/_resources/port1.0/group/qmake5-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 8531f08..b1f69c9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/qmake5-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/qmake5-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -53,6 +53,8 @@ pre-configure {
</span> #
# -spec specifies build configuration (compiler, 32-bit/64-bit, etc.)
#
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # set -arch x86_64 since macx-clang spec file assumes it is the default
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span> if {[variant_exists universal] && [variant_isset universal]} {
global merger_configure_args
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -65,6 +67,12 @@ pre-configure {
</span> QT_ARCH=${arch} \
QT_TARGET_ARCH=${arch}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend merger_configure_args(x86_64) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QMAKE_CFLAGS+='-arch x86_64' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QMAKE_CXXFLAGS+='-arch x86_64' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QMAKE_LFLAGS+='-arch x86_64'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> } else {
configure.args-append -spec ${qt_qmake_spec}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -72,6 +80,13 @@ pre-configure {
</span> configure.args-append \
QT_ARCH=${build_arch} \
QT_TARGET_ARCH=${build_arch}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${configure.build_arch} eq "x86_64" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QMAKE_CFLAGS+="-arch x86_64" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QMAKE_CXXFLAGS+="-arch x86_64" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QMAKE_LFLAGS+="-arch x86_64"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt5/files/patch-mkspecs.diff b/aqua/qt5/files/patch-mkspecs.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index e07283a..31fa02b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/qt5/files/patch-mkspecs.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt5/files/patch-mkspecs.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,11 +1,15 @@
</span> --- mkspecs/macx-clang/qmake.conf.orig 2016-10-31 19:10:55.000000000 -0700
+++ mkspecs/macx-clang/qmake.conf 2016-10-31 19:12:23.000000000 -0700
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -11,6 +11,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -11,6 +11,10 @@
</span> include(../common/clang.conf)
include(../common/clang-mac.conf)
-QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
+QMAKE_MACOSX_DEPLOYMENT_TARGET = __MACPORTS_DEPLOYMENT_TARGET__
<span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++QMAKE_CFLAGS += -arch x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++QMAKE_CXXFLAGS += -arch x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++QMAKE_LFLAGS += -arch x86_64
</span>
load(qt_config)
--- mkspecs/macx-clang-32/qmake.conf.orig 2016-10-31 19:11:03.000000000 -0700
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,12 +25,16 @@
</span> QMAKE_CXXFLAGS += -arch i386
--- mkspecs/macx-g++/qmake.conf.orig 2016-10-31 19:11:10.000000000 -0700
+++ mkspecs/macx-g++/qmake.conf 2016-10-31 19:13:33.000000000 -0700
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -14,6 +14,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -14,6 +14,10 @@
</span> include(../common/gcc-base-mac.conf)
include(../common/g++-macx.conf)
-QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
+QMAKE_MACOSX_DEPLOYMENT_TARGET = __MACPORTS_DEPLOYMENT_TARGET__
<span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++QMAKE_CFLAGS += -arch x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++QMAKE_CXXFLAGS += -arch x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++QMAKE_LFLAGS += -arch x86_64
</span>
load(qt_config)
--- mkspecs/macx-g++-32/qmake.conf.orig 2016-10-31 19:11:18.000000000 -0700
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt55/files/patch-mkspecs.diff b/aqua/qt55/files/patch-mkspecs.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 6bfa893..eabe00c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/qt55/files/patch-mkspecs.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt55/files/patch-mkspecs.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,11 +1,15 @@
</span> --- mkspecs/macx-clang/qmake.conf.orig 2015-10-12 21:35:32.000000000 -0700
+++ mkspecs/macx-clang/qmake.conf 2016-11-12 07:33:45.000000000 -0700
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -11,6 +11,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -11,6 +11,10 @@
</span> include(../common/clang.conf)
include(../common/clang-mac.conf)
-QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
+QMAKE_MACOSX_DEPLOYMENT_TARGET = __MACPORTS_DEPLOYMENT_TARGET__
<span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++QMAKE_CFLAGS += -arch x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++QMAKE_CXXFLAGS += -arch x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++QMAKE_LFLAGS += -arch x86_64
</span>
load(qt_config)
--- mkspecs/macx-clang-32/qmake.conf.orig 2015-10-12 21:35:32.000000000 -0700
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,12 +25,16 @@
</span> QMAKE_OBJECTIVE_CFLAGS += -arch i386
--- mkspecs/macx-g++/qmake.conf.orig 2015-10-12 21:35:32.000000000 -0700
+++ mkspecs/macx-g++/qmake.conf 2016-11-12 07:33:12.000000000 -0700
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -14,6 +14,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -14,6 +14,10 @@
</span> include(../common/gcc-base-mac.conf)
include(../common/g++-macx.conf)
-QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
+QMAKE_MACOSX_DEPLOYMENT_TARGET = __MACPORTS_DEPLOYMENT_TARGET__
<span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++QMAKE_CFLAGS += -arch x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++QMAKE_CXXFLAGS += -arch x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++QMAKE_LFLAGS += -arch x86_64
</span>
load(qt_config)
--- mkspecs/macx-g++-32/qmake.conf.orig 2015-10-12 21:35:32.000000000 -0700
</pre><pre style='margin:0'>
</pre>