Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/qt-dist.mk
Show First 20 Lines • Show All 378 Lines • ▼ Show 20 Lines | . if ${QT_CONFIG:N-*} | ||||
@${MKDIR} ${STAGEDIR}${QT_MKSPECDIR}/modules | @${MKDIR} ${STAGEDIR}${QT_MKSPECDIR}/modules | ||||
${ECHO_CMD} "QT_CONFIG += ${QT_CONFIG:N-*:O:u}" \ | ${ECHO_CMD} "QT_CONFIG += ${QT_CONFIG:N-*:O:u}" \ | ||||
> ${STAGEDIR}${QT_MKSPECDIR}/modules/qt_config_${QT_MODNAME}.pri | > ${STAGEDIR}${QT_MKSPECDIR}/modules/qt_config_${QT_MODNAME}.pri | ||||
@${ECHO_CMD} "${PREFIX}/${QT_MKSPECDIR_REL}/modules/qt_config_${QT_MODNAME}.pri" \ | @${ECHO_CMD} "${PREFIX}/${QT_MKSPECDIR_REL}/modules/qt_config_${QT_MODNAME}.pri" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
. endif # ${QT_CONFIG:N-*} | . endif # ${QT_CONFIG:N-*} | ||||
. endif # M5 | . endif # M5 | ||||
# Handle misc/qtchooser wrapper installation and deinstallation | |||||
# If a port installs Qt version-specific binaries (e.g. "designer" which existed as a Qt4 application | |||||
# and exists as a Qt5 application and will probably be a Qt6 application) which should have a | |||||
# qtchooser-based wrapper, the port should set `QT_BINARIES=yes`. | |||||
# | |||||
# When QT_BINARIES is set to yes, compatibility symlinks (designer -> qtchooser, so that | |||||
# qtchooser can run designer-qt5 or whatever is the selected Qt version) are installed by the port. | |||||
. if defined(QT_BINARIES) | |||||
${ECHO_CMD} '@postexec if type update-qtchooser-wrapper >/dev/null 2>&1; then update-qtchooser-wrapper; fi' >> ${TMPPLIST} | |||||
${ECHO_CMD} '@postunexec if type update-qtchooser-wrapper >/dev/null 2>&1; then update-qtchooser-wrapper; fi' >> ${TMPPLIST} | |||||
. endif | |||||
.endif # defined(_QT_DIST_MK_INCLUDED) | .endif # defined(_QT_DIST_MK_INCLUDED) |