bsd.qt.mk did two things:
- it provides USE_Qt4 and USE_QT5 copmonents to be used by ports depending on Qt
- it handles the business of building the Qt4 and Qt5 ports
Further there is qmake.mk which is weirdly interconnected with it.
This diff does the following:
- replace the dependency parts of bsd.qt.mk by Uses/qt.mk
- replace the Qt-building parts of bsd.qt.mk by Uses/qt-dist.mk
As opposed to the last try (see D8540) this time, keep qmake.mk around.
The changes to the ports tree are the following
- Ports depending on Qt4:
USE_QT4= foo bar
becomes
USES= qt:4 USE_QT= foo bar
- Ports depending on Qt5:
USE_QT5= foo bar
becomes
USES= qt:5 USE_QT= foo bar
- For USES=qmake ports
qmake.mk now accepts a Qt version, so ports only depending on qmake, and on no Qt-component can specify
USES= qmake:4
or
USES= qmake:5
respectively.
- For ports (misusing) QT_NONSTANDARD:
QT_NONSTANDARD has been deprecated, and is replaced by the new qmake args
- no_env: Don't add CONFIGURE_ARGS and CONFIGURE_ENV
- no_configure: Don't add the qmake configure target
- For the Qt-dist ports:
Instead of setting
For qt:4
QT_DIST= yes
and for qt:5
QT_DIST= foo
now
USES=qt-dist:yes
or
USES=qt-dist:4,yes
respectively
USES=qt-dist:foo
or
USES=qt-dist:5,foo
There is a fallback to uses yes (for qt:4) and ${PORTNAME} (for qt:5).
All in all, the ports tree, and how ports use Qt is only affected minimally -- far less than the previous attempt :)
Hm, should the nul input separater really be used for outputting matched lines?
And if so, shouldn't it also be used with oflag above?