2010-06-22 16:36:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mdbtools < Formula
|
2012-06-27 16:29:39 +00:00
|
|
|
homepage 'https://github.com/brianb/mdbtools/'
|
2012-06-28 22:07:58 +00:00
|
|
|
url "https://github.com/brianb/mdbtools/tarball/0.7"
|
|
|
|
sha1 '62fe0703fd8691e4536e1012317406bdb72594cf'
|
2010-06-22 16:36:10 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-06-22 16:36:10 +00:00
|
|
|
depends_on 'glib'
|
2012-06-28 22:07:58 +00:00
|
|
|
depends_on 'readline'
|
2010-06-22 16:36:10 +00:00
|
|
|
|
2012-02-27 03:44:55 +00:00
|
|
|
if MacOS.xcode_version >= "4.3"
|
2012-02-28 15:39:22 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2012-02-27 03:44:55 +00:00
|
|
|
end
|
|
|
|
|
2012-06-28 22:07:58 +00:00
|
|
|
# remove unknown linker flags
|
2012-06-27 16:29:39 +00:00
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
2012-02-29 05:24:56 +00:00
|
|
|
|
2012-06-27 16:29:39 +00:00
|
|
|
def install
|
2012-06-27 16:31:00 +00:00
|
|
|
system "NOCONFIGURE='yes' ./autogen.sh"
|
2012-06-28 22:07:58 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2010-06-22 16:36:10 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-06-27 16:29:39 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/configure.in b/configure.in
|
|
|
|
index 797ad72..bec756d 100644
|
|
|
|
--- a/configure.in
|
|
|
|
+++ b/configure.in
|
|
|
|
@@ -61,7 +61,7 @@ AM_CONDITIONAL(SQL, test x$sql = xtrue)
|
|
|
|
AC_SUBST(SQL)
|
|
|
|
AC_SUBST(LFLAGS)
|
|
|
|
|
|
|
|
-LDFLAGS="$LDFLAGS -Wl,--as-needed"
|
|
|
|
+LDFLAGS="$LDFLAGS -Wl,"
|
|
|
|
|
|
|
|
dnl check for iODBC
|
|
|
|
|
|
|
|
diff --git a/src/libmdb/Makefile.am b/src/libmdb/Makefile.am
|
|
|
|
index 58ef696..008cd41 100644
|
|
|
|
--- a/src/libmdb/Makefile.am
|
|
|
|
+++ b/src/libmdb/Makefile.am
|
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
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
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include $(GLIB_CFLAGS)
|
|
|
|
LIBS = $(GLIB_LIBS) @LIBS@
|
|
|
|
diff --git a/src/sql/Makefile.am b/src/sql/Makefile.am
|
|
|
|
index e79522f..a14a6c6 100644
|
|
|
|
--- a/src/sql/Makefile.am
|
|
|
|
+++ b/src/sql/Makefile.am
|
|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
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
|
|
|
|
DISTCLEANFILES = parser.c parser.h lexer.c
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include $(GLIB_CFLAGS)
|
|
|
|
LIBS = $(GLIB_LIBS)
|