--- Makefile.orig 2020-04-23 22:14:49.000000000 +0200 +++ Makefile 2020-04-26 18:27:31.863527000 +0200 @@ -47,6 +47,14 @@ ${WRKSRC}/src/corelib/global/qglobal.cpp .endif +_BUILDTOOLS_VERSION!=${PKG_BIN} query %v qt5-buildtools +_BUILDTOOLS_STATUS!=${PKG_BIN} version -t ${_BUILDTOOLS_VERSION} ${QT5_VERSION} + +pre-check-config: +.if ${_BUILDTOOLS_STATUS} == "<" +.error "Your devel/qt5-buildtools version is too old. Please upgrade it first." +.endif + post-configure: .for d in ${MORE_WRKSRCS} ${MKDIR} ${WRKSRC}/${d}