pkgsrc/x11/qt5-odbc/Makefile
adam 81fc0d5ad9 qt5: updated to 5.15.3
5.15.3:
Bug fix, LTS, release.

qt5-qtwebengine patches courtesy of @markd.
2022-04-18 11:18:15 +00:00

27 lines
850 B
Makefile

# $NetBSD: Makefile,v 1.53 2022/04/18 11:18:15 adam Exp $
DISTNAME= qtbase-everywhere-opensource-src-${QTVERSION}
PKGNAME= qt5-odbc-${QTVERSION}
COMMENT= Qt5 odbc plugin
BUILD_DIRS= src/plugins/sqldrivers
MAKE_ENV+= QTDIR=${QTDIR}
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
LIBS+= -lltdl
.include "../../x11/qt5-qtbase/Makefile.common"
do-configure:
${RM} -f -r ${WRKSRC}/mkspecs
cd ${WRKSRC}/${BUILD_DIRS} && \
${QTDIR}/bin/qmake -o Makefile "QT.sql.enabled_features+=sql-odbc" "QMAKE_LIBS_ODBC=-lodbc"
post-install:
${RM} -f ${DESTDIR}${PREFIX}/qt5/lib/cmake/Qt5Sql/Qt5Sql_QSQLiteDriverPlugin.cmake
${RM} -f ${DESTDIR}${PREFIX}/qt5/plugins/sqldrivers/libqsqlite.*
.include "../../devel/libltdl/buildlink3.mk"
.include "../../databases/unixodbc/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"