diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2004-08-27 18:40:15 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2004-08-27 18:40:15 +0000 |
commit | a47d0e4abd8514186854dc182e3b8665f274a506 (patch) | |
tree | 1ff6a61733d30e14468f4ac019e5e53b70ffc9a3 /databases/mysqlcppapi | |
parent | 1281878cbe0208cb3e3f0fc995caa85bb9ec4fb6 (diff) |
A fork of mysql++ C++ API for MySQL
PR: ports/70050
Submitted by: Jie Gao <gaoj@cpsc.ucalgary.ca>
Notes
Notes:
svn path=/head/; revision=117444
Diffstat (limited to 'databases/mysqlcppapi')
-rw-r--r-- | databases/mysqlcppapi/Makefile | 45 | ||||
-rw-r--r-- | databases/mysqlcppapi/distinfo | 2 | ||||
-rw-r--r-- | databases/mysqlcppapi/files/patch-configure | 13 | ||||
-rw-r--r-- | databases/mysqlcppapi/files/patch-mysqlcppapi-2.0.pc.in | 11 | ||||
-rw-r--r-- | databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc | 16 | ||||
-rw-r--r-- | databases/mysqlcppapi/pkg-descr | 14 | ||||
-rw-r--r-- | databases/mysqlcppapi/pkg-plist | 49 |
7 files changed, 150 insertions, 0 deletions
diff --git a/databases/mysqlcppapi/Makefile b/databases/mysqlcppapi/Makefile new file mode 100644 index 000000000000..0ea473fefe13 --- /dev/null +++ b/databases/mysqlcppapi/Makefile @@ -0,0 +1,45 @@ +# ports collection makefile for: mysqlcppapi +# Date created: 4 August 2004 +# Whom: Jie Gao <gaoj@cpsc.ucalgary.ca> +# +# $FreeBSD$ +# + +PORTNAME= mysqlcppapi +PORTVERSION= 1.9.3 +CATEGORIES= databases devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR=mysqlcppapi + +MAINTAINER= gaoj@cpsc.ucalgary.ca +COMMENT= A fork of mysql++ C++ API for MySQL + +USE_MYSQL= yes +USE_REINPLACE= yes +USE_LIBTOOL_VER=15 +GNU_CONFIGURE= yes + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500035 +BUILD_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport +RUN_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/stlport" \ + LDFLAGS="-L${LOCALBASE}/lib -lstlport_gcc ${PTHREAD_LIBS}" +.else +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" +.endif +CONFIGURE_ARGS= --with-mysql=${LOCALBASE} +INSTALLS_SHLIB= yes + +post-patch: + ${REINPLACE_CMD} -e '/^pkgconfigdir =/s,\$$(libdir),$$(prefix)/libdata,g' \ + ${WRKSRC}/Makefile.in + ${REINPLACE_CMD} s/libmysqlcppapi-1.9/libmysqlcppapi/g \ + ${WRKSRC}/mysqlcppapi/Makefile.in ${WRKSRC}/examples/Makefile.in + ${FIND} ${WRKSRC}/mysqlcppapi -name Makefile.in \ + -exec ${REINPLACE_CMD} -e \ + '/^library_includedir =/s,\$$(GENERIC_LIBRARY_NAME)-2.0/,,g' '{}' \; + +.include <bsd.port.post.mk> diff --git a/databases/mysqlcppapi/distinfo b/databases/mysqlcppapi/distinfo new file mode 100644 index 000000000000..e62808d55ec2 --- /dev/null +++ b/databases/mysqlcppapi/distinfo @@ -0,0 +1,2 @@ +MD5 (mysqlcppapi-1.9.3.tar.gz) = 2479e6ab1f0f490119ead67e254fed3b +SIZE (mysqlcppapi-1.9.3.tar.gz) = 354688 diff --git a/databases/mysqlcppapi/files/patch-configure b/databases/mysqlcppapi/files/patch-configure new file mode 100644 index 000000000000..e81daa02854a --- /dev/null +++ b/databases/mysqlcppapi/files/patch-configure @@ -0,0 +1,13 @@ +--- configure~ Wed Aug 4 23:58:41 2004 ++++ configure Thu Aug 5 00:12:29 2004 +@@ -18465,8 +18465,8 @@ + fi; + + +-MYSQL_LIBS="-L${MYSQL_PREFIX}/mysql/lib/mysql -lmysqlclient -L${MYSQL_PREFIX}/lib/mysql -lmysqlclient" +-MYSQL_CFLAGS="-I${MYSQL_PREFIX}/mysql/include" ++MYSQL_LIBS="-L${MYSQL_PREFIX}/lib/mysql -lmysqlclient" ++MYSQL_CFLAGS="-I${MYSQL_PREFIX}/include" + + + diff --git a/databases/mysqlcppapi/files/patch-mysqlcppapi-2.0.pc.in b/databases/mysqlcppapi/files/patch-mysqlcppapi-2.0.pc.in new file mode 100644 index 000000000000..c5bcf9e97b81 --- /dev/null +++ b/databases/mysqlcppapi/files/patch-mysqlcppapi-2.0.pc.in @@ -0,0 +1,11 @@ +--- mysqlcppapi-2.0.pc.in.orig Thu Mar 21 03:06:01 2002 ++++ mysqlcppapi-2.0.pc.in Thu Aug 5 15:37:18 2004 +@@ -7,6 +7,6 @@ + Description: C++ wrapper for MySQL client library + Requires: + Version: @VERSION@ +-Libs: -L${libdir} -lmysqlcppapi-1.9 @MYSQL_LIBS@ +-Cflags: -I${includedir}/mysqlcppapi-2.0 -I${libdir}/mysqlcppapi-2.0/include @MYSQL_CFLAGS@ ++Libs: -L${libdir} -lmysqlcppapi @MYSQL_LIBS@ @LDFLAGS@ ++Cflags: @CPPFLAGS@ @MYSQL_CFLAGS@ -I${prefix}/include + diff --git a/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc b/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc new file mode 100644 index 000000000000..aa3f2567e801 --- /dev/null +++ b/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc @@ -0,0 +1,16 @@ +--- mysqlcppapi/Connection.cc.orig Wed Aug 4 23:15:58 2004 ++++ mysqlcppapi/Connection.cc Wed Aug 4 23:18:13 2004 +@@ -211,9 +211,11 @@ + bool Connection::shutdown () + { + check_connection_is_open(); +- ++#if ( MYSQL_VERSION_ID == 40103 ) || ( MYSQL_VERSION_ID == 50001 ) ++ bool suc = !(mysql_shutdown(m_sharedptr_connection.obj(),SHUTDOWN_DEFAULT)); ++#else + bool suc = !(mysql_shutdown(m_sharedptr_connection.obj())); +- ++#endif + if (!suc) + throw ex_BadQuery(error()); + diff --git a/databases/mysqlcppapi/pkg-descr b/databases/mysqlcppapi/pkg-descr new file mode 100644 index 000000000000..55dd7d90b323 --- /dev/null +++ b/databases/mysqlcppapi/pkg-descr @@ -0,0 +1,14 @@ +mysqlcppapi is a C++ wrapper for the MySQL C API library. + +It is a branch of the MySql++ project, but it has diverged significantly for +the following reasons: + +* MySQL++ is aggressively optimised for speed, but optimisation should happen + after the design is mature, and that optimisation should be targeted. + Premature optimisation obscures the design and prevents it from improving. +* MySQL++ provides too many ways to do things instead of deciding on an + interface. Again, this obscures the design. +* MySQL++ uses preprocessor macros to an extent that is unacceptable in a C++ + library. + +WWW: http://mysqlcppapi.sourceforge.net diff --git a/databases/mysqlcppapi/pkg-plist b/databases/mysqlcppapi/pkg-plist new file mode 100644 index 000000000000..acf00366c0e2 --- /dev/null +++ b/databases/mysqlcppapi/pkg-plist @@ -0,0 +1,49 @@ +include/mysqlcppapi/Allocator_Connection.h +include/mysqlcppapi/ColData.h +include/mysqlcppapi/Connection.h +include/mysqlcppapi/const_subscript_container.h +include/mysqlcppapi/convert.h +include/mysqlcppapi/datetime/Date.h +include/mysqlcppapi/datetime/DateTime.h +include/mysqlcppapi/datetime/Time.h +include/mysqlcppapi/datetime/date_base.h +include/mysqlcppapi/datetime/datetime_base.h +include/mysqlcppapi/datetime/stream2string.h +include/mysqlcppapi/datetime/time_base.h +include/mysqlcppapi/exceptions/ex_BadConversion.h +include/mysqlcppapi/exceptions/ex_BadNullConversion.h +include/mysqlcppapi/exceptions/ex_BadQuery.h +include/mysqlcppapi/exceptions/ex_BadQuery_NotEnoughParameters.h +include/mysqlcppapi/exceptions/ex_Locked.h +include/mysqlcppapi/exceptions/ex_base.h +include/mysqlcppapi/fields/FieldInfo.h +include/mysqlcppapi/fields/FieldType.h +include/mysqlcppapi/fields/Fields.h +include/mysqlcppapi/mysqlcppapi.h +include/mysqlcppapi/mysqlcppapi_internal.h +include/mysqlcppapi/null.h +include/mysqlcppapi/query/Query.h +include/mysqlcppapi/query/sql_query.h +include/mysqlcppapi/query_results/Allocator_Result.h +include/mysqlcppapi/query_results/Result_NoData.h +include/mysqlcppapi/query_results/Result_Store.h +include/mysqlcppapi/query_results/Result_Use.h +include/mysqlcppapi/row/Row.h +include/mysqlcppapi/row/row_template.h +include/mysqlcppapi/smartpointer/Allocator.h +include/mysqlcppapi/smartpointer/SharedPtr.h +include/mysqlcppapi/string_util.h +include/mysqlcppapi/windows_includes.h +lib/libmysqlcppapi-1.9.so +lib/libmysqlcppapi-1.9.so.4 +lib/libmysqlcppapi.a +lib/libmysqlcppapi.so +libdata/pkgconfig/mysqlcppapi-2.0.pc +@dirrm include/mysqlcppapi/smartpointer +@dirrm include/mysqlcppapi/row +@dirrm include/mysqlcppapi/query_results +@dirrm include/mysqlcppapi/query +@dirrm include/mysqlcppapi/fields +@dirrm include/mysqlcppapi/exceptions +@dirrm include/mysqlcppapi/datetime +@dirrm include/mysqlcppapi |