aboutsummaryrefslogtreecommitdiff
path: root/databases/libdbi-drivers
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2003-10-30 04:22:19 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2003-10-30 04:22:19 +0000
commitc624ceba60e6ca8d9eeb198a3161e281f7aa3273 (patch)
treee6b3fe40604318263ebbb338861a6fc4cd2f8a71 /databases/libdbi-drivers
parentb7c4b3f5cc3424732fd9156331ccc1ee0173bb4d (diff)
downloadports-c624ceba60e6ca8d9eeb198a3161e281f7aa3273.tar.gz
ports-c624ceba60e6ca8d9eeb198a3161e281f7aa3273.zip
Notes
Diffstat (limited to 'databases/libdbi-drivers')
-rw-r--r--databases/libdbi-drivers/Makefile57
-rw-r--r--databases/libdbi-drivers/distinfo1
-rw-r--r--databases/libdbi-drivers/files/patch-ltmain.sh16
-rw-r--r--databases/libdbi-drivers/pkg-descr4
-rw-r--r--databases/libdbi-drivers/pkg-plist39
5 files changed, 117 insertions, 0 deletions
diff --git a/databases/libdbi-drivers/Makefile b/databases/libdbi-drivers/Makefile
new file mode 100644
index 000000000000..ea1518b7aab9
--- /dev/null
+++ b/databases/libdbi-drivers/Makefile
@@ -0,0 +1,57 @@
+# ex:ts=8
+# Ports collection makefile for: libdbi-drivers
+# Date created: Oct 30, 2003
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= libdbi-drivers
+PORTVERSION= 0.7.0
+CATEGORIES= databases devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= libdbi drivers
+
+LIB_DEPENDS= dbi.0:${PORTSDIR}/databases/libdbi
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-dbi-incdir=${LOCALBASE}/include/dbi
+
+DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
+
+.if defined(WITH_MYSQL)
+USE_MYSQL= yes
+CONFIGURE_ARGS+= --with-mysql
+PLIST_SUB+= MYSQL=""
+.else
+PLIST_SUB+= MYSQL="@comment "
+.endif
+
+.if defined(WITH_PGSQL)
+LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql-client$
+CONFIGURE_ARGS+= --with-pgsql
+PLIST_SUB+= PGSQL=""
+.else
+PLIST_SUB+= PGSQL="@comment "
+.endif
+
+.if defined(WITH_SQLITE)
+LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite
+CONFIGURE_ARGS+= --with-sqlite
+PLIST_SUB+= SQLITE=""
+.else
+PLIST_SUB+= SQLITE="@comment "
+.endif
+
+#.if defined(WITH_MSQL)
+#LIB_DEPENDS+= msql.1:${PORTSDIR}/databases/msql
+#CONFIGURE_ARGS+= --with-msql
+#PLIST_SUB+= MSQL=""
+#.else
+#PLIST_SUB+= MSQL="@comment "
+#.endif
+
+.include <bsd.port.mk>
diff --git a/databases/libdbi-drivers/distinfo b/databases/libdbi-drivers/distinfo
new file mode 100644
index 000000000000..1f8b23595a69
--- /dev/null
+++ b/databases/libdbi-drivers/distinfo
@@ -0,0 +1 @@
+MD5 (libdbi-drivers-0.7.0.tar.gz) = 4a523d28b53934cdd6bf1fadf0bfc6b9
diff --git a/databases/libdbi-drivers/files/patch-ltmain.sh b/databases/libdbi-drivers/files/patch-ltmain.sh
new file mode 100644
index 000000000000..5efb588c2fe1
--- /dev/null
+++ b/databases/libdbi-drivers/files/patch-ltmain.sh
@@ -0,0 +1,16 @@
+--- ltmain.sh.orig Thu Oct 30 11:32:24 2003
++++ ltmain.sh Thu Oct 30 11:32:37 2003
+@@ -3457,11 +3457,13 @@
+ fi
+
+ # Install the pseudo-library for information purposes.
++ if /usr/bin/false ; then
+ if test "$install_ltlibs" = yes; then
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ instname="$dir/$name"i
+ $show "$install_prog $instname $destdir/$name"
+ $run eval "$install_prog $instname $destdir/$name" || exit $?
++ fi
+ fi
+
+ # Maybe install the static library, too.
diff --git a/databases/libdbi-drivers/pkg-descr b/databases/libdbi-drivers/pkg-descr
new file mode 100644
index 000000000000..ec81a019053e
--- /dev/null
+++ b/databases/libdbi-drivers/pkg-descr
@@ -0,0 +1,4 @@
+The libdbi-drivers project maintains drivers for libdbi. Drivers are
+distributed seperately from the library itself.
+
+WWW: http://libdbi-drivers.sourceforge.net/
diff --git a/databases/libdbi-drivers/pkg-plist b/databases/libdbi-drivers/pkg-plist
new file mode 100644
index 000000000000..23f86ce003ee
--- /dev/null
+++ b/databases/libdbi-drivers/pkg-plist
@@ -0,0 +1,39 @@
+%%MYSQL%%lib/dbd/libmysql.so
+%%PGSQL%%lib/dbd/libpgsql.so
+%%SQLITE%%lib/dbd/libsqlite.so
+@unexec rmdir %D/lib/dbd 2>/dev/null || true
+%%MYSQL%%%%DOCSDIR%%/dbd_mysql.pdf
+%%MYSQL%%%%DOCSDIR%%/dbd_mysql/c128.html
+%%MYSQL%%%%DOCSDIR%%/dbd_mysql/c32.html
+%%MYSQL%%%%DOCSDIR%%/dbd_mysql/c36.html
+%%MYSQL%%%%DOCSDIR%%/dbd_mysql/c90.html
+%%MYSQL%%%%DOCSDIR%%/dbd_mysql/f21.html
+%%MYSQL%%%%DOCSDIR%%/dbd_mysql/index.html
+%%MYSQL%%%%DOCSDIR%%/dbd_mysql/x131.html
+%%MYSQL%%%%DOCSDIR%%/dbd_mysql/x39.html
+%%MYSQL%%%%DOCSDIR%%/dbd_mysql/x53.html
+%%PGSQL%%%%DOCSDIR%%/dbd_pgsql.pdf
+%%PGSQL%%%%DOCSDIR%%/dbd_pgsql/copying-fdl.html
+%%PGSQL%%%%DOCSDIR%%/dbd_pgsql/f27.html
+%%PGSQL%%%%DOCSDIR%%/dbd_pgsql/index.html
+%%PGSQL%%%%DOCSDIR%%/dbd_pgsql/install-build.html
+%%PGSQL%%%%DOCSDIR%%/dbd_pgsql/install-prereq.html
+%%PGSQL%%%%DOCSDIR%%/dbd_pgsql/install.html
+%%PGSQL%%%%DOCSDIR%%/dbd_pgsql/intro.html
+%%PGSQL%%%%DOCSDIR%%/dbd_pgsql/options.html
+%%PGSQL%%%%DOCSDIR%%/dbd_pgsql/specific.html
+%%SQLITE%%%%DOCSDIR%%/dbd_sqlite.pdf
+%%SQLITE%%%%DOCSDIR%%/dbd_sqlite/c119.html
+%%SQLITE%%%%DOCSDIR%%/dbd_sqlite/c32.html
+%%SQLITE%%%%DOCSDIR%%/dbd_sqlite/c43.html
+%%SQLITE%%%%DOCSDIR%%/dbd_sqlite/c98.html
+%%SQLITE%%%%DOCSDIR%%/dbd_sqlite/f21.html
+%%SQLITE%%%%DOCSDIR%%/dbd_sqlite/index.html
+%%SQLITE%%%%DOCSDIR%%/dbd_sqlite/x122.html
+%%SQLITE%%%%DOCSDIR%%/dbd_sqlite/x198.html
+%%SQLITE%%%%DOCSDIR%%/dbd_sqlite/x46.html
+%%SQLITE%%%%DOCSDIR%%/dbd_sqlite/x60.html
+%%MYSQL%%@dirrm %%DOCSDIR%%/dbd_mysql
+%%PGSQL%%@dirrm %%DOCSDIR%%/dbd_pgsql
+%%SQLITE%%@dirrm %%DOCSDIR%%/dbd_sqlite
+@unexec rmdir %D/%%DOCSDIR%% 2>/dev/null || true