bcaba131ef
Qt 5.11 comes with quite a few new features as well as many bug fixes to existing functionality.
26 lines
832 B
Makefile
26 lines
832 B
Makefile
# $NetBSD: Makefile,v 1.26 2018/06/19 07:21:23 adam Exp $
|
|
|
|
DISTNAME= qtbase-everywhere-src-${QTVERSION}
|
|
PKGNAME= qt5-mysql-${QTVERSION}
|
|
COMMENT= Qt5 MySQL plugin
|
|
|
|
CFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
|
|
|
|
BUILD_DIRS= src/plugins/sqldrivers
|
|
MAKE_ENV+= QTDIR=${QTDIR}
|
|
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
|
|
|
|
.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-mysql" "QMAKE_LIBS_MYSQL=-lmysqlclient"
|
|
|
|
post-install:
|
|
rm -f ${DESTDIR}${PREFIX}/qt5/lib/cmake/Qt5Sql/Qt5Sql_QSQLiteDriverPlugin.cmake
|
|
rm -f ${DESTDIR}${PREFIX}/qt5/plugins/sqldrivers/libqsqlite.*
|
|
|
|
.include "../../x11/qt5-qtbase/buildlink3.mk"
|
|
.include "../../mk/mysql.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|