Allow the Berkeley database provider to build.
This commit is contained in:
parent
e24ee64862
commit
f5e43bff82
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229255
2 changed files with 23 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
PORTNAME= libgda4
|
||||
PORTVERSION?= 3.99.12
|
||||
PORTREVISION?= 1
|
||||
PORTREVISION?= 0
|
||||
CATEGORIES= databases gnome
|
||||
MASTER_SITES= GNOME
|
||||
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/4$//}/${PORTVERSION:R}
|
||||
|
@ -109,10 +109,14 @@ CONFIGURE_ARGS+= --without-odbc
|
|||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-ldl||g' ${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|include/db.h|${BDB_VER}/include/db.h|g' \
|
||||
@${REINPLACE_CMD} -e 's|include/db.h|include/db${BDB_VER}/db.h|g' \
|
||||
-e 's|ldb47|ldb${BDB_VER}|g' \
|
||||
-e 's|ldb|ldb${BDB_VER}|g' \
|
||||
-e 's|libdb|libdb${BDB_VER}|g' \
|
||||
${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|<db\.h>|<db${BDB_VER}/db.h>|' \
|
||||
${WRKSRC}/providers/bdb/gda-bdb-provider.c \
|
||||
${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
|
||||
|
|
17
databases/libgda4/files/patch-providers_bdb_Makefile.in
Normal file
17
databases/libgda4/files/patch-providers_bdb_Makefile.in
Normal file
|
@ -0,0 +1,17 @@
|
|||
--- 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
|
Loading…
Reference in a new issue