blob: 28860c62bec7362c174bd32472b4f70c06b99014 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# $NetBSD: Makefile,v 1.32 2018/12/09 18:52:13 adam Exp $
DISTNAME= qtbase-everywhere-src-${QTVERSION}
PKGNAME= qt5-odbc-${QTVERSION}
PKGREVISION= 2
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"
|