Skip to content
Permalink
Browse files

port mdbtools: add unixodb and iodbc variants, fix https://trac.macpo…

…rts.org/ticket/41537, nomaintainer

call builtin autogen.sh script rather than just autoreconf
add patchfile for removing ld GNU-only option
remove useless option still present in current patchfiles

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@118199 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
anddam committed Mar 25, 2014
1 parent a09a5fe commit 225152263e57d6d644c71be5f957366720359005
@@ -28,8 +28,23 @@ checksums rmd160 3dfa263f73eb65e3e2899810c10fa55f0bd5d804 \
sha256 6d49c52ee578dc7209865873a5715ff2adc6cab214faae6b5c2b91ee058c5c6f

patchfiles patch-configure_in.diff \
patch-src_sql_makefile_am.diff \
patch-src_libmdb_makefile_am.diff
patch-src_libmdb_makefile_am.diff \
patch-src_odbc_makefile_am.diff \
patch-src_sql_makefile_am.diff

use_autoreconf yes
configure.args-append --mandir=${prefix}/share/man
autoreconf.cmd ./autogen.sh
autoreconf.args ${configure.args}


variant unixodbc conflicts iodbc description {build odbc driver against unixODBC} {
depends_lib-append port:unixodbc
configure.args-append --with-unixodbc=${prefix}
}

variant iodbc conflicts unixodbc description {build odbc driver against iODBC} {
depends_lib-append port:libiodbc
configure.args-append --with-iodbc=${prefix}
}

@@ -5,7 +5,7 @@
AC_SUBST(LFLAGS)

-LDFLAGS="$LDFLAGS -Wl,--as-needed"
+LDFLAGS="$LDFLAGS -Wl,"
+LDFLAGS="$LDFLAGS"

dnl check for iODBC

@@ -4,6 +4,6 @@
lib_LTLIBRARIES = libmdb.la
libmdb_la_SOURCES= catalog.c mem.c file.c table.c data.c dump.c backend.c money.c sargs.c index.c like.c write.c stats.c map.c props.c worktable.c options.c iconv.c
-libmdb_la_LDFLAGS = -version-info 2:0:0 -Wl,--version-script=$(srcdir)/libmdb.map
+libmdb_la_LDFLAGS = -version-info 2:0:0 -Wl
+libmdb_la_LDFLAGS = -version-info 2:0:0
AM_CPPFLAGS = -I$(top_srcdir)/include $(GLIB_CFLAGS)
LIBS = $(GLIB_LIBS) @LIBS@
@@ -0,0 +1,11 @@
--- src/odbc/Makefile.am.orig 2014-03-25 15:38:58.000000000 +0100
+++ src/odbc/Makefile.am 2014-03-25 15:39:14.000000000 +0100
@@ -12,7 +12,7 @@
AM_CPPFLAGS = -I$(top_srcdir)/include $(GLIB_CFLAGS) $(ODBC_CFLAGS)
libmdbodbc_la_SOURCES= odbc.c connectparams.c
libmdbodbc_la_LIBADD= ../libmdb/libmdb.la ../sql/libmdbsql.la
-libmdbodbc_la_LDFLAGS = -version-info 1:0:0 -Wl,--version-script=$(srcdir)/libmdbodbc.map
+libmdbodbc_la_LDFLAGS = -version-info 1:0:0
LIBS = @LEXLIB@ $(GLIB_LIBS) $(ODBC_LIBS)
unittest_LDADD = libmdbodbc.la ../libmdb/libmdb.la ../sql/libmdbsql.la

@@ -4,7 +4,7 @@
lib_LTLIBRARIES = libmdbsql.la
libmdbsql_la_SOURCES= mdbsql.c parser.y lexer.l
-libmdbsql_la_LDFLAGS = -version-info 2:0:0 -Wl,--version-script=$(srcdir)/libmdbsql.map
+libmdbsql_la_LDFLAGS = -version-info 2:0:0 -Wl
+libmdbsql_la_LDFLAGS = -version-info 2:0:0
DISTCLEANFILES = parser.c parser.h lexer.c
AM_CPPFLAGS = -I$(top_srcdir)/include $(GLIB_CFLAGS)
LIBS = $(GLIB_LIBS)

0 comments on commit 2251522

Please sign in to comment.
You can’t perform that action at this time.