Date: 20 Jul 2000 16:23:46 -0000 From: "Miklos Niedermayer" <mico@bsd.hu> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/20063: New port - MySQL++ Message-ID: <20000720162346.653.qmail@fmdb.c3.hu>
next in thread | raw e-mail | index | archive | help
>Number: 20063 >Category: ports >Synopsis: New port - MySQL++ >Confidential: yes >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jul 20 09:30:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Miklos Niedermayer >Release: FreeBSD 4.0-RELEASE i386 >Organization: >Environment: >Description: The FreeBSD port of the MySQL C++ API. >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: # # mysql++ # mysql++/Makefile # mysql++/pkg # mysql++/pkg/COMMENT # mysql++/pkg/DESCR # mysql++/pkg/PLIST # mysql++/files # mysql++/files/md5 # mysql++/files/README # mysql++/patches # mysql++/patches/patch-aa # echo c - mysql++ mkdir -p mysql++ > /dev/null 2>&1 echo x - mysql++/Makefile sed 's/^X//' >mysql++/Makefile << 'END-of-mysql++/Makefile' X# ports collection makefile for: MySQL++ X# Version required: 1.7 X# Date created: 20th July 2000 X# Whom: Miklos Niedermayer <mico@bsd.hu> X# X# $FreeBSD$ X# X XDISTNAME= mysql++-1.7 XCATEGORIES= databases devel XMASTER_SITES= http://gd.tuwien.ac.at/db/mysql/mysql++/ \ X http://www.mysql.com/Downloads/mysql++/ X XMAINTAINER= mico@bsd.hu X XLIB_DEPENDS= mysqlclient:${PORTSDIR}/databases/mysql322-client X XHAS_CONFIGURE= yes XCONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -D_FIX_FOR_BSD_ " X Xpre-configure: X ${RM} ${WRKSRC}/examples/Makefile.in X ${ECHO} "all:" >${WRKSRC}/examples/Makefile.in X ${ECHO} "install:" >>${WRKSRC}/examples/Makefile.in X Xdo-install: X @${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/sqlplusint/.libs/libsqlplus.so.1 ${PREFIX}/lib X @${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/sqlplusint/.libs/libsqlplus.a ${PREFIX}/lib X @(cd ${PREFIX}/lib && ${RM} -f libsqlplus.so && ln -s libsqlplus.so.1 libsqlplus.so) X @ranlib ${PREFIX}/lib/libsqlplus.a X @ldconfig -m ${PREFIX}/lib X @mkdir -p ${PREFIX}/share/examples/mysql++ X @mkdir -p ${PREFIX}/share/doc/mysql++ X @${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/examples/*.cc ${PREFIX}/share/examples/mysql++ X @${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/man-text/* ${PREFIX}/share/doc/mysql++ X @mkdir -p ${PREFIX}/include/mysql X @${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/sqlplusint/mysql++ ${WRKDIR}/${DISTNAME}/sqlplusint/*.hh ${PREFIX}/include/mysql X @${INSTALL_DATA} ${FILESDIR}/README ${PREFIX}/share/examples X X.include <bsd.port.mk> END-of-mysql++/Makefile echo c - mysql++/pkg mkdir -p mysql++/pkg > /dev/null 2>&1 echo x - mysql++/pkg/COMMENT sed 's/^X//' >mysql++/pkg/COMMENT << 'END-of-mysql++/pkg/COMMENT' XComplex C++ API for MySQL (needs mysql-client) END-of-mysql++/pkg/COMMENT echo x - mysql++/pkg/DESCR sed 's/^X//' >mysql++/pkg/DESCR << 'END-of-mysql++/pkg/DESCR' X Mysql++ is a complex C++ API for Mysql (And other SQL Databases Soon). X The goal of this API is too make working with Queries as easy as X working with other STL Containers. X X The manual can be found at /usr/local/share/doc/mysql++, and there are X some examples in /usr/local/share/examples/mysql++ (see README). X X Instructions for joining the mailing list (and an archive of the X mailing list) can be found off the Mysql++ home page at X http://www.mysql.com/download_mysql++.html. If you just wish to ask X questions, you can mail to mysql-plusplus@lists.mysql.com. END-of-mysql++/pkg/DESCR echo x - mysql++/pkg/PLIST sed 's/^X//' >mysql++/pkg/PLIST << 'END-of-mysql++/pkg/PLIST' Xinclude/mysql/mysql++ Xinclude/mysql/bad_query.hh Xinclude/mysql/coldata1.hh Xinclude/mysql/coldata2.hh Xinclude/mysql/coldata3.hh Xinclude/mysql/coldata4.hh Xinclude/mysql/compare1.hh Xinclude/mysql/compare2.hh Xinclude/mysql/compare3.hh Xinclude/mysql/connection0.hh Xinclude/mysql/connection1.hh Xinclude/mysql/connection2.hh Xinclude/mysql/connection3.hh Xinclude/mysql/const_string1.hh Xinclude/mysql/const_string2.hh Xinclude/mysql/const_string3.hh Xinclude/mysql/convert1.hh Xinclude/mysql/convert2.hh Xinclude/mysql/convert3.hh Xinclude/mysql/custom-macros.hh Xinclude/mysql/custom.hh Xinclude/mysql/fields1.hh Xinclude/mysql/datetime1.hh Xinclude/mysql/datetime2.hh Xinclude/mysql/datetime3.hh Xinclude/mysql/field_names1.hh Xinclude/mysql/field_names2.hh Xinclude/mysql/field_names3.hh Xinclude/mysql/field_types1.hh Xinclude/mysql/field_types2.hh Xinclude/mysql/field_types3.hh Xinclude/mysql/fields2.hh Xinclude/mysql/manip1.hh Xinclude/mysql/manip2.hh Xinclude/mysql/manip3.hh Xinclude/mysql/null1.hh Xinclude/mysql/null2.hh Xinclude/mysql/null3.hh Xinclude/mysql/query1.hh Xinclude/mysql/query2.hh Xinclude/mysql/query3.hh Xinclude/mysql/resiter1.hh Xinclude/mysql/result1.hh Xinclude/mysql/result2.hh Xinclude/mysql/result3.hh Xinclude/mysql/row1.hh Xinclude/mysql/row2.hh Xinclude/mysql/row3.hh Xinclude/mysql/set1.hh Xinclude/mysql/set2.hh Xinclude/mysql/set3.hh Xinclude/mysql/sql_query0.hh Xinclude/mysql/sql_query1.hh Xinclude/mysql/sql_query2.hh Xinclude/mysql/sql_query3.hh Xinclude/mysql/sql_string1.hh Xinclude/mysql/sql_string2.hh Xinclude/mysql/sql_string3.hh Xinclude/mysql/sqlplus.hh Xinclude/mysql/stream2string1.hh Xinclude/mysql/stream2string2.hh Xinclude/mysql/stream2string3.hh Xinclude/mysql/string_util.hh Xinclude/mysql/tiny_int1.hh Xinclude/mysql/tiny_int2.hh Xinclude/mysql/tiny_int3.hh Xinclude/mysql/type_info1.hh Xinclude/mysql/type_info2.hh Xinclude/mysql/type_info3.hh Xinclude/mysql/vallist1.hh Xinclude/mysql/vallist2.hh Xinclude/mysql/vallist3.hh Xlib/libsqlplus.so.1 Xlib/libsqlplus.a Xlib/libsqlplus.so Xshare/doc/mysql++/1_Introduction.txt Xshare/doc/mysql++/2_Overview.txt Xshare/doc/mysql++/3_Important.txt Xshare/doc/mysql++/4_Tutorial.txt Xshare/doc/mysql++/5_Class.txt Xshare/doc/mysql++/6_Template.txt Xshare/doc/mysql++/7_Specialized.txt Xshare/doc/mysql++/8_Long.txt Xshare/doc/mysql++/A_Changelog.txt Xshare/doc/mysql++/About_this.txt Xshare/doc/mysql++/Appendices.txt Xshare/doc/mysql++/B_Do.txt Xshare/doc/mysql++/C_Credits.txt Xshare/doc/mysql++/Contents.txt Xshare/doc/mysql++/D_Copyright.txt Xshare/doc/mysql++/E_Feedback.txt Xshare/doc/mysql++/Introductory_Material.txt Xshare/doc/mysql++/Usage.txt Xshare/doc/mysql++/index.txt Xshare/doc/mysql++/manual.txt Xshare/examples/mysql++/cgi_image.cc Xshare/examples/mysql++/complic1.cc Xshare/examples/mysql++/custom1.cc Xshare/examples/mysql++/custom2.cc Xshare/examples/mysql++/custom3.cc Xshare/examples/mysql++/custom4.cc Xshare/examples/mysql++/fieldinf1.cc Xshare/examples/mysql++/load_file.cc Xshare/examples/mysql++/resetdb.cc Xshare/examples/mysql++/simple1.cc Xshare/examples/mysql++/sinisa_ex.cc Xshare/examples/mysql++/updel_x_.cc Xshare/examples/mysql++/util.cc X@unexec rmdir include/mysql 2>/dev/null || true X@dirrm share/doc/mysql++ X@dirrm share/examples/mysql++ END-of-mysql++/pkg/PLIST echo c - mysql++/files mkdir -p mysql++/files > /dev/null 2>&1 echo x - mysql++/files/md5 sed 's/^X//' >mysql++/files/md5 << 'END-of-mysql++/files/md5' XMD5 (mysql++-1.7.tar.gz) = 0a600601321c304498cfbc3c386f90ab END-of-mysql++/files/md5 echo x - mysql++/files/README sed 's/^X//' >mysql++/files/README << 'END-of-mysql++/files/README' X X XIf you haven't met mysql++ before, please take a look at the documentation Xin ../../doc/mysql++ before trying to play with these examples. Thank you. X X XTo compile a mysql++ program, X X o you have to have libmysqlclient installed on your system X (it's in FreeBSD port mysql-client) X X o you have to link your programs with the sqlplus library X X o you have to add "-D_FIX_FOR_BSD_" to your CXXFLAGS environment X X XFor example, you can try to compile simple1.cc with something like this X Xc++ -D_FIX_FOR_BSD_ -I/usr/local/include/mysql -L/usr/local/lib -lsqlplus simple1.cc -o simple1 X X XHappy mysql++'ing. X X -Miklos Niedermayer (mico@bsd.hu) X END-of-mysql++/files/README echo c - mysql++/patches mkdir -p mysql++/patches > /dev/null 2>&1 echo x - mysql++/patches/patch-aa sed 's/^X//' >mysql++/patches/patch-aa << 'END-of-mysql++/patches/patch-aa' X--- sqlplusint/Makefile.in.orig Tue May 16 16:21:47 2000 X+++ sqlplusint/Makefile.in Thu Jul 20 11:22:08 2000 X@@ -91,7 +91,7 @@ X libsqlplus_la_SOURCES = coldata.cc connection.cc datetime.cc field_names.cc field_types.cc manip.cc query.cc result.cc row.cc set.cc sql_query.cc type_info.cc vallist.cc string_util.cc X X X-libsqlplus_la_LDFLAGS = -version-info $(SQLPLUS_MAJOR_VERSION):$(SQLPLUS_MINOR_VERSION):$(SQLPLUS_MICRO_VERSION) X+libsqlplus_la_LDFLAGS = -version-info $(SQLPLUS_MAJOR_VERSION) X X include_HEADERS = sqlplus.hh coldata1.hh coldata2.hh coldata3.hh coldata4.hh compare1.hh compare2.hh compare3.hh connection0.hh connection1.hh connection2.hh connection3.hh const_string1.hh const_string2.hh const_string3.hh convert1.hh convert2.hh convert3.hh custom-macros.hh custom.hh datetime1.hh datetime2.hh datetime3.hh field_names1.hh field_names2.hh field_names3.hh field_types1.hh field_types2.hh field_types3.hh fields1.hh fields2.hh manip1.hh manip2.hh manip3.hh null1.hh null2.hh null3.hh query1.hh query2.hh query3.hh resiter1.hh result1.hh result2.hh result3.hh row1.hh row2.hh row3.hh set1.hh set2.hh set3.hh sql_query0.hh sql_query1.hh sql_query2.hh sql_query3.hh sql_string1.hh sql_string2.hh sql_string3.hh stream2string1.hh stream2string2.hh stream2string3.hh tiny_int1.hh tiny_int2.hh tiny_int3.hh type_info1.hh type_info2.hh type_info3.hh vallist1.hh vallist2.hh vallist3.hh string_util.hh define_short defs X END-of-mysql++/patches/patch-aa exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000720162346.653.qmail>