aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2007-02-20 12:01:26 +0800
committerclsung <clsung@FreeBSD.org>2007-02-20 12:01:26 +0800
commit1ab4964b509b7b203359e9d664400b1eeac20a2b (patch)
tree5f8b9b017b3424a9308b3a1e9308c409ecd56ccf /databases
parent105b2988cb76462dacb18c4710659f5fc197ad60 (diff)
downloadfreebsd-ports-gnome-1ab4964b509b7b203359e9d664400b1eeac20a2b.tar.gz
freebsd-ports-gnome-1ab4964b509b7b203359e9d664400b1eeac20a2b.tar.zst
freebsd-ports-gnome-1ab4964b509b7b203359e9d664400b1eeac20a2b.zip
- Update to version 1.2.1 (bumps library version from .1 to .2)
- Since this new version supports MSSQL through the freetds library add that to the Makefile - Fix installation of opendbx.pc file - Fix building SQLite 2 and SQLite 3 backends when both were selected - Make Gettext support optional (instead of disabled by default) PR: ports/109276 Submitted by: maintainer (Ralf van der Enden)
Diffstat (limited to 'databases')
-rw-r--r--databases/opendbx/Makefile34
-rw-r--r--databases/opendbx/distinfo6
-rw-r--r--databases/opendbx/files/patch-Makefile.in11
-rw-r--r--databases/opendbx/pkg-plist15
4 files changed, 49 insertions, 17 deletions
diff --git a/databases/opendbx/Makefile b/databases/opendbx/Makefile
index f9e8236be867..63351ae27cb3 100644
--- a/databases/opendbx/Makefile
+++ b/databases/opendbx/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= opendbx
-PORTVERSION= 1.0.3
+PORTVERSION= 1.2.1
CATEGORIES= databases
MASTER_SITES= http://www.linuxnetworks.de/opendbx/download/
DISTNAME= ${PORTNAME}-${PORTVERSION}
@@ -17,10 +17,10 @@ COMMENT= A C library for accessing databases with a single API
USE_GMAKE= YES
USE_AUTOTOOLS= libtool:15
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
+CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS+= ${PTHREAD_LIBS} -L../lib -L${LOCALBASE}/lib
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ARGS+= --with-backends="${CONFIGURE_MODULES}" --disable-nls
+CONFIGURE_ARGS+= --with-backends="${CONFIGURE_MODULES}"
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
USE_LDCONFIG= ${PREFIX}/lib/opendbx
@@ -28,7 +28,9 @@ USE_LDCONFIG= ${PREFIX}/lib/opendbx
OPTIONS= MYSQL "Support for the MySQL database" on \
PGSQL "Support for the PostgreSQL database" off \
SQLITE "Support for the SQLite 2 database" off \
- SQLITE3 "Support for the SQLite 3 database" off
+ SQLITE3 "Support for the SQLite 3 database" off \
+ MSSQL "Support for the MSSQL database" off \
+ GETTEXT "Support for the gettext library" off
.include <bsd.port.pre.mk>
@@ -39,8 +41,8 @@ IGNORE= doesn't build on FreeBSD < 5.x
# ${REINPLACE_CMD} 's/stdint.h/inttypes.h/' ${WRKSRC}/lib/odbx.h
.endif
-.if !defined(WITH_MYSQL) && !defined(WITH_PGSQL) && !defined(WITH_SQLITE) && !defined(WITH_SQLITE3)
-IGNORE= you need to select at least one database
+.if !defined(WITH_MYSQL) && !defined(WITH_PGSQL) && !defined(WITH_SQLITE) && !defined(WITH_SQLITE3) && !defined(WITH_MSSQL)
+IGNORE= needs at least one database backend
.endif
.if defined(WITH_MYSQL)
@@ -62,7 +64,7 @@ PLIST_SUB+= WITHPGSQL="@comment "
.endif
.if defined(WITH_SQLITE)
-USE_SQLITE?= 2
+LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite2
CONFIGURE_MODULES+= "sqlite"
PLIST_SUB+= WITHSQLITE=""
.else
@@ -70,11 +72,25 @@ PLIST_SUB+= WITHSQLITE="@comment "
.endif
.if defined(WITH_SQLITE3)
-USE_SQLITE?= 3
+LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3
CONFIGURE_MODULES+= "sqlite3"
PLIST_SUB+= WITHSQLITE3=""
.else
PLIST_SUB+= WITHSQLITE3="@comment "
.endif
+.if defined(WITH_MSSQL)
+LIB_DEPENDS+= sybdb.5:${PORTSDIR}/databases/freetds
+CONFIGURE_MODULES+= "mssql"
+PLIST_SUB+= WITHMSSQL=""
+.else
+PLIST_SUB+= WITHMSSQL="@comment "
+.endif
+
+.if defined(WITH_GETTEXT)
+USE_GETTEXT= YES
+.else
+CONFIGURE_ARGS+= --disable-nls
+.endif
+
.include <bsd.port.post.mk>
diff --git a/databases/opendbx/distinfo b/databases/opendbx/distinfo
index 642d25f7dff5..a9fb52a52f40 100644
--- a/databases/opendbx/distinfo
+++ b/databases/opendbx/distinfo
@@ -1,3 +1,3 @@
-MD5 (opendbx-1.0.3.tar.gz) = 13bed4226f49139cd31ab1d924182879
-SHA256 (opendbx-1.0.3.tar.gz) = 7c102f24c30518f5cadce4a83acfb1971f946836069f7e396a58de4080820a21
-SIZE (opendbx-1.0.3.tar.gz) = 409985
+MD5 (opendbx-1.2.1.tar.gz) = 0c455109d6a4a6d758d99ca1d55adb51
+SHA256 (opendbx-1.2.1.tar.gz) = a9ff56ce3291e46c7cc66334e4b2fabdb341a86d52a02038818d833749befbfe
+SIZE (opendbx-1.2.1.tar.gz) = 461015
diff --git a/databases/opendbx/files/patch-Makefile.in b/databases/opendbx/files/patch-Makefile.in
new file mode 100644
index 000000000000..89630d318b21
--- /dev/null
+++ b/databases/opendbx/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.org Mon Feb 12 09:51:32 2007
++++ Makefile.in Mon Feb 12 09:58:27 2007
+@@ -230,7 +230,7 @@
+ opendbx.spec \
+ ABOUT-NLS
+
+-pkgconfigdir = $(libdir)/pkgconfig
++pkgconfigdir = $(exec_prefix)/libdata/pkgconfig
+ pkgconfig_DATA = opendbx.pc
+ all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
diff --git a/databases/opendbx/pkg-plist b/databases/opendbx/pkg-plist
index 70ba053b025c..88499040aa4b 100644
--- a/databases/opendbx/pkg-plist
+++ b/databases/opendbx/pkg-plist
@@ -2,21 +2,26 @@ include/odbx.h
lib/libopendbx.a
lib/libopendbx.la
lib/libopendbx.so
-lib/libopendbx.so.1
+lib/libopendbx.so.2
+libdata/pkgconfig/opendbx.pc
%%WITHPGSQL%%lib/opendbx/libpgsqlbackend.a
%%WITHPGSQL%%lib/opendbx/libpgsqlbackend.la
%%WITHPGSQL%%lib/opendbx/libpgsqlbackend.so
-%%WITHPGSQL%%lib/opendbx/libpgsqlbackend.so.1
+%%WITHPGSQL%%lib/opendbx/libpgsqlbackend.so.2
%%WITHMYSQL%%lib/opendbx/libmysqlbackend.a
%%WITHMYSQL%%lib/opendbx/libmysqlbackend.la
%%WITHMYSQL%%lib/opendbx/libmysqlbackend.so
-%%WITHMYSQL%%lib/opendbx/libmysqlbackend.so.1
+%%WITHMYSQL%%lib/opendbx/libmysqlbackend.so.2
%%WITHSQLITE%%lib/opendbx/libsqlitebackend.a
%%WITHSQLITE%%lib/opendbx/libsqlitebackend.la
%%WITHSQLITE%%lib/opendbx/libsqlitebackend.so
-%%WITHSQLITE%%lib/opendbx/libsqlitebackend.so.1
+%%WITHSQLITE%%lib/opendbx/libsqlitebackend.so.2
%%WITHSQLITE3%%lib/opendbx/libsqlite3backend.a
%%WITHSQLITE3%%lib/opendbx/libsqlite3backend.la
%%WITHSQLITE3%%lib/opendbx/libsqlite3backend.so
-%%WITHSQLITE3%%lib/opendbx/libsqlite3backend.so.1
+%%WITHSQLITE3%%lib/opendbx/libsqlite3backend.so.2
+%%WITHMSSQL%%lib/opendbx/libmssqlbackend.a
+%%WITHMSSQL%%lib/opendbx/libmssqlbackend.la
+%%WITHMSSQL%%lib/opendbx/libmssqlbackend.so
+%%WITHMSSQL%%lib/opendbx/libmssqlbackend.so.2
@dirrm lib/opendbx