Date: Mon, 12 May 2003 21:53:32 +0200 (CEST) From: Kay Lehmann <kay_lehmann@web.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/52131: New port: databases/qt-mysql-plugin mysql-plugin for qt3 (needed by prokyon3) Message-ID: <200305121953.h4CJrWGt026359@bippes.wg-berlin.de> Resent-Message-ID: <200305122000.h4CK0Pux048345@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 52131 >Category: ports >Synopsis: New port: databases/qt-mysql-plugin mysql-plugin for qt3 (needed by prokyon3) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon May 12 13:00:25 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Kay Lehmann >Release: FreeBSD 4.8-RC i386 >Organization: >Environment: System: FreeBSD bippes.wg-berlin.de 4.8-RC FreeBSD 4.8-RC #24: Sat Mar 22 10:31:09 CET 2003 kay@bippes.wg-berlin.de:/usr/obj/usr/src/sys/bippes i386 >Description: qt-mysql-plugin is a small port to get the sql-connection within qt3-apps. I needed it to get the port of prokyon3 working. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # qt-mysql-plugin # qt-mysql-plugin/Makefile # qt-mysql-plugin/distinfo # qt-mysql-plugin/files # qt-mysql-plugin/files/patch-ab # qt-mysql-plugin/files/patch-aa # qt-mysql-plugin/pkg-plist # qt-mysql-plugin/pkg-descr # echo c - qt-mysql-plugin mkdir -p qt-mysql-plugin > /dev/null 2>&1 echo x - qt-mysql-plugin/Makefile sed 's/^X//' >qt-mysql-plugin/Makefile << 'END-of-qt-mysql-plugin/Makefile' X# -*-mode: makefile-*- X# New ports collection makefile for: qt-mysql-plugin X# Date created: 20 April 2003 X# Whom: Kay Lehmann <kay_lehmann@web.de> X# X# $FreeBSD$ X# X XPORTNAME= qt-mysql-plugin XPORTVERSION= 3.1.1 XCATEGORIES?= databases x11-toolkits XMASTER_SITES= ftp://ftp.trolltech.com/qt/source/ \ X ftp://ftp.silug.org/pub/qt/ \ X ftp://ftp.bero.org/pub/qt/ \ X ftp://ftp.planetmirror.com.au/pub/trolltech/qt/ X XMAINTAINER?= kay_lehmann@web.de XCOMMENT= A plugin for QT to connect to MySQL-Databases X XLIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client\ X qt-mt.3:${PORTSDIR}/x11-toolkits/qt31 X XDISTNAME= qt-x11-free-${PORTVERSION} XDIST_SUBDIR= KDE X XUSE_BZIP2= yes XUSE_GMAKE= yes XUSE_REINPLACE= yes XUSE_X_PREFIX= yes XHAS_CONFIGURE= yes XINSTALLS_SHLIB= yes XLDCONFIG_DIRS= %%PREFIX%%/lib/plugins/sqldrivers XCONFIGURE_ARGS= -prefix ${PREFIX} -plugindir ${PREFIX}/lib/plugins \ X -plugin-sql-mysql -no-stl X X.if defined(DEBUG) XCONFIGURE_ARGS+= -debug X.endif X XCONFIGURE_ENV= ${ECHO} yes | QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH X X.include <bsd.port.pre.mk> X X.if ${MACHINE_ARCH} == "alpha" XCFLAGS+= -O0 X.endif X Xpost-patch: X @${REINPLACE_CMD} -e 's,-O2,${CXXFLAGS},' \ X ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf X @${REINPLACE_CMD} -e 's,gcc,${CC},' \ X ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf X @${REINPLACE_CMD} -e 's,g++,${CXX},' \ X ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf X @${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},' \ X ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf X @${REINPLACE_CMD} -e 's,/usr/X11R6,${X11BASE},' \ X ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf X @${REINPLACE_CMD} -e 's,release,release thread,' \ X ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf X @${RM} ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf.bak X Xdo-build: X cd ${WRKSRC}/plugins/src/sqldrivers/mysql; ${GMAKE} X Xdo-install: X @mkdir -p ${PREFIX}/lib/plugins/sqldrivers X ${INSTALL} ${WRKSRC}/plugins/sqldrivers/libqsqlmysql.so ${PREFIX}/lib/plugins/sqldrivers/ X X.include <bsd.port.post.mk> END-of-qt-mysql-plugin/Makefile echo x - qt-mysql-plugin/distinfo sed 's/^X//' >qt-mysql-plugin/distinfo << 'END-of-qt-mysql-plugin/distinfo' XMD5 (KDE/qt-x11-free-3.1.1.tar.bz2) = 977b9f59eed14f33343a797544b5418a END-of-qt-mysql-plugin/distinfo echo c - qt-mysql-plugin/files mkdir -p qt-mysql-plugin/files > /dev/null 2>&1 echo x - qt-mysql-plugin/files/patch-ab sed 's/^X//' >qt-mysql-plugin/files/patch-ab << 'END-of-qt-mysql-plugin/files/patch-ab' X--- plugins/src/sqldrivers/mysql/mysql.pro.orig Fri Nov 8 10:35:18 2002 X+++ plugins/src/sqldrivers/mysql/mysql.pro Sat Mar 8 11:00:49 2003 X@@ -8,7 +8,7 @@ X OBJECTS_DIR = .obj X X !contains( LIBS, .*mysql.* ) { X- LIBS *= -lmysqlclient X+ LIBS *= -L/usr/local/lib/mysql -lmysqlclient X } X } X win32 { END-of-qt-mysql-plugin/files/patch-ab echo x - qt-mysql-plugin/files/patch-aa sed 's/^X//' >qt-mysql-plugin/files/patch-aa << 'END-of-qt-mysql-plugin/files/patch-aa' X--- src/sql/drivers/mysql/qsql_mysql.h.orig Wed Jan 22 10:43:49 2003 X+++ src/sql/drivers/mysql/qsql_mysql.h Wed Jan 22 10:44:03 2003 X@@ -46,7 +46,7 @@ X #include <qt_windows.h> X #endif X X-#include <mysql.h> X+#include <mysql/mysql.h> X X #ifdef QT_PLUGIN X #define Q_EXPORT_SQLDRIVER_MYSQL END-of-qt-mysql-plugin/files/patch-aa echo x - qt-mysql-plugin/pkg-plist sed 's/^X//' >qt-mysql-plugin/pkg-plist << 'END-of-qt-mysql-plugin/pkg-plist' Xlib/plugins/sqldrivers/libqsqlmysql.so X@dirrm lib/plugins/sqldrivers X@dirrm lib/plugins END-of-qt-mysql-plugin/pkg-plist echo x - qt-mysql-plugin/pkg-descr sed 's/^X//' >qt-mysql-plugin/pkg-descr << 'END-of-qt-mysql-plugin/pkg-descr' XThis is a port to install Mysql-plugin from qt3, which provides an easy access Xmethod from within qt3-apps (like prokyon3). END-of-qt-mysql-plugin/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305121953.h4CJrWGt026359>