blob: 13dd432b4e657d83a352b9f47deef58a61513e17 (
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
|
# $NetBSD: Makefile,v 1.5 2014/04/09 07:26:57 obache Exp $
PKGNAME= qt5-psql-${QTVERSION}
PKGREVISION= 4
COMMENT= Qt5 PostgreSQL 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_QT5= yes
BUILD_DIRS+= qtbase/src/plugins/sqldrivers
MAKE_ENV+= QTDIR=${QTDIR}
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
INSTALLATION_DIRS+= qt5/plugins/sqldrivers
post-configure:
cd ${WRKSRC}/${BUILD_DIRS} && \
${QTDIR}/bin/qmake "sql-plugins=psql" -o Makefile
do-install:
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
${WRKSRC}/qtbase/plugins/sqldrivers/libqsqlpsql.la \
${DESTDIR}${QTPREFIX}/plugins/sqldrivers
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/pgsql.buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|