aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile7
-rw-r--r--databases/qt4-ibase-plugin/Makefile35
-rw-r--r--databases/qt4-ibase-plugin/distinfo3
-rw-r--r--databases/qt4-ibase-plugin/files/Makefile.bsd18
-rw-r--r--databases/qt4-ibase-plugin/pkg-descr4
-rw-r--r--databases/qt4-ibase-plugin/pkg-plist2
-rw-r--r--databases/qt4-mysql-plugin/Makefile34
-rw-r--r--databases/qt4-mysql-plugin/distinfo3
-rw-r--r--databases/qt4-mysql-plugin/files/Makefile.bsd19
-rw-r--r--databases/qt4-mysql-plugin/pkg-descr4
-rw-r--r--databases/qt4-mysql-plugin/pkg-plist2
-rw-r--r--databases/qt4-odbc-plugin/Makefile34
-rw-r--r--databases/qt4-odbc-plugin/distinfo3
-rw-r--r--databases/qt4-odbc-plugin/files/Makefile.bsd18
-rw-r--r--databases/qt4-odbc-plugin/pkg-descr4
-rw-r--r--databases/qt4-odbc-plugin/pkg-plist2
-rw-r--r--databases/qt4-pgsql-plugin/Makefile34
-rw-r--r--databases/qt4-pgsql-plugin/distinfo3
-rw-r--r--databases/qt4-pgsql-plugin/files/Makefile.bsd19
-rw-r--r--databases/qt4-pgsql-plugin/pkg-descr4
-rw-r--r--databases/qt4-pgsql-plugin/pkg-plist2
-rw-r--r--databases/qt4-sql/Makefile81
-rw-r--r--databases/qt4-sql/distinfo3
-rw-r--r--databases/qt4-sql/pkg-descr12
-rw-r--r--databases/qt4-sql/pkg-message12
-rw-r--r--databases/qt4-sql/pkg-plist79
-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
-rw-r--r--databases/qt4-sqlite3-plugin/Makefile35
-rw-r--r--databases/qt4-sqlite3-plugin/distinfo3
-rw-r--r--databases/qt4-sqlite3-plugin/files/Makefile.bsd18
-rw-r--r--databases/qt4-sqlite3-plugin/pkg-descr4
-rw-r--r--databases/qt4-sqlite3-plugin/pkg-plist2
36 files changed, 565 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index f351954b5a7f..1f43ec6f8991 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -437,6 +437,13 @@
SUBDIR += qt-odbc-plugin
SUBDIR += qt-pgsql-plugin
SUBDIR += qt-sqlite-plugin
+ SUBDIR += qt4-ibase-plugin
+ SUBDIR += qt4-mysql-plugin
+ SUBDIR += qt4-odbc-plugin
+ SUBDIR += qt4-pgsql-plugin
+ SUBDIR += qt4-sql
+ SUBDIR += qt4-sqlite-plugin
+ SUBDIR += qt4-sqlite3-plugin
SUBDIR += rdb
SUBDIR += rdfdb
SUBDIR += ruby-bdb
diff --git a/databases/qt4-ibase-plugin/Makefile b/databases/qt4-ibase-plugin/Makefile
new file mode 100644
index 000000000000..6926942aa82d
--- /dev/null
+++ b/databases/qt4-ibase-plugin/Makefile
@@ -0,0 +1,35 @@
+# -*-mode: makefile-*-
+# New ports collection makefile for: qt-ibase-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 IBase/Firebird database plugin
+
+DB= ibase
+
+LIB_DEPENDS+= gds:${PORTSDIR}/databases/firebird-client \
+ QtSql:${PORTSDIR}/databases/qt4-sql
+
+#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-ibase-plugin/distinfo b/databases/qt4-ibase-plugin/distinfo
new file mode 100644
index 000000000000..5f51cf7b1256
--- /dev/null
+++ b/databases/qt4-ibase-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-ibase-plugin/files/Makefile.bsd b/databases/qt4-ibase-plugin/files/Makefile.bsd
new file mode 100644
index 000000000000..52b750dd4b0b
--- /dev/null
+++ b/databases/qt4-ibase-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 -lgds
+SRCS= qsql_${DB}.cpp
+
+LIBDIR= ${PREFIX}/lib/plugins/sqldrivers
+
+${LIBDIR}:
+ mkdir -p ${LIBDIR}
+
+beforeinstall: ${LIBDIR}
+
+.include <bsd.lib.mk>
diff --git a/databases/qt4-ibase-plugin/pkg-descr b/databases/qt4-ibase-plugin/pkg-descr
new file mode 100644
index 000000000000..633888695edb
--- /dev/null
+++ b/databases/qt4-ibase-plugin/pkg-descr
@@ -0,0 +1,4 @@
+The IBase/Firebird 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-ibase-plugin/pkg-plist b/databases/qt4-ibase-plugin/pkg-plist
new file mode 100644
index 000000000000..482facca168e
--- /dev/null
+++ b/databases/qt4-ibase-plugin/pkg-plist
@@ -0,0 +1,2 @@
+lib/plugins/sqldrivers/libqsql%%DB%%.so
+@dirrm lib/plugins/sqldrivers
diff --git a/databases/qt4-mysql-plugin/Makefile b/databases/qt4-mysql-plugin/Makefile
new file mode 100644
index 000000000000..94849b59b5fa
--- /dev/null
+++ b/databases/qt4-mysql-plugin/Makefile
@@ -0,0 +1,34 @@
+# -*-mode: makefile-*-
+# New ports collection makefile for: qt-mysql-plugin
+# Date created: 20 April 2003
+# Whom: Kay Lehmann <kay_lehmann@web.de>
+#
+# $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 MySQL database plugin
+
+DB= mysql
+
+LIB_DEPENDS+= QtSql:${PORTSDIR}/databases/qt4-sql
+
+USE_MYSQL= yes
+#USE_BZIP2= yes
+DRIVER= src/sql/drivers/${DB}
+EXTRACT_AFTER_ARGS?=| ${TAR} -xf - \
+ ${DISTNAME}/${DRIVER}
+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-mysql-plugin/distinfo b/databases/qt4-mysql-plugin/distinfo
new file mode 100644
index 000000000000..5f51cf7b1256
--- /dev/null
+++ b/databases/qt4-mysql-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-mysql-plugin/files/Makefile.bsd b/databases/qt4-mysql-plugin/files/Makefile.bsd
new file mode 100644
index 000000000000..f86a2a561b76
--- /dev/null
+++ b/databases/qt4-mysql-plugin/files/Makefile.bsd
@@ -0,0 +1,19 @@
+SHLIB_NAME= libqsql${DB}.so
+
+VPATH= ${DRIVER}
+CXXFLAGS+= -I${DRIVER} \
+ -I${LOCALBASE}/include/Qt \
+ -I${LOCALBASE}/include/mysql \
+ -I${LOCALBASE}/include \
+ ${PTHREAD_CFLAGS} -DQT_THREAD_SUPPORT
+LDADD= -L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql ${PTHREAD_LIBS} -lQtSql -lmysqlclient
+SRCS= qsql_${DB}.cpp
+
+LIBDIR= ${PREFIX}/lib/plugins/sqldrivers
+
+${LIBDIR}:
+ mkdir -p ${LIBDIR}
+
+beforeinstall: ${LIBDIR}
+
+.include <bsd.lib.mk>
diff --git a/databases/qt4-mysql-plugin/pkg-descr b/databases/qt4-mysql-plugin/pkg-descr
new file mode 100644
index 000000000000..befb9bc61963
--- /dev/null
+++ b/databases/qt4-mysql-plugin/pkg-descr
@@ -0,0 +1,4 @@
+The MySQL-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-mysql-plugin/pkg-plist b/databases/qt4-mysql-plugin/pkg-plist
new file mode 100644
index 000000000000..482facca168e
--- /dev/null
+++ b/databases/qt4-mysql-plugin/pkg-plist
@@ -0,0 +1,2 @@
+lib/plugins/sqldrivers/libqsql%%DB%%.so
+@dirrm lib/plugins/sqldrivers
diff --git a/databases/qt4-odbc-plugin/Makefile b/databases/qt4-odbc-plugin/Makefile
new file mode 100644
index 000000000000..cd0ef2bc500e
--- /dev/null
+++ b/databases/qt4-odbc-plugin/Makefile
@@ -0,0 +1,34 @@
+# -*-mode: makefile-*-
+# New ports collection makefile for: qt-odbc-plugin
+# Date created: 31 December 2003
+# 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 ODBC database plugin
+
+DB= odbc
+
+LIB_DEPENDS+= odbc:${PORTSDIR}/databases/unixODBC \
+ QtSql:${PORTSDIR}/databases/qt4-sql
+
+#USE_BZIP2= yes
+DRIVER= src/sql/drivers/${DB}
+EXTRACT_AFTER_ARGS?=| ${TAR} -xf - \
+ ${DISTNAME}/${DRIVER}
+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-odbc-plugin/distinfo b/databases/qt4-odbc-plugin/distinfo
new file mode 100644
index 000000000000..5f51cf7b1256
--- /dev/null
+++ b/databases/qt4-odbc-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-odbc-plugin/files/Makefile.bsd b/databases/qt4-odbc-plugin/files/Makefile.bsd
new file mode 100644
index 000000000000..920b6a8d73e4
--- /dev/null
+++ b/databases/qt4-odbc-plugin/files/Makefile.bsd
@@ -0,0 +1,18 @@
+SHLIB_NAME= libqsql${DB}.so
+
+VPATH= ${DRIVER}
+CXXFLAGS+= -I${DRIVER} \
+ -I${LOCALBASE}/include/Qt \
+ -I${LOCALBASE}/include \
+ ${PTHREAD_CFLAGS} -DQT_THREAD_SUPPORT
+LDADD= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lQtSql -lodbc
+SRCS= qsql_${DB}.cpp
+
+LIBDIR= ${PREFIX}/lib/plugins/sqldrivers
+
+${LIBDIR}:
+ mkdir -p ${LIBDIR}
+
+beforeinstall: ${LIBDIR}
+
+.include <bsd.lib.mk>
diff --git a/databases/qt4-odbc-plugin/pkg-descr b/databases/qt4-odbc-plugin/pkg-descr
new file mode 100644
index 000000000000..6c87814b1894
--- /dev/null
+++ b/databases/qt4-odbc-plugin/pkg-descr
@@ -0,0 +1,4 @@
+The ODBC 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-odbc-plugin/pkg-plist b/databases/qt4-odbc-plugin/pkg-plist
new file mode 100644
index 000000000000..482facca168e
--- /dev/null
+++ b/databases/qt4-odbc-plugin/pkg-plist
@@ -0,0 +1,2 @@
+lib/plugins/sqldrivers/libqsql%%DB%%.so
+@dirrm lib/plugins/sqldrivers
diff --git a/databases/qt4-pgsql-plugin/Makefile b/databases/qt4-pgsql-plugin/Makefile
new file mode 100644
index 000000000000..3fc0a0cc4747
--- /dev/null
+++ b/databases/qt4-pgsql-plugin/Makefile
@@ -0,0 +1,34 @@
+# -*-mode: makefile-*-
+# New ports collection makefile for: qt-pgsql-plugin
+# Date created: 5 August 2003
+# Whom: Lauri Watts <lauri@kde.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 PostgreSQL database plugin
+
+DB= psql
+
+LIB_DEPENDS+= QtSql:${PORTSDIR}/databases/qt4-sql
+
+USE_PGSQL= yes
+#USE_BZIP2= yes
+DRIVER= src/sql/drivers/${DB}
+EXTRACT_AFTER_ARGS?=| ${TAR} -xf - \
+ ${DISTNAME}/${DRIVER}
+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-pgsql-plugin/distinfo b/databases/qt4-pgsql-plugin/distinfo
new file mode 100644
index 000000000000..5f51cf7b1256
--- /dev/null
+++ b/databases/qt4-pgsql-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-pgsql-plugin/files/Makefile.bsd b/databases/qt4-pgsql-plugin/files/Makefile.bsd
new file mode 100644
index 000000000000..52e180ad5692
--- /dev/null
+++ b/databases/qt4-pgsql-plugin/files/Makefile.bsd
@@ -0,0 +1,19 @@
+SHLIB_NAME= libqsql${DB}.so
+
+VPATH= ${DRIVER}
+CXXFLAGS+= -I${DRIVER} \
+ -I${LOCALBASE}/include/Qt \
+ -I${LOCALBASE}/include/postgresql/server \
+ -I${LOCALBASE}/include -I${X11BASE}/include \
+ ${PTHREAD_CFLAGS} -DQT_THREAD_SUPPORT
+LDADD= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lQtSql -lpq
+SRCS= qsql_${DB}.cpp
+
+LIBDIR= ${PREFIX}/lib/plugins/sqldrivers
+
+${LIBDIR}:
+ mkdir -p ${LIBDIR}
+
+beforeinstall: ${LIBDIR}
+
+.include <bsd.lib.mk>
diff --git a/databases/qt4-pgsql-plugin/pkg-descr b/databases/qt4-pgsql-plugin/pkg-descr
new file mode 100644
index 000000000000..e08d82c4a5c8
--- /dev/null
+++ b/databases/qt4-pgsql-plugin/pkg-descr
@@ -0,0 +1,4 @@
+The PostgreSQL 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-pgsql-plugin/pkg-plist b/databases/qt4-pgsql-plugin/pkg-plist
new file mode 100644
index 000000000000..482facca168e
--- /dev/null
+++ b/databases/qt4-pgsql-plugin/pkg-plist
@@ -0,0 +1,2 @@
+lib/plugins/sqldrivers/libqsql%%DB%%.so
+@dirrm lib/plugins/sqldrivers
diff --git a/databases/qt4-sql/Makefile b/databases/qt4-sql/Makefile
new file mode 100644
index 000000000000..fc78239d90f3
--- /dev/null
+++ b/databases/qt4-sql/Makefile
@@ -0,0 +1,81 @@
+# -*-mode: makefile-*-
+# New ports collection makefile for: qt40
+# Date created: Wed Jun 29 11:49:42 CEST 2005
+# Whom: lofi@freebsd.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= sql
+PORTVERSION= 4.2.2
+CATEGORIES?= databases ipv6
+MASTER_SITES= ${MASTER_SITE_QT}
+PKGNAMEPREFIX= qt4-
+DISTNAME= qt-x11-opensource-src-${PORTVERSION}
+DIST_SUBDIR= KDE
+
+MAINTAINER= kde@FreeBSD.org
+COMMENT= Qt SQL library
+
+BUILD_DEPENDS= moc4:${PORTSDIR}/devel/qt4-moc \
+ qmake-qt4:${PORTSDIR}/devel/qmake4
+LIB_DEPENDS?= QtCore:${PORTSDIR}/devel/qt4-corelib
+
+CONFLICTS= linguist-0.* qt-2.* qt-3.0.* \
+ qt-3.1.* qt-3.2.* qt-designer-2.* xfmail-1.5.[0-5] \
+ xfmail-1.5.5_[1-2]
+
+HAS_CONFIGURE= yes
+USE_LDCONFIG= yes
+NO_FILTER_SHLIBS=yes
+
+CONFIGURE_ARGS= -fast -no-exceptions \
+ -platform ${LOCALBASE}/share/qt4/mkspecs/freebsd-g++ \
+ -qt-gif -release -system-libjpeg -system-libpng \
+ -system-zlib -no-nas-sound -prefix ${PREFIX} \
+ -plugindir ${PREFIX}/lib/plugins -bindir ${PREFIX}/bin \
+ -confirm-license
+
+ALL_TARGET= first
+CONFIGURE_ENV?= QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH
+MAKE_ENV?= QTDIR=${WRKSRC} LD_LIBRARY_PATH=${WRKSRC}/lib \
+ PATH=${WRKSRC}/bin:$$PATH
+EXTRACT_AFTER_ARGS=| ${TAR} -xf - \
+ --exclude '${DISTNAME}/mkspecs' --exclude '${DISTNAME}/qmake' \
+ --exclude '${DISTNAME}/demos' --exclude '${DISTNAME}/examples' \
+ --exclude '${DISTNAME}/src/gui' --exclude '${DISTNAME}/src/network' \
+ --exclude '${DISTNAME}/src/opengl' --exclude '${DISTNAME}/src/qt3support' \
+ --exclude '${DISTNAME}/src/xml' --exclude '${DISTNAME}/src/plugins' \
+ --exclude '${DISTNAME}/src/3rdparty' --exclude '${DISTNAME}/src/tools/moc' \
+ --exclude '${DISTNAME}/src/tools/rcc' \
+ --exclude '${DISTNAME}/src/tools/uic' --exclude '${DISTNAME}/src/tools/uic3' \
+ --exclude '${DISTNAME}/tools/assistant' --exclude '${DISTNAME}/tools/designer' \
+ --exclude '${DISTNAME}/tools/linguist' --exclude '${DISTNAME}/tools/porting' \
+ --exclude '${DISTNAME}/tools/qtconfig' --exclude '${DISTNAME}/tools/qvfb'
+WRKSRC= ${WRKDIR}/${DISTNAME}/src/${PORTNAME}
+CONFIGURE_WRKSRC=${WRKSRC}/../../
+
+.include <bsd.port.pre.mk>
+
+.if defined(PKGNAMESUFFIX) && (${PKGNAMESUFFIX} == "-debug" || ${PKGNAMESUFFIX} == "-static-debug")
+CONFIGURE_ARGS+=-debug
+.endif
+.if defined(PKGNAMESUFFIX) && (${PKGNAMESUFFIX} == "-static" || ${PKGNAMESUFFIX} == "-static-debug")
+CONFIGURE_ARGS+=-static
+.endif
+
+pre-configure:
+ ${CP} ${.CURDIR}/../../devel/qt4/files/configure ${CONFIGURE_WRKSRC}
+ ${REINPLACE_CMD} -e 's|target.path.*|target.path=${PREFIX}/lib|g' \
+ -e 's|flat_headers.path.*|flat_headers.path=${PREFIX}/include/Qt|g' \
+ -e 's|targ_headers.path.*|targ_headers.path=${PREFIX}/include/$$$$TARGET|g' \
+ ${WRKSRC}/${PORTNAME}.pro ${WRKSRC}/../qt_install.pri
+ ${MKDIR} ${WRKSRC}/../../mkspecs
+ ${LN} -sf ${LOCALBASE}/bin/qmake-qt4 ${WRKSRC}/../../bin/qmake
+ ${LN} -sf ${LOCALBASE}/bin/moc4 ${WRKSRC}/../../bin/moc
+post-configure:
+ ${REINPLACE_CMD} -e 's|local/lib/QtSql.pc|local/libdata/QtSql.pc|g' \
+ -e 's|(test -z.*||g' \
+ ${WRKSRC}/Makefile
+
+.include <bsd.port.post.mk>
diff --git a/databases/qt4-sql/distinfo b/databases/qt4-sql/distinfo
new file mode 100644
index 000000000000..5f51cf7b1256
--- /dev/null
+++ b/databases/qt4-sql/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-sql/pkg-descr b/databases/qt4-sql/pkg-descr
new file mode 100644
index 000000000000..efc79b9aaf24
--- /dev/null
+++ b/databases/qt4-sql/pkg-descr
@@ -0,0 +1,12 @@
+Qt is a C++ toolkit for application development. It lets application
+developers target all major operating systems with a single application
+source code.
+
+Qt provides a platform-independent API to all central platform functionality:
+GUI, database access, networking, file handling, etc. The Qt library
+encapsulates the different APIs of different operating systems, providing
+the application programmer with a single, common API for all operating systems.
+The native C APIs are encapsulated in a set of well-designed, fully
+object-oriented C++ classes.
+
+WWW: http://www.trolltech.com/products/qt/index.html
diff --git a/databases/qt4-sql/pkg-message b/databases/qt4-sql/pkg-message
new file mode 100644
index 000000000000..689cff508712
--- /dev/null
+++ b/databases/qt4-sql/pkg-message
@@ -0,0 +1,12 @@
+*******************************************************************************
+
+ To enable QT's database support, install the database plugin ports.
+ The following plugin ports are available:
+
+ IBase/Firebird - databases/qt4-ibase-plugin
+ MySQL - databases/qt4-mysql-plugin
+ ODBC - databases/qt4-odbc-plugin
+ PostgreSQL - databases/qt4-pgsql-plugin
+ SQLite - databases/qt4-sqlite-plugin
+
+*******************************************************************************
diff --git a/databases/qt4-sql/pkg-plist b/databases/qt4-sql/pkg-plist
new file mode 100644
index 000000000000..0dbf639fbad6
--- /dev/null
+++ b/databases/qt4-sql/pkg-plist
@@ -0,0 +1,79 @@
+include/Qt/QtSql
+include/Qt/qsql.h
+include/Qt/qsql_ibase.h
+include/Qt/qsql_mysql.h
+include/Qt/qsql_odbc.h
+include/Qt/qsql_psql.h
+include/Qt/qsql_sqlite.h
+include/Qt/qsql_sqlite2.h
+include/Qt/qsqldatabase.h
+include/Qt/qsqldriver.h
+include/Qt/qsqldriverplugin.h
+include/Qt/qsqlerror.h
+include/Qt/qsqlfield.h
+include/Qt/qsqlindex.h
+include/Qt/qsqlquery.h
+include/Qt/qsqlquerymodel.h
+include/Qt/qsqlrecord.h
+include/Qt/qsqlrelationaldelegate.h
+include/Qt/qsqlrelationaltablemodel.h
+include/Qt/qsqlresult.h
+include/Qt/qsqltablemodel.h
+include/QtSql/QIBaseDriver
+include/QtSql/QIBaseResult
+include/QtSql/QMYSQLDriver
+include/QtSql/QMYSQLResult
+include/QtSql/QODBCDriver
+include/QtSql/QODBCResult
+include/QtSql/QPSQLDriver
+include/QtSql/QPSQLResult
+include/QtSql/QSQLite2Driver
+include/QtSql/QSQLite2Result
+include/QtSql/QSQLiteDriver
+include/QtSql/QSQLiteResult
+include/QtSql/QSqlDatabase
+include/QtSql/QSqlDriver
+include/QtSql/QSqlDriverCreator
+include/QtSql/QSqlDriverCreatorBase
+include/QtSql/QSqlDriverFactoryInterface
+include/QtSql/QSqlDriverPlugin
+include/QtSql/QSqlError
+include/QtSql/QSqlField
+include/QtSql/QSqlIndex
+include/QtSql/QSqlQuery
+include/QtSql/QSqlQueryModel
+include/QtSql/QSqlRecord
+include/QtSql/QSqlRelation
+include/QtSql/QSqlRelationalDelegate
+include/QtSql/QSqlRelationalTableModel
+include/QtSql/QSqlResult
+include/QtSql/QSqlTableModel
+include/QtSql/QtSql
+include/QtSql/qsql.h
+include/QtSql/qsql_ibase.h
+include/QtSql/qsql_mysql.h
+include/QtSql/qsql_odbc.h
+include/QtSql/qsql_psql.h
+include/QtSql/qsql_sqlite.h
+include/QtSql/qsql_sqlite2.h
+include/QtSql/qsqldatabase.h
+include/QtSql/qsqldriver.h
+include/QtSql/qsqldriverplugin.h
+include/QtSql/qsqlerror.h
+include/QtSql/qsqlfield.h
+include/QtSql/qsqlindex.h
+include/QtSql/qsqlquery.h
+include/QtSql/qsqlquerymodel.h
+include/QtSql/qsqlrecord.h
+include/QtSql/qsqlrelationaldelegate.h
+include/QtSql/qsqlrelationaltablemodel.h
+include/QtSql/qsqlresult.h
+include/QtSql/qsqltablemodel.h
+lib/libQtSql.la
+lib/libQtSql.prl
+lib/libQtSql.so
+lib/libQtSql.so.4
+lib/libQtSql.so.4.2
+lib/libQtSql.so.4.2.2
+libdata/QtSql.pc
+@dirrm include/QtSql
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
diff --git a/databases/qt4-sqlite3-plugin/Makefile b/databases/qt4-sqlite3-plugin/Makefile
new file mode 100644
index 000000000000..8c23874c0034
--- /dev/null
+++ b/databases/qt4-sqlite3-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 3.x database plugin
+
+DB= sqlite
+
+LIB_DEPENDS+= QtSql:${PORTSDIR}/databases/qt4-sql \
+ sqlite3:${PORTSDIR}/databases/sqlite3
+
+#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-sqlite3-plugin/distinfo b/databases/qt4-sqlite3-plugin/distinfo
new file mode 100644
index 000000000000..5f51cf7b1256
--- /dev/null
+++ b/databases/qt4-sqlite3-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-sqlite3-plugin/files/Makefile.bsd b/databases/qt4-sqlite3-plugin/files/Makefile.bsd
new file mode 100644
index 000000000000..f2c041b96fc7
--- /dev/null
+++ b/databases/qt4-sqlite3-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 -lsqlite3
+SRCS= qsql_${DB}.cpp
+
+LIBDIR= ${PREFIX}/lib/plugins/sqldrivers
+
+${LIBDIR}:
+ mkdir -p ${LIBDIR}
+
+beforeinstall: ${LIBDIR}
+
+.include <bsd.lib.mk>
diff --git a/databases/qt4-sqlite3-plugin/pkg-descr b/databases/qt4-sqlite3-plugin/pkg-descr
new file mode 100644
index 000000000000..f1d749e58a5c
--- /dev/null
+++ b/databases/qt4-sqlite3-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-sqlite3-plugin/pkg-plist b/databases/qt4-sqlite3-plugin/pkg-plist
new file mode 100644
index 000000000000..482facca168e
--- /dev/null
+++ b/databases/qt4-sqlite3-plugin/pkg-plist
@@ -0,0 +1,2 @@
+lib/plugins/sqldrivers/libqsql%%DB%%.so
+@dirrm lib/plugins/sqldrivers