aboutsummaryrefslogtreecommitdiff
path: root/databases/qt4-sqlite-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'databases/qt4-sqlite-plugin')
-rw-r--r--databases/qt4-sqlite-plugin/Makefile35
-rw-r--r--databases/qt4-sqlite-plugin/distinfo3
-rw-r--r--databases/qt4-sqlite-plugin/files/Makefile.bsd18
-rw-r--r--databases/qt4-sqlite-plugin/pkg-descr4
-rw-r--r--databases/qt4-sqlite-plugin/pkg-plist2
5 files changed, 62 insertions, 0 deletions
diff --git a/databases/qt4-sqlite-plugin/Makefile b/databases/qt4-sqlite-plugin/Makefile
new file mode 100644
index 000000000000..1741b41d5554
--- /dev/null
+++ b/databases/qt4-sqlite-plugin/Makefile
@@ -0,0 +1,35 @@
+# -*-mode: makefile-*-
+# New ports collection makefile for: qt-sqlite-plugin
+# Date created: 27 February 2004
+# Whom: Michael Nottebrock <lofi@freebsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= qt4-${DB}-plugin
+PORTVERSION= 4.2.2
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_QT}
+DISTNAME= qt-x11-opensource-src-${PORTVERSION}
+DIST_SUBDIR= KDE
+
+MAINTAINER= kde@freebsd.org
+COMMENT= Qt SQLite 2.x database plugin
+
+DB= sqlite2
+
+LIB_DEPENDS+= QtSql:${PORTSDIR}/databases/qt4-sql \
+ sqlite.2:${PORTSDIR}/databases/sqlite2
+
+#USE_BZIP2= yes
+DRIVER= src/sql/drivers/${DB}
+EXTRACT_AFTER_ARGS?=| ${TAR} -xf - \
+ ${DISTNAME}/${DRIVER} ${DISTNAME}/include/QtSql \
+ ${DISTNAME}/src/sql/kernel
+MAKEFILE= ${FILESDIR}/Makefile.bsd
+MAKE_ENV+= DB="${DB}" DRIVER="${DRIVER}" \
+ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
+PLIST_SUB= DB=${DB}
+
+.include <bsd.port.mk>
diff --git a/databases/qt4-sqlite-plugin/distinfo b/databases/qt4-sqlite-plugin/distinfo
new file mode 100644
index 000000000000..5f51cf7b1256
--- /dev/null
+++ b/databases/qt4-sqlite-plugin/distinfo
@@ -0,0 +1,3 @@
+MD5 (KDE/qt-x11-opensource-src-4.2.2.tar.gz) = 19f6374fe7924e33775cb87ee02669cb
+SHA256 (KDE/qt-x11-opensource-src-4.2.2.tar.gz) = e790d227fa7958f2b0c0b0facd8ca880190121ed2b9c99ca70643baf7a0cd24c
+SIZE (KDE/qt-x11-opensource-src-4.2.2.tar.gz) = 37636491
diff --git a/databases/qt4-sqlite-plugin/files/Makefile.bsd b/databases/qt4-sqlite-plugin/files/Makefile.bsd
new file mode 100644
index 000000000000..28f4d27295ab
--- /dev/null
+++ b/databases/qt4-sqlite-plugin/files/Makefile.bsd
@@ -0,0 +1,18 @@
+SHLIB_NAME= libqsql${DB}.so
+
+VPATH= ${DRIVER}
+CXXFLAGS+= -I${DRIVER} -Iinclude \
+ -I${LOCALBASE}/include/Qt \
+ -I${LOCALBASE}/include \
+ ${PTHREAD_CFLAGS} -DQT_THREAD_SUPPORT
+LDADD= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lQtSql -lsqlite
+SRCS= qsql_${DB}.cpp
+
+LIBDIR= ${PREFIX}/lib/plugins/sqldrivers
+
+${LIBDIR}:
+ mkdir -p ${LIBDIR}
+
+beforeinstall: ${LIBDIR}
+
+.include <bsd.lib.mk>
diff --git a/databases/qt4-sqlite-plugin/pkg-descr b/databases/qt4-sqlite-plugin/pkg-descr
new file mode 100644
index 000000000000..f1d749e58a5c
--- /dev/null
+++ b/databases/qt4-sqlite-plugin/pkg-descr
@@ -0,0 +1,4 @@
+The SQLite Plugin from Qt 4, which provides an easy access method from
+within Qt applications.
+
+WWW: http://doc.trolltech.com/4.0/sql.html
diff --git a/databases/qt4-sqlite-plugin/pkg-plist b/databases/qt4-sqlite-plugin/pkg-plist
new file mode 100644
index 000000000000..482facca168e
--- /dev/null
+++ b/databases/qt4-sqlite-plugin/pkg-plist
@@ -0,0 +1,2 @@
+lib/plugins/sqldrivers/libqsql%%DB%%.so
+@dirrm lib/plugins/sqldrivers