Opened 9 years ago

Last modified 9 years ago

#46029 new submission

port submission: qtchooser — at Version 1

Reported by: RJVB (René Bertin) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: michaelld@…
Port: qtchooser

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Please find attached a portfile with an initial set-up for qtchooser, the utility that makes it possible/easy to have Qt4 and Qt5 (and soon enough probably Qt6) installed in parallel. It replaces certain of the standard Qt binaries (like qmake) with links to itself, and then uses configuration files and (optional) arguments to determine what version of the binary in question is called.

Thus, with qmake a symlink to qtchooser

> qmake --version              # prints the version of the default Qt installation
> qmake -qt=4 --version   # prints the version of the Qt4 installation
> qmake -qt=5 --version   # prints the version of the Qt5 installation

What's missing are the configuration files that will determine which Qt goes and is expected where, though I have given an upbeat by assuming that'd be ${prefix}/libexec/qtN .

I hope this helps and brings the possibility to have concurrent qt4-mac and qt5-mac installs a step closer.

Change History (1)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: qt4-mac qt5-mac removed
Port: qtchooser added
Priority: HighNormal
Note: See TracTickets for help on using tickets.