summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/Makefile1
-rw-r--r--databases/libgda4-jdbc/Makefile22
-rw-r--r--databases/libgda4-jdbc/pkg-plist8
-rw-r--r--databases/libgda4/Makefile10
-rw-r--r--databases/libgda4/distinfo6
-rw-r--r--databases/libgda4/files/patch-providers_bdb_Makefile.in17
6 files changed, 42 insertions, 22 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 6fed067da5c5..0d37ce4ba661 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -126,6 +126,7 @@
SUBDIR += libgda3-reference
SUBDIR += libgda4
SUBDIR += libgda4-bdb
+ SUBDIR += libgda4-jdbc
SUBDIR += libgda4-mdb
SUBDIR += libgda4-mysql
SUBDIR += libgda4-postgresql
diff --git a/databases/libgda4-jdbc/Makefile b/databases/libgda4-jdbc/Makefile
new file mode 100644
index 000000000000..a4ac9b5658ad
--- /dev/null
+++ b/databases/libgda4-jdbc/Makefile
@@ -0,0 +1,22 @@
+# New ports collection makefile for: libgda4-java
+# Date created: 10 Mar 2009
+# Whom: Koop Mast <kwm@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTREVISION?= 0
+CATEGORIES= databases gnome
+PKGNAMESUFFIX?= -jdbc
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Provides Berkeley DB backend for the libgda4 library
+
+MASTERDIR= ${.CURDIR}/../libgda4
+BUILD_WRKSRC= ${WRKSRC}/providers/jdbc
+INSTALL_WRKSRC= ${BUILD_WRKSRC}
+PLIST= ${.CURDIR}/pkg-plist
+
+LIBGDA4_SLAVE= jdbc
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/libgda4-jdbc/pkg-plist b/databases/libgda4-jdbc/pkg-plist
new file mode 100644
index 000000000000..5022e14534b3
--- /dev/null
+++ b/databases/libgda4-jdbc/pkg-plist
@@ -0,0 +1,8 @@
+bin/gda-list-jdbc-providers-%%VERSION%%
+lib/libgda-%%VERSION%%/providers/gdaprovider-%%VERSION%%.jar
+lib/libgda-%%VERSION%%/providers/libgda-jdbc.a
+lib/libgda-%%VERSION%%/providers/libgda-jdbc.la
+lib/libgda-%%VERSION%%/providers/libgda-jdbc.so
+libdata/pkgconfig/libgda-jdbc-%%VERSION%%.pc
+share/libgda-%%VERSION%%/jdbc_specs_create_table.xml
+share/libgda-%%VERSION%%/jdbc_specs_dsn.xml
diff --git a/databases/libgda4/Makefile b/databases/libgda4/Makefile
index 0a7ef22ff26e..fca8c6fbfd9e 100644
--- a/databases/libgda4/Makefile
+++ b/databases/libgda4/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= libgda4
-PORTVERSION?= 3.99.12
+PORTVERSION?= 3.99.13
PORTREVISION?= 0
CATEGORIES= databases gnome
MASTER_SITES= GNOME
@@ -107,6 +107,12 @@ CONFIGURE_ARGS+= --with-odbc=${LOCALBASE}
CONFIGURE_ARGS+= --without-odbc
.endif
+.if ${LIBGDA4_SLAVE}=="jdbc"
+USE_JAVA= yes
+.else
+CONFIGURE_ARGS+= --without-java
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-ldl||g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|include/db.h|include/db${BDB_VER}/db.h|g' \
@@ -119,7 +125,7 @@ post-patch:
${WRKSRC}/providers/bdb/gda-bdb-test.c
.if ${LIBGDA4_SLAVE}!="no"
#. for d in msql firebird odbc freetds mdb ldap mysql sqlite postgres
-. for d in bdb mdb mysql sqlite postgres
+. for d in bdb jdbc mdb mysql sqlite postgres
@${REINPLACE_CMD} -e 's|$$(top_builddir)/libgda/libgda-4.0.la|${LOCALBASE}/lib/libgda-4.0.la|g' \
${WRKSRC}/providers/${d}/Makefile.in
. endfor
diff --git a/databases/libgda4/distinfo b/databases/libgda4/distinfo
index 3d74b000971d..61ba9ed20d85 100644
--- a/databases/libgda4/distinfo
+++ b/databases/libgda4/distinfo
@@ -1,3 +1,3 @@
-MD5 (gnome2/libgda-3.99.12.tar.bz2) = a3c7df764149d4f9c1222338173af38c
-SHA256 (gnome2/libgda-3.99.12.tar.bz2) = 24ad6427d92727990ad727dfa8fa77990898e5d4ea49e82da91a5122c1f2ca9c
-SIZE (gnome2/libgda-3.99.12.tar.bz2) = 8365810
+MD5 (gnome2/libgda-3.99.13.tar.bz2) = 79253cf1552bd60bdbee0aa4106005a7
+SHA256 (gnome2/libgda-3.99.13.tar.bz2) = ebcd683bb8330fc029349b343ef1657ffbf6e7550ecb8577c7d6757fce5d096c
+SIZE (gnome2/libgda-3.99.13.tar.bz2) = 8364141
diff --git a/databases/libgda4/files/patch-providers_bdb_Makefile.in b/databases/libgda4/files/patch-providers_bdb_Makefile.in
deleted file mode 100644
index b000a0a768cc..000000000000
--- a/databases/libgda4/files/patch-providers_bdb_Makefile.in
+++ /dev/null
@@ -1,17 +0,0 @@
---- providers/bdb/Makefile.in.orig 2009-02-28 15:46:42.000000000 -0500
-+++ providers/bdb/Makefile.in 2009-02-28 15:46:59.000000000 -0500
-@@ -407,11 +407,13 @@ libgda_bdb_la_SOURCES = \
- libgda_bdb_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED) $(LIBTOOL_PROV_EXPORT_OPTIONS)
- libgda_bdb_la_LIBADD = \
- $(top_builddir)/libgda/libgda-4.0.la \
-- $(LIBGDA_LIBS)
-+ $(LIBGDA_LIBS) \
-+ $(BDB_LIBS)
-
- gda_bdb_test_SOURCES = gda-bdb-test.c
- gda_bdb_test_LDADD = \
- $(LIBGDA_LIBS) \
-+ $(BDB_LIBS) \
- $(top_builddir)/libgda/libgda-4.0.la
-
- xmldir = $(datadir)/libgda-4.0