Index: en_US.ISO8859-1/books/porters-handbook/special/chapter.xml =================================================================== --- en_US.ISO8859-1/books/porters-handbook/special/chapter.xml +++ en_US.ISO8859-1/books/porters-handbook/special/chapter.xml @@ -2538,10 +2538,10 @@ The Ports Collection provides support for Qt 4 and Qt 5 frameworks with - USE_QTx, + USES=qt:x, where x is 4 or 5. - Set USE_QTx + Set USE_QT to the list of required Qt components (libraries, tools, plugins). The Qt 4 and Qt 5 frameworks are quite similar. The main difference is the set of supported @@ -2556,12 +2556,6 @@ - QT_PREFIX - Set to the path where Qt was installed - (${LOCALBASE}). - - - QMAKE Full path to qmake binary. @@ -2633,7 +2627,7 @@ Individual Qt tool and library dependencies must be specified in - USE_QTx. + USE_QT. Every component can be suffixed with _build or _run, the suffix indicating whether the dependency on the component is @@ -2825,7 +2819,8 @@ only needed at buildtime, thus they are specified with the _build suffix: - USE_QT4= gui moc_build qmake_build rcc_build uic_build + USES= qt:4 +USE_QT= gui moc_build qmake_build rcc_build uic_build @@ -2837,11 +2832,11 @@ qmake project file (*.pro), define USES= qmake along with - USE_QTx. Note + USE_QT. Note that USES= qmake already implies a build dependency on qmake, therefore the qmake component can be omitted from - USE_QTx. + USE_QT. Similar to CMake, qmake supports out-of-source @@ -2896,13 +2891,21 @@ This snippet demonstrates the use of qmake for a Qt 4 port: - USES= qmake:outsource -USE_QT4= moc_build + USES= qmake:outsource qt:4 +USE_QT= moc_build For a Qt 5 port: - USES= qmake:outsource -USE_QT5= buildtools_build + USES= qmake:outsource qt:5 +USE_QT= buildtools_build + + + It is also possible to specify the Qt version as an argument to qmake. + So for example one could write + USES= qmake:5,outsource + For clarity it is recommended for ports that use qmake for configuration, + but do not list any components via USE_QT + Qt applications are often written to be cross-platform and often X11/Unix is not the platform they are developed