[MacPorts] #38280: RFE: add a qmake portgroup

MacPorts noreply at macports.org
Sun Mar 24 05:07:18 PDT 2013


#38280: RFE: add a qmake portgroup
--------------------------+--------------------------------
  Reporter:  egall@…      |      Owner:  macports-tickets@…
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  base         |    Version:  2.1.3
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------------------

Comment (by michaelld@…):

 "overwrite" means in this case to set the QMake-specific variable on the
 ${configure.cmd} line, and hope that they overwrite those from the
 project's build script. When we set "QMAKE_CC=${configure.cc}", it
 generally works because projects are not supposed to play with it. But,
 setting for +debug and +universal is more generic, and hence takes a bit
 of work: (1) setting the ${configure.cmd} line correctly; and (2) making
 sure those variables are not set in the project's qmake build scripts.

 For example, +debug for MacPorts generally means to install but release
 and debug versions, and hence IIRC does something like:
 {{{
 if +debug {
   CONFIG += debug_and_release build_all
 } else {
   CONFIG += release
 }
 }}}

 +universal I think can use:
 {{{
 if +universal then {
   CONFIG += ${qt_arch_types}
 }
 }}}

 All of the above need to be on the configure.cmd arguments line, so in
 quotes appropriately. Then, inside the project we would need to remove
 references to these variables so that the overwrite is guaranteed to work.

-- 
Ticket URL: <https://trac.macports.org/ticket/38280#comment:8>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list