Date: Fri, 8 Oct 2004 20:21:36 +0300 From: Sergey Prikhodko <sergey@network-asp.biz> To: FreeBSD-gnats-submit@FreeBSD.org Cc: mico@bsd.hu Subject: ports/72453: [ Update ] databases/mysql++ to 1.7.17 Message-ID: <451324278.20041008202136@network-asp.biz> Resent-Message-ID: <200410081730.i98HUOVL054690@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 72453 >Category: ports >Synopsis: [ Update ] databases/mysql++ to 1.7.17 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Oct 08 17:30:23 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Sergey Prikhodko >Release: FreeBSD 5.2.1-RELEASE-p10 i386 >Organization: Network-ASP >Environment: System: FreeBSD core 5.2.1-RELEASE-p10 FreeBSD 5.2.1-RELEASE-p10 #1: Fri Oct 1 21:02:27 EEST 2004 sergey@network-asp.biz:/usr/obj/usr/src/sys/RKERNEL i386 >Description: This is update of databases/mysql++ to 1.7.17. This PR supercedes ports/71371. Maintainer (mico@bsd.hu) is CC'ed. >How-To-Repeat: >Fix: --- mysql++.patch begins here --- diff -ruN mysql++.orig/Makefile mysql++/Makefile --- mysql++.orig/Makefile Mon Sep 20 06:00:18 2004 +++ mysql++/Makefile Fri Oct 8 16:23:24 2004 @@ -2,16 +2,13 @@ # Date created: 20th July 2000 # Whom: Miklos Niedermayer <mico@bsd.hu> # -# $FreeBSD: ports/databases/mysql++/Makefile,v 1.19 2004/09/19 01:21:58 kris Exp $ +# $FreeBSD: ports/databases/mysql++/Makefile,v 1.18 2004/02/20 17:06:53 arved Exp $ # PORTNAME= mysql++ -PORTVERSION= 1.7.9 -PORTREVISION= 2 -CATEGORIES= databases devel -MASTER_SITES= ftp://ftp.free.fr/pub/MySQL/Downloads/mysql++/ \ - ftp://gd.tuwien.ac.at/db/mysql/Downloads/mysql++/ \ - ftp://mirror.sit.wisc.edu/mirrors/mysql/Downloads/mysql++/ +PORTVERSION= 1.7.17 +CATEGORIES= databases +MASTER_SITES= http://tangentsoft.net/mysql++/releases/ MAINTAINER= mico@bsd.hu COMMENT= Complex C++ API for MySQL @@ -20,6 +17,7 @@ USE_GMAKE= yes USE_PERL5= yes GNU_CONFIGURE= yes + CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -D_FIX_FOR_BSD_ -Wno-deprecated" CONFIGURE_ARGS= --with-mysql=${LOCALBASE} \ --with-mysql-include=${LOCALBASE}/include/mysql/ \ @@ -28,16 +26,8 @@ .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - -.if ${OSVERSION} >= 500035 -PATCHFILES= patch_gcc_3.3.gz -PATCH_SITES= ${MASTER_SITES} -PATCH_DIST_STRIP=-p1 -.else -EXTRA_PATCHES= ${FILESDIR}/extra-patch-sqlplusint-connection.cc +.if ${OSVERSION} < 500039 +USE_GCC= 3.3 .endif pre-configure: @@ -46,19 +36,18 @@ @${ECHO} "install:" >>${WRKSRC}/examples/Makefile.in do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/sqlplusint/.libs/libsqlplus.so.1 ${PREFIX}/lib - @${INSTALL_DATA} ${WRKSRC}/sqlplusint/.libs/libsqlplus.a ${PREFIX}/lib - @(cd ${PREFIX}/lib && ${RM} -f libsqlplus.so && ${LN} -s libsqlplus.so.1 libsqlplus.so) - @ranlib ${PREFIX}/lib/libsqlplus.a + @${INSTALL_PROGRAM} ${WRKSRC}/sqlplusint/.libs/libmysqlpp.so.1 ${PREFIX}/lib + @${INSTALL_DATA} ${WRKSRC}/sqlplusint/.libs/libmysqlpp.a ${PREFIX}/lib + @(cd ${PREFIX}/lib && ${RM} -f libmysqlpp.so && ${LN} -s libmysqlpp.so.1 libmysqlpp.so) + @ranlib ${PREFIX}/lib/libmysqlpp.a @${MKDIR} ${PREFIX}/include/mysql @(cd ${WRKSRC}/sqlplusint/; \ - ${INSTALL_DATA} mysql++ defs undef_short define_short *.hh ${PREFIX}/include/mysql) + ${INSTALL_DATA} *.hh ${PREFIX}/include/mysql) .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/doc/man-text/* ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/doc/man-text/*.txt ${DOCSDIR} @${MKDIR} ${EXAMPLESDIR} - @${INSTALL_DATA} ${WRKSRC}/examples/*.cc ${EXAMPLESDIR} - @${INSTALL_DATA} ${FILESDIR}/README ${EXAMPLESDIR} + @${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} .endif .include <bsd.port.post.mk> diff -ruN mysql++.orig/distinfo mysql++/distinfo --- mysql++.orig/distinfo Wed Mar 31 06:06:37 2004 +++ mysql++/distinfo Fri Oct 8 16:02:18 2004 @@ -1,4 +1,2 @@ -MD5 (mysql++-1.7.9.tar.gz) = 1312fb4e33dcce07fac5fa9c2ac801f7 -SIZE (mysql++-1.7.9.tar.gz) = 749476 -MD5 (patch_gcc_3.3.gz) = c80d705e300b76ab07e10344eb8f19d3 -SIZE (patch_gcc_3.3.gz) = 19755 +MD5 (mysql++-1.7.17.tar.gz) = 62bbff96ed537a9482d4338a771f7c19 +SIZE (mysql++-1.7.17.tar.gz) = 916313 diff -ruN mysql++.orig/files/README mysql++/files/README --- mysql++.orig/files/README Sun Feb 18 16:53:51 2001 +++ mysql++/files/README Thu Jan 1 03:00:00 1970 @@ -1,26 +0,0 @@ - - -If you haven't met mysql++ before, please take a look at the documentation -in ../../doc/mysql++ before trying to play with these examples. Thank you. - -To compile a mysql++ program, - - o you have to have libmysqlclient installed on your system. It's - provided by the mysql-client port/package. MySQL++ now needs - MySQL 3.23 client libraries to run, so if you have old 3.22 - libraries, please upgrade them. - - o you have to link your programs with the sqlplus library - - o you have to add "-D_FIX_FOR_BSD_" to your CXXFLAGS environment - - -For example, you can try to compile simple1.cc with something like this - -c++ -D_FIX_FOR_BSD_ -I/usr/local/include/mysql -L/usr/local/lib -lsqlplus simple1.cc -o simple1 - - -Happy mysql++'ing. - - -Miklos Niedermayer (mico@bsd.hu) - diff -ruN mysql++.orig/files/extra-patch-sqlplusint-connection.cc mysql++/files/extra-patch-sqlplusint-connection.cc --- mysql++.orig/files/extra-patch-sqlplusint-connection.cc Sun Dec 14 18:47:40 2003 +++ mysql++/files/extra-patch-sqlplusint-connection.cc Thu Jan 1 03:00:00 1970 @@ -1,11 +0,0 @@ ---- sqlplusint/connection.cc.orig Fri Nov 21 15:59:47 2003 -+++ sqlplusint/connection.cc Fri Nov 21 16:00:19 2003 -@@ -109,7 +109,7 @@ - } - - string Connection::info () { -- char *i = mysql_info(&mysql); -+ const char *i = mysql_info(&mysql); - if (!i) - return string(); - else diff -ruN mysql++.orig/pkg-descr mysql++/pkg-descr --- mysql++.orig/pkg-descr Mon Jun 7 02:21:13 2004 +++ mysql++/pkg-descr Thu Oct 7 08:48:00 2004 @@ -2,4 +2,4 @@ The goal of this API is too make working with Queries as easy as working with other STL Containers. -WWW: http://dev.mysql.com/downloads/other/plusplus/ +WWW: http://tangentsoft.net/mysql++/ diff -ruN mysql++.orig/pkg-plist mysql++/pkg-plist --- mysql++.orig/pkg-plist Tue Sep 30 00:59:52 2003 +++ mysql++/pkg-plist Fri Oct 8 16:31:30 2004 @@ -1,8 +1,3 @@ -include/mysql/mysql++ -include/mysql/defs -include/mysql/define_short -include/mysql/undef_short -include/mysql/bad_query.hh include/mysql/coldata1.hh include/mysql/coldata2.hh include/mysql/coldata3.hh @@ -22,10 +17,11 @@ include/mysql/convert3.hh include/mysql/custom-macros.hh include/mysql/custom.hh -include/mysql/fields1.hh include/mysql/datetime1.hh include/mysql/datetime2.hh include/mysql/datetime3.hh +include/mysql/define_short.hh +include/mysql/defs.hh include/mysql/exceptions.hh include/mysql/field_names1.hh include/mysql/field_names2.hh @@ -33,10 +29,13 @@ include/mysql/field_types1.hh include/mysql/field_types2.hh include/mysql/field_types3.hh +include/mysql/fields1.hh include/mysql/fields2.hh include/mysql/manip1.hh include/mysql/manip2.hh include/mysql/manip3.hh +include/mysql/mysql++-windows.hh +include/mysql/mysql++.hh include/mysql/null1.hh include/mysql/null2.hh include/mysql/null3.hh @@ -60,7 +59,6 @@ include/mysql/sql_string1.hh include/mysql/sql_string2.hh include/mysql/sql_string3.hh -include/mysql/sqlplus.hh include/mysql/stream2string1.hh include/mysql/stream2string2.hh include/mysql/stream2string3.hh @@ -74,9 +72,9 @@ include/mysql/vallist1.hh include/mysql/vallist2.hh include/mysql/vallist3.hh -lib/libsqlplus.so.1 -lib/libsqlplus.a -lib/libsqlplus.so +lib/libmysqlpp.a +lib/libmysqlpp.so +lib/libmysqlpp.so.1 %%PORTDOCS%%%%DOCSDIR%%/1_Introduction.txt %%PORTDOCS%%%%DOCSDIR%%/2_Overview.txt %%PORTDOCS%%%%DOCSDIR%%/3_Important.txt @@ -97,21 +95,56 @@ %%PORTDOCS%%%%DOCSDIR%%/Usage.txt %%PORTDOCS%%%%DOCSDIR%%/index.txt %%PORTDOCS%%%%DOCSDIR%%/manual.txt +%%PORTDOCS%%%%EXAMPLESDIR%%/Makefile +%%PORTDOCS%%%%EXAMPLESDIR%%/Makefile.am +%%PORTDOCS%%%%EXAMPLESDIR%%/Makefile.in +%%PORTDOCS%%%%EXAMPLESDIR%%/README +%%PORTDOCS%%%%EXAMPLESDIR%%/cgi_image.bpf +%%PORTDOCS%%%%EXAMPLESDIR%%/cgi_image.bpr %%PORTDOCS%%%%EXAMPLESDIR%%/cgi_image.cc +%%PORTDOCS%%%%EXAMPLESDIR%%/cgi_image.vcproj +%%PORTDOCS%%%%EXAMPLESDIR%%/complic1.bpf +%%PORTDOCS%%%%EXAMPLESDIR%%/complic1.bpr %%PORTDOCS%%%%EXAMPLESDIR%%/complic1.cc +%%PORTDOCS%%%%EXAMPLESDIR%%/complic1.vcproj %%PORTDOCS%%%%EXAMPLESDIR%%/custom1.cc +%%PORTDOCS%%%%EXAMPLESDIR%%/custom1.vcproj %%PORTDOCS%%%%EXAMPLESDIR%%/custom2.cc +%%PORTDOCS%%%%EXAMPLESDIR%%/custom2.vcproj %%PORTDOCS%%%%EXAMPLESDIR%%/custom3.cc +%%PORTDOCS%%%%EXAMPLESDIR%%/custom3.vcproj %%PORTDOCS%%%%EXAMPLESDIR%%/custom4.cc +%%PORTDOCS%%%%EXAMPLESDIR%%/custom4.vcproj +%%PORTDOCS%%%%EXAMPLESDIR%%/dbinfo.bpf +%%PORTDOCS%%%%EXAMPLESDIR%%/dbinfo.bpr +%%PORTDOCS%%%%EXAMPLESDIR%%/dbinfo.cc +%%PORTDOCS%%%%EXAMPLESDIR%%/dbinfo.vcproj +%%PORTDOCS%%%%EXAMPLESDIR%%/dummy.cpp +%%PORTDOCS%%%%EXAMPLESDIR%%/examples.bpg +%%PORTDOCS%%%%EXAMPLESDIR%%/fieldinf1.bpf +%%PORTDOCS%%%%EXAMPLESDIR%%/fieldinf1.bpr %%PORTDOCS%%%%EXAMPLESDIR%%/fieldinf1.cc +%%PORTDOCS%%%%EXAMPLESDIR%%/fieldinf1.vcproj +%%PORTDOCS%%%%EXAMPLESDIR%%/load_file.bpf +%%PORTDOCS%%%%EXAMPLESDIR%%/load_file.bpr %%PORTDOCS%%%%EXAMPLESDIR%%/load_file.cc -%%PORTDOCS%%%%EXAMPLESDIR%%/populate.cc +%%PORTDOCS%%%%EXAMPLESDIR%%/load_file.vcproj +%%PORTDOCS%%%%EXAMPLESDIR%%/populate.bpf +%%PORTDOCS%%%%EXAMPLESDIR%%/populate.bpr +%%PORTDOCS%%%%EXAMPLESDIR%%/resetdb.bpf +%%PORTDOCS%%%%EXAMPLESDIR%%/resetdb.bpr %%PORTDOCS%%%%EXAMPLESDIR%%/resetdb.cc +%%PORTDOCS%%%%EXAMPLESDIR%%/resetdb.vcproj +%%PORTDOCS%%%%EXAMPLESDIR%%/simple1.bpf +%%PORTDOCS%%%%EXAMPLESDIR%%/simple1.bpr %%PORTDOCS%%%%EXAMPLESDIR%%/simple1.cc -%%PORTDOCS%%%%EXAMPLESDIR%%/sinisa_ex.cc +%%PORTDOCS%%%%EXAMPLESDIR%%/simple1.vcproj +%%PORTDOCS%%%%EXAMPLESDIR%%/updel_ex.vcproj +%%PORTDOCS%%%%EXAMPLESDIR%%/updel_x_.bpf +%%PORTDOCS%%%%EXAMPLESDIR%%/updel_x_.bpr %%PORTDOCS%%%%EXAMPLESDIR%%/updel_x_.cc %%PORTDOCS%%%%EXAMPLESDIR%%/util.cc -%%PORTDOCS%%%%EXAMPLESDIR%%/README +%%PORTDOCS%%%%EXAMPLESDIR%%/util.hh @dirrm include/mysql %%PORTDOCS%%@dirrm %%DOCSDIR%% %%PORTDOCS%%@dirrm %%EXAMPLESDIR%% --- mysql++.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?451324278.20041008202136>