diff options
author | clsung <clsung@FreeBSD.org> | 2007-02-20 12:01:26 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2007-02-20 12:01:26 +0800 |
commit | 1ab4964b509b7b203359e9d664400b1eeac20a2b (patch) | |
tree | 5f8b9b017b3424a9308b3a1e9308c409ecd56ccf /databases/opendbx/Makefile | |
parent | 105b2988cb76462dacb18c4710659f5fc197ad60 (diff) | |
download | freebsd-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/opendbx/Makefile')
-rw-r--r-- | databases/opendbx/Makefile | 34 |
1 files changed, 25 insertions, 9 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> |