diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2006-06-03 03:02:17 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2006-06-03 03:02:17 +0000 |
commit | 8074d478f1a800eca261d2471f12e20ddd35475e (patch) | |
tree | ae4f625df8e7fe3740a906426aa5b48745fb2edf /databases/libzdb | |
parent | - Update to 4.6 (diff) |
Add libzdb, it's a thread-safe connection pool library.
Notes
Notes:
svn path=/head/; revision=164261
Diffstat (limited to 'databases/libzdb')
-rw-r--r-- | databases/libzdb/Makefile | 44 | ||||
-rw-r--r-- | databases/libzdb/distinfo | 3 | ||||
-rw-r--r-- | databases/libzdb/files/patch-configure | 11 | ||||
-rw-r--r-- | databases/libzdb/pkg-descr | 6 | ||||
-rw-r--r-- | databases/libzdb/pkg-plist | 8 |
5 files changed, 72 insertions, 0 deletions
diff --git a/databases/libzdb/Makefile b/databases/libzdb/Makefile new file mode 100644 index 000000000000..5988cdfb0038 --- /dev/null +++ b/databases/libzdb/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: libzdb +# Date created: Nov 28 2005 +# Whom: vanilla@ +# +# $FreeBSD$ +# + +PORTNAME= libzdb +PORTVERSION= 1.0.3 +CATEGORIES= databases +MASTER_SITES= http://www.tildeslash.com/libzdb/dist/ + +MAINTAINER= vanilla@FreeBSD.org +COMMENT= Thread-safe connection pool library + +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_AUTOTOOLS= libtool:15 +INSTALLS_SHLIB= yes +CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" + +OPTIONS= MYSQL "Add MySQL support" on \ + SQLITE " Add Sqlite support" on + +.include <bsd.port.pre.mk> + +.if defined(WITH_MYSQL) +USE_MYSQL= yes +CONFIGURE_ARGS+= --with-mysql=${PREFIX} +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/mysql" \ + LDFLAGS="-L${LOCALBASE}/lib/mysql" +.else +CONFIGURE_ARGS+= --without-mysql +.endif + +.if defined(WITH_SQLITE) +USE_SQLITE= 3 +CONFIGURE_ARGS+= --with-sqlite=${PREFIX} +.else +CONFIGURE_ARGS+= --without-sqlite +.endif + +.include <bsd.port.post.mk> diff --git a/databases/libzdb/distinfo b/databases/libzdb/distinfo new file mode 100644 index 000000000000..706e1be4d8bd --- /dev/null +++ b/databases/libzdb/distinfo @@ -0,0 +1,3 @@ +MD5 (libzdb-1.0.3.tar.gz) = 0f87108b4a27a2bc6fc0cb013e104d0b +SHA256 (libzdb-1.0.3.tar.gz) = dec47324c7ad94190c3d72fff9e7bb88ff12ce23096ca9602dcb57d6da5afcdb +SIZE (libzdb-1.0.3.tar.gz) = 486561 diff --git a/databases/libzdb/files/patch-configure b/databases/libzdb/files/patch-configure new file mode 100644 index 000000000000..5121b0f2c290 --- /dev/null +++ b/databases/libzdb/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig Fri Feb 17 12:20:06 2006 ++++ configure Fri Feb 17 12:21:32 2006 +@@ -19185,7 +19185,7 @@ + _ACEOF + + mysql="yes" +- if test -r "$with_mysql/lib/libmysqlclient.a"; then ++ if test -r "$with_mysql/lib/mysql/libmysqlclient.a"; then + DB_CPPFLAGS="$DB_CPPFLAGS -I$with_mysql/include" + DB_LDFLAGS="$DB_LDFLAGS -L$with_mysql/lib/ -lmysqlclient" + else diff --git a/databases/libzdb/pkg-descr b/databases/libzdb/pkg-descr new file mode 100644 index 000000000000..e4db78a55db9 --- /dev/null +++ b/databases/libzdb/pkg-descr @@ -0,0 +1,6 @@ +The Zild Database Library implements a small and fast database API +with the following features: C database library - easy to use API +- connect to multiple database systems - zero runtime configuration, +connect using URL scheme - Thread safe Connection Pooling. + +WWW: http://www.tildeslash.com/libzdb/ diff --git a/databases/libzdb/pkg-plist b/databases/libzdb/pkg-plist new file mode 100644 index 000000000000..41d74caa3922 --- /dev/null +++ b/databases/libzdb/pkg-plist @@ -0,0 +1,8 @@ +include/Connection.h +include/ConnectionPool.h +include/PreparedStatement.h +include/ResultSet.h +include/URL.h +lib/libzdb.a +lib/libzdb.so +lib/libzdb.so.1 |