From 0cb2bb1b9cae06736cdb0871b5df1e247e2a2dca Mon Sep 17 00:00:00 2001 From: Tilman Keskinoz Date: Wed, 6 Aug 2003 11:52:26 +0000 Subject: [PATCH] Add the qt-mysql-plugin, whix provides easy access to MySQL Databases from Qt Applications PR: 52131 Submitted by: Kay Lehmann , Lauri Watts , lofi Reviewed by: kde --- databases/Makefile | 1 + databases/qt-mysql-plugin/Makefile | 39 +++++++++++++++++++ databases/qt-mysql-plugin/distinfo | 1 + .../qt-mysql-plugin/files/patch-mysql.pro | 10 +++++ databases/qt-mysql-plugin/pkg-descr | 4 ++ databases/qt-mysql-plugin/pkg-plist | 2 + 6 files changed, 57 insertions(+) create mode 100644 databases/qt-mysql-plugin/Makefile create mode 100644 databases/qt-mysql-plugin/distinfo create mode 100644 databases/qt-mysql-plugin/files/patch-mysql.pro create mode 100644 databases/qt-mysql-plugin/pkg-descr create mode 100644 databases/qt-mysql-plugin/pkg-plist diff --git a/databases/Makefile b/databases/Makefile index 003c559fe3cd..190e63c6f4d6 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -164,6 +164,7 @@ SUBDIR += py-pyPgSQL SUBDIR += py-sqlrelay SUBDIR += pydbdesigner + SUBDIR += qt-mysql-plugin SUBDIR += rdb SUBDIR += rdfdb SUBDIR += ruby-bdb diff --git a/databases/qt-mysql-plugin/Makefile b/databases/qt-mysql-plugin/Makefile new file mode 100644 index 000000000000..18ef6d0d2bef --- /dev/null +++ b/databases/qt-mysql-plugin/Makefile @@ -0,0 +1,39 @@ +# -*-mode: makefile-*- +# New ports collection makefile for: qt-mysql-plugin +# Date created: 20 April 2003 +# Whom: Kay Lehmann +# +# $FreeBSD$ +# + +PORTNAME= qt-mysql-plugin +PORTREVISION= 0 +CATEGORIES= databases x11-toolkits +PKGNAMESUFFIX= -mysql-plugin + +MAINTAINER= kay_lehmann@web.de +COMMENT= A plugin for QT to connect to MySQL-Databases + +LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client + +USE_QT_VER= 3 +QT_NONSTANDARD= yes + +LDCONFIG_DIRS= %%PREFIX%%/lib/plugins/sqldrivers +CONFIGURE_ARGS= -plugin-sql-mysql -fast +CONFIGURE_ENV= ${ECHO} yes | MOC="${MOC}" CPPFLAGS="${QTCPPFLAGS}" \ + LIBS="${QTCFGLIBS}" LOCALBASE="${LOCALBASE}" + +BUILD_PLUGIN_ONLY= yes + + +do-build: + cd ${WRKSRC}/plugins/src/sqldrivers/mysql; \ + ${SETENV} ${MAKE_ENV} ${GMAKE} + +do-install: + ${MKDIR} ${PREFIX}/lib/plugins/sqldrivers + ${INSTALL_DATA} ${WRKSRC}/plugins/sqldrivers/libqsqlmysql.so \ + ${PREFIX}/lib/plugins/sqldrivers/ + +.include "../../x11-toolkits/qt31/Makefile" diff --git a/databases/qt-mysql-plugin/distinfo b/databases/qt-mysql-plugin/distinfo new file mode 100644 index 000000000000..b63babb92bf5 --- /dev/null +++ b/databases/qt-mysql-plugin/distinfo @@ -0,0 +1 @@ +MD5 (KDE/qt-x11-free-3.1.2.tar.bz2) = 156591717687799c69cf3f8b64a898f2 diff --git a/databases/qt-mysql-plugin/files/patch-mysql.pro b/databases/qt-mysql-plugin/files/patch-mysql.pro new file mode 100644 index 000000000000..a19b07c91dd5 --- /dev/null +++ b/databases/qt-mysql-plugin/files/patch-mysql.pro @@ -0,0 +1,10 @@ +--- plugins/src/sqldrivers/mysql/mysql.pro.orig Wed Aug 6 13:21:58 2003 ++++ plugins/src/sqldrivers/mysql/mysql.pro Wed Aug 6 13:22:46 2003 +@@ -10,6 +10,7 @@ + !contains( LIBS, .*mysql.* ) { + LIBS *= -lmysqlclient + } ++ INCLUDEPATH += ${LOCALBASE}/include/mysql + } + win32 { + OBJECTS_DIR = obj diff --git a/databases/qt-mysql-plugin/pkg-descr b/databases/qt-mysql-plugin/pkg-descr new file mode 100644 index 000000000000..1f02fe97e84c --- /dev/null +++ b/databases/qt-mysql-plugin/pkg-descr @@ -0,0 +1,4 @@ +The MySQL-Plugin from Qt 3, which provides an easy access +method from within Qt applications. + +WWW: http://www.trolltech.com/products/qt/database.html diff --git a/databases/qt-mysql-plugin/pkg-plist b/databases/qt-mysql-plugin/pkg-plist new file mode 100644 index 000000000000..dbdd89ca4b33 --- /dev/null +++ b/databases/qt-mysql-plugin/pkg-plist @@ -0,0 +1,2 @@ +lib/plugins/sqldrivers/libqsqlmysql.so +@dirrm lib/plugins/sqldrivers