<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/81c9638e81184bc645560630f67055ff9cd80cbf">https://github.com/macports/macports-ports/commit/81c9638e81184bc645560630f67055ff9cd80cbf</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 81c9638e81184bc645560630f67055ff9cd80cbf
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sun Nov 6 10:25:22 2016 -0700
<span style='display:block; white-space:pre;color:#404040;'> qmake5-1.0.tcl: Unify setting of architecture flags
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Set QT_ARCH, QT_TARGET_ARCH, and -spec in the same manner.
</span><span style='display:block; white-space:pre;color:#404040;'> Put code in pre-configure to allow universal variant to be enabled or
</span><span style='display:block; white-space:pre;color:#404040;'> disabled anywhere in the Portfile.
</span>---
_resources/port1.0/group/qmake5-1.0.tcl | 47 ++++++++++++++++++---------------
1 file changed, 25 insertions(+), 22 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 9781530..adfb267 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;'>@@ -46,30 +46,33 @@ configure.cmd ${qt_qmake_cmd}
</span> configure.pre_args-replace --prefix=${prefix} "PREFIX=${prefix}"
configure.universal_args-delete --disable-dependency-tracking
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# specify build configuration (compiler, 32-bit/64-bit, etc.)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ![option universal_variant] || ![variant_isset universal] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append -spec ${qt_qmake_spec}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-} else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend merger_configure_args(i386) -spec ${qt_qmake_spec_32}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend merger_configure_args(x86_64) -spec ${qt_qmake_spec_64}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # set QT_ARCH and QT_TARGET_ARCH manually since they may be
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # incorrect in ${qt_mkspecs_dir}/qconfig.pri
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # if qtbase was built universal
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # -spec specifies build configuration (compiler, 32-bit/64-bit, etc.)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_exists universal] && [variant_isset universal]} {
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# if qtbase was build as a universal,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# QT_ARCH and QT_TARGET_ARCH may be set incorrectly in ${qt_mkspecs_dir}/qconfig.pri,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# so set them manually
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ![option universal_variant] || ![variant_isset universal] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pre-configure {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[active_variants qt5-qtbase universal ""]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- QT_ARCH=${build_arch} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- QT_TARGET_ARCH=${build_arch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global merger_configure_args
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend merger_configure_args(i386) -spec ${qt_qmake_spec_32}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend merger_configure_args(x86_64) -spec ${qt_qmake_spec_64}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach arch ${configure.universal_archs} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend merger_configure_args(${arch}) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QT_ARCH=${arch} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QT_TARGET_ARCH=${arch}
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-} else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach arch ${configure.universal_archs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend merger_configure_args(${arch}) \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- QT_ARCH=${arch} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- QT_TARGET_ARCH=${arch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -spec ${qt_qmake_spec}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QT_ARCH=${build_arch} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QT_TARGET_ARCH=${build_arch}
</span> }
}
</pre><pre style='margin:0'>
</pre>