summaryrefslogtreecommitdiff
path: root/x11/qt5-sqlite3
diff options
context:
space:
mode:
Diffstat (limited to 'x11/qt5-sqlite3')
-rw-r--r--x11/qt5-sqlite3/DESCR1
-rw-r--r--x11/qt5-sqlite3/Makefile29
-rw-r--r--x11/qt5-sqlite3/PLIST2
-rw-r--r--x11/qt5-sqlite3/buildlink3.mk16
4 files changed, 48 insertions, 0 deletions
diff --git a/x11/qt5-sqlite3/DESCR b/x11/qt5-sqlite3/DESCR
new file mode 100644
index 00000000000..88451c5149b
--- /dev/null
+++ b/x11/qt5-sqlite3/DESCR
@@ -0,0 +1 @@
+Qt5 SQLite3 plugin
diff --git a/x11/qt5-sqlite3/Makefile b/x11/qt5-sqlite3/Makefile
new file mode 100644
index 00000000000..f64d4091142
--- /dev/null
+++ b/x11/qt5-sqlite3/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2013/12/13 14:38:36 ryoon Exp $
+
+PKGNAME= qt5-sqlite3-${QTVERSION}
+COMMENT= Qt5 SQLite3 plugin
+
+.include "../../x11/qt5-qtbase/Makefile.common"
+
+USE_LIBTOOL= yes
+
+CONFIGURE_ARGS+= -I${QTDIR}/include -L${QTDIR}/lib
+
+BUILD_DIRS+= qtbase/src/plugins/sqldrivers
+MAKE_ENV+= QTDIR=${QTDIR}
+
+INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
+INSTALLATION_DIRS+= lib/pkgconfig qt5/plugins/sqldrivers
+
+post-configure:
+ cd ${WRKSRC}/${BUILD_DIRS} && \
+ ${QTDIR}/bin/qmake "sql-plugins=sqlite" -o Makefile
+
+do-install:
+ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
+ ${WRKSRC}/qtbase/plugins/sqldrivers/libqsqlite.la \
+ ${DESTDIR}${QTPREFIX}/plugins/sqldrivers
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/qt5-sqlite3/PLIST b/x11/qt5-sqlite3/PLIST
new file mode 100644
index 00000000000..c4e7d8f494e
--- /dev/null
+++ b/x11/qt5-sqlite3/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2013/12/13 14:38:36 ryoon Exp $
+qt5/plugins/sqldrivers/libqsqlite.la
diff --git a/x11/qt5-sqlite3/buildlink3.mk b/x11/qt5-sqlite3/buildlink3.mk
new file mode 100644
index 00000000000..2c30d7db523
--- /dev/null
+++ b/x11/qt5-sqlite3/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2013/12/13 14:38:36 ryoon Exp $
+
+BUILDLINK_TREE+= qt5-sqlite3
+
+.if !defined(QT5_SQLITE3_BUILDLINK3_MK)
+QT5_SQLITE3_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.qt5-sqlite3+= qt5-sqlite3>=5.2.0rc1
+BUILDLINK_PKGSRCDIR.qt5-sqlite3?= ../../x11/qt5-sqlite3
+
+BUILDLINK_LIBDIRS.qt5-sqlite3+= qt5/plugins
+
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.endif # QT5_SQLITE3_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -qt5-sqlite3