summaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-11-04 06:20:39 +0000
committerijliao <ijliao@FreeBSD.org>2001-11-04 06:20:39 +0000
commitc85fcdbff6632396eeb6f58511fe457f96413256 (patch)
treecdffa587a5eaa411a80529dc696cde3ab6df2220 /databases
parentd3e910e65662df1f72aabb02bdb6a18c8811a43a (diff)
downloadFreeBSD-ports-c85fcdbff6632396eeb6f58511fe457f96413256.zip
FreeBSD-ports-c85fcdbff6632396eeb6f58511fe457f96413256.tar.gz
add libdbi
Database Independent Abstraction Layer for C
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/libdbi/Makefile42
-rw-r--r--databases/libdbi/distinfo1
-rw-r--r--databases/libdbi/files/patch-include::dbi::dbi.h10
-rw-r--r--databases/libdbi/pkg-comment1
-rw-r--r--databases/libdbi/pkg-descr6
-rw-r--r--databases/libdbi/pkg-plist42
7 files changed, 103 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 41ec300..a283349 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -26,6 +26,7 @@
SUBDIR += interbase4
SUBDIR += java-sqlrelay
SUBDIR += jdbc-oracle816
+ SUBDIR += libdbi
SUBDIR += libgda
SUBDIR += libiodbc
SUBDIR += libodbc++
diff --git a/databases/libdbi/Makefile b/databases/libdbi/Makefile
new file mode 100644
index 0000000..fdd703b
--- /dev/null
+++ b/databases/libdbi/Makefile
@@ -0,0 +1,42 @@
+# ex:ts=8
+# New ports collection makefile for: libdbi
+# Date created: Nov 4, 2001
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= libdbi
+PORTVERSION= 0.6.2
+CATEGORIES= databases devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
+ http://linux.ucla.edu/~dap24/%SUBDIR%/
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= ports@FreeBSD.org
+
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+INSTALLS_SHLIB= yes
+PLIST_SUB= VERSION=${PORTVERSION}
+
+.if defined(WITH_PGSQL)
+LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7
+CONFIGURE_ARGS+= --with-pgsql
+PLIST_SUB+= WITH_PQ=""
+.else
+PLIST_SUB+= WITH_PQ="@comment "
+.endif
+
+.if defined(WITH_MYSQL)
+LIB_DEPENDS+= mysqlclient:${PORTSDIR}/databases/mysql323-client
+CONFIGURE_ARGS+= \
+ --with-mysql \
+ --with-mysql-incdir=${LOCALBASE}/include \
+ --with-mysql-libdir=${LOCALBASE}/lib/mysql
+PLIST_SUB+= WITH_MY=""
+.else
+PLIST_SUB+= WITH_MY="@comment "
+.endif
+
+.include <bsd.port.mk>
diff --git a/databases/libdbi/distinfo b/databases/libdbi/distinfo
new file mode 100644
index 0000000..709528b
--- /dev/null
+++ b/databases/libdbi/distinfo
@@ -0,0 +1 @@
+MD5 (libdbi-0.6.2.tar.gz) = 02a6814abba70405557f3b802567e9aa
diff --git a/databases/libdbi/files/patch-include::dbi::dbi.h b/databases/libdbi/files/patch-include::dbi::dbi.h
new file mode 100644
index 0000000..f1453de
--- /dev/null
+++ b/databases/libdbi/files/patch-include::dbi::dbi.h
@@ -0,0 +1,10 @@
+--- include/dbi/dbi.h.orig Sun Nov 4 11:48:26 2001
++++ include/dbi/dbi.h Sun Nov 4 11:48:37 2001
+@@ -29,6 +29,7 @@
+
+ #include <stdlib.h>
+ #include <stdarg.h>
++#include <time.h>
+
+ /* opaque type definitions */
+ typedef void * dbi_plugin;
diff --git a/databases/libdbi/pkg-comment b/databases/libdbi/pkg-comment
new file mode 100644
index 0000000..c39017f
--- /dev/null
+++ b/databases/libdbi/pkg-comment
@@ -0,0 +1 @@
+Database Independent Abstraction Layer for C
diff --git a/databases/libdbi/pkg-descr b/databases/libdbi/pkg-descr
new file mode 100644
index 0000000..a2e4e51
--- /dev/null
+++ b/databases/libdbi/pkg-descr
@@ -0,0 +1,6 @@
+libdbi implements a database-independent abstraction layer in C, similar
+to the DBI/DBD layer in Perl. Writing one generic set of code, programmers
+can leverage the power of multiple databases and multiple simultaneous
+database connections by using this framework.
+
+WWW: http://libdbi.sourceforge.net/
diff --git a/databases/libdbi/pkg-plist b/databases/libdbi/pkg-plist
new file mode 100644
index 0000000..5ec45db
--- /dev/null
+++ b/databases/libdbi/pkg-plist
@@ -0,0 +1,42 @@
+include/dbi/dbd.h
+include/dbi/dbi-dev.h
+include/dbi/dbi.h
+lib/libdbi.a
+lib/libdbi.so
+lib/libdbi.so.0
+%%WITH_PQ%%lib/dbd/libpgsql.so
+%%WITH_MY%%lib/dbd/libmysql.so
+share/doc/libdbi-0.6.2/plugin-guide/contact.html
+share/doc/libdbi-0.6.2/plugin-guide/copying-fdl.html
+share/doc/libdbi-0.6.2/plugin-guide/description.html
+share/doc/libdbi-0.6.2/plugin-guide/gnugpl.html
+share/doc/libdbi-0.6.2/plugin-guide/helperfuncs.html
+share/doc/libdbi-0.6.2/plugin-guide/index.html
+share/doc/libdbi-0.6.2/plugin-guide/intro.html
+share/doc/libdbi-0.6.2/plugin-guide/pluginfuncs-dbquery.html
+share/doc/libdbi-0.6.2/plugin-guide/pluginfuncs-infrastructure.html
+share/doc/libdbi-0.6.2/plugin-guide/pluginfuncs.html
+share/doc/libdbi-0.6.2/plugin-guide/terminology.html
+share/doc/libdbi-0.6.2/plugin-guide.pdf
+share/doc/libdbi-0.6.2/programmers-guide/contact.html
+share/doc/libdbi-0.6.2/programmers-guide/copying-fdl.html
+share/doc/libdbi-0.6.2/programmers-guide/description.html
+share/doc/libdbi-0.6.2/programmers-guide/gnugpl.html
+share/doc/libdbi-0.6.2/programmers-guide/index.html
+share/doc/libdbi-0.6.2/programmers-guide/intro.html
+share/doc/libdbi-0.6.2/programmers-guide/quickstart-code.html
+share/doc/libdbi-0.6.2/programmers-guide/quickstart-debriefing.html
+share/doc/libdbi-0.6.2/programmers-guide/quickstart.html
+share/doc/libdbi-0.6.2/programmers-guide/reference-core.html
+share/doc/libdbi-0.6.2/programmers-guide/reference-database.html
+share/doc/libdbi-0.6.2/programmers-guide/reference-driver.html
+share/doc/libdbi-0.6.2/programmers-guide/reference-field.html
+share/doc/libdbi-0.6.2/programmers-guide/reference-plugin.html
+share/doc/libdbi-0.6.2/programmers-guide/reference.html
+share/doc/libdbi-0.6.2/programmers-guide/terminology.html
+share/doc/libdbi-0.6.2/programmers-guide.pdf
+@dirrm include/dbi
+@dirrm lib/dbd
+@dirrm share/doc/libdbi-%%VERSION%%/plugin-guide
+@dirrm share/doc/libdbi-%%VERSION%%/programmers-guide
+@dirrm share/doc/libdbi-%%VERSION%%
OpenPOWER on IntegriCloud