aboutsummaryrefslogtreecommitdiffstats
path: root/databases/qt-pgsql-plugin
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2003-08-06 20:00:35 +0800
committerarved <arved@FreeBSD.org>2003-08-06 20:00:35 +0800
commitf8dd919ec06610b8826ecb6553cbf2d7e5e33e13 (patch)
tree3d4b59fcc3ec5788ca5e86c3e127eaf17fbe4a05 /databases/qt-pgsql-plugin
parent41dd53c96282241886094427dcf3134f8e34d06c (diff)
downloadfreebsd-ports-gnome-f8dd919ec06610b8826ecb6553cbf2d7e5e33e13.tar.gz
freebsd-ports-gnome-f8dd919ec06610b8826ecb6553cbf2d7e5e33e13.tar.zst
freebsd-ports-gnome-f8dd919ec06610b8826ecb6553cbf2d7e5e33e13.zip
Add the qt-pgsql-plugin, which provides easy access to PostgreSQL Databases
from Qt Applications Submitted by: Lauri Watts <lauri@kde.org> Reviewed by: Neil Stevens <neil@qualityassistant.com>
Diffstat (limited to 'databases/qt-pgsql-plugin')
-rw-r--r--databases/qt-pgsql-plugin/Makefile37
-rw-r--r--databases/qt-pgsql-plugin/distinfo1
-rw-r--r--databases/qt-pgsql-plugin/files/patch-psql.pro12
-rw-r--r--databases/qt-pgsql-plugin/pkg-descr4
-rw-r--r--databases/qt-pgsql-plugin/pkg-plist2
5 files changed, 56 insertions, 0 deletions
diff --git a/databases/qt-pgsql-plugin/Makefile b/databases/qt-pgsql-plugin/Makefile
new file mode 100644
index 000000000000..152f8c3053e6
--- /dev/null
+++ b/databases/qt-pgsql-plugin/Makefile
@@ -0,0 +1,37 @@
+# -*-mode: makefile-*-
+# New ports collection makefile for: qt-pgsql-plugin
+# Date created: 5 August 2003
+# Whom: Lauri Watts <lauri@kde.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= qt-pgsql-plugin
+PORTREVISION= 0
+CATEGORIES= databases x11-toolkits
+
+MAINTAINER= kde@freebsd.org
+COMMENT= A plugin for QT to connect to PostgreSQL-Databases
+
+LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
+
+USE_QT_VER= 3
+QT_NONSTANDARD= yes
+
+LDCONFIG_DIRS= %%PREFIX%%/lib/plugins/sqldrivers
+CONFIGURE_ARGS= -plugin-sql-psql
+CONFIGURE_ENV= ${ECHO} yes | MOC="${MOC}" CPPFLAGS="${QTCPPFLAGS}" \
+ LIBS="${QTCFGLIBS}" LOCALBASE="${LOCALBASE}"
+
+BUILD_PLUGIN_ONLY= yes
+
+do-build:
+ cd ${WRKSRC}/plugins/src/sqldrivers/psql; \
+ ${SETENV} ${MAKE_ENV} ${GMAKE}
+
+do-install:
+ @${MKDIR} ${PREFIX}/lib/plugins/sqldrivers
+ ${INSTALL_DATA} ${WRKSRC}/plugins/sqldrivers/libqsqlpsql.so \
+ ${PREFIX}/lib/plugins/sqldrivers/
+
+.include "../../x11-toolkits/qt31/Makefile"
diff --git a/databases/qt-pgsql-plugin/distinfo b/databases/qt-pgsql-plugin/distinfo
new file mode 100644
index 000000000000..b63babb92bf5
--- /dev/null
+++ b/databases/qt-pgsql-plugin/distinfo
@@ -0,0 +1 @@
+MD5 (KDE/qt-x11-free-3.1.2.tar.bz2) = 156591717687799c69cf3f8b64a898f2
diff --git a/databases/qt-pgsql-plugin/files/patch-psql.pro b/databases/qt-pgsql-plugin/files/patch-psql.pro
new file mode 100644
index 000000000000..4bb807ef0897
--- /dev/null
+++ b/databases/qt-pgsql-plugin/files/patch-psql.pro
@@ -0,0 +1,12 @@
+--- plugins/src/sqldrivers/psql/psql.pro.orig Tue Aug 5 19:09:02 2003
++++ plugins/src/sqldrivers/psql/psql.pro Tue Aug 5 19:09:50 2003
+@@ -8,7 +8,8 @@
+ !contains( LIBS, .*pq.* ) {
+ LIBS *= -lpq
+ }
+-}
++ INCLUDEPATH += ${LOCALBASE}/include/postgresql/server
++ }
+
+ win32 {
+ OBJECTS_DIR = obj
diff --git a/databases/qt-pgsql-plugin/pkg-descr b/databases/qt-pgsql-plugin/pkg-descr
new file mode 100644
index 000000000000..fc14d50e833d
--- /dev/null
+++ b/databases/qt-pgsql-plugin/pkg-descr
@@ -0,0 +1,4 @@
+The PostgreSQL Plugin from Qt3, which provides an easy access method from
+within Qt Applications.
+
+WWW: http://www.trolltech.com/products/qt/database.html
diff --git a/databases/qt-pgsql-plugin/pkg-plist b/databases/qt-pgsql-plugin/pkg-plist
new file mode 100644
index 000000000000..7f2eaac3f6de
--- /dev/null
+++ b/databases/qt-pgsql-plugin/pkg-plist
@@ -0,0 +1,2 @@
+lib/plugins/sqldrivers/libqsqlpsql.so
+@dirrm lib/plugins/sqldrivers