blob: d8762aea7ccd7e1d563acb31298350f59536ba0b (
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
29
30
31
32
33
34
35
36
37
38
39
40
|
# $NetBSD: Makefile,v 1.3 2014/01/06 11:21:18 joerg Exp $
PKGNAME= qt5-odbc-${QTVERSION}
PKGREVISION= 1
COMMENT= Qt5 odbc plugin
.include "../../x11/qt5-qtbase/Makefile.common"
USE_LIBTOOL= yes
CONFIGURE_ARGS+= -I${QTDIR}/include -L${QTDIR}/lib
CONFIGURE_ARGS+= -no-dbus
CONFIGURE_ARGS+= -no-sql-mysql
CONFIGURE_ARGS+= -no-sql-psql
CONFIGURE_ARGS+= -no-sql-sqlite
BUILD_DIRS+= qtbase/src/plugins/sqldrivers
MAKE_ENV+= QTDIR=${QTDIR}
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
INSTALLATION_DIRS+= qt5/plugins/sqldrivers
LIBS+= -lltdl
qmake-odbc-configure:
cd ${WRKSRC}/${BUILD_DIRS} && \
${QTDIR}/bin/qmake "sql-plugins=odbc" -o Makefile
post-configure: qmake-odbc-configure
do-install:
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
${WRKSRC}/qtbase/plugins/sqldrivers/libqsqlodbc.la \
${DESTDIR}${QTPREFIX}/plugins/sqldrivers
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../databases/unixodbc/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|