diff --git a/eclass/qmake-utils.eclass b/eclass/qmake-utils.eclass index 623a629..3414e64 100644 --- a/eclass/qmake-utils.eclass +++ b/eclass/qmake-utils.eclass @@ -246,4 +246,24 @@ eqmake5() { fi } +# @FUNCTION: qt4_get_qmake +# @DESCRIPTION: +# Get the location of Qt4's qmake. +qt4_get_qmake() { + local qmake_path=${EPREFIX}/usr/$(get_libdir)/qt4/bin/qmake + + if [[ -x ${qmake_path} ]]; then + echo ${qmake_path} + else + echo ${EPREFIX}/usr/bin/qmake + fi +} + +# @FUNCTION: qt5_get_qmake +# @DESCRIPTION: +# Get the location of Qt5's qmake. +qt5_get_qmake() { + echo ${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake +} + fi