aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2006-06-03 11:02:17 +0800
committervanilla <vanilla@FreeBSD.org>2006-06-03 11:02:17 +0800
commit52769535fd40e4e526fa83f9cb68754a490cb022 (patch)
tree98ccca6b91514dfe66c33b88432489e44b3a7a1e
parent479a9bef8b03e134cd9114bef0fb66f8d396177e (diff)
downloadfreebsd-ports-gnome-52769535fd40e4e526fa83f9cb68754a490cb022.tar.gz
freebsd-ports-gnome-52769535fd40e4e526fa83f9cb68754a490cb022.tar.zst
freebsd-ports-gnome-52769535fd40e4e526fa83f9cb68754a490cb022.zip
Add libzdb, it's a thread-safe connection pool library.
-rw-r--r--databases/Makefile1
-rw-r--r--databases/libzdb/Makefile44
-rw-r--r--databases/libzdb/distinfo3
-rw-r--r--databases/libzdb/files/patch-configure11
-rw-r--r--databases/libzdb/pkg-descr6
-rw-r--r--databases/libzdb/pkg-plist8
6 files changed, 73 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index e1e02d9f5227..c60ceae5848a 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -101,6 +101,7 @@
SUBDIR += libpbl
SUBDIR += libsdb
SUBDIR += libudbc
+ SUBDIR += libzdb
SUBDIR += linux-oracle-instantclient-basic
SUBDIR += linux-oracle-instantclient-sdk
SUBDIR += linux-oracle-instantclient-sqlplus
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