aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDane Springmeyer2010-06-01 16:24:57 -0700
committerAdam Vandenberg2010-06-01 18:27:43 -0700
commit3e50872ae5a204608001c0a503e1ec8b45d11700 (patch)
treec48aaf734ff1a8a1f8114e13f762f003474394f6 /Library
parentc846cb80afc4a99855196928b152edd93743d8da (diff)
downloadhomebrew-3e50872ae5a204608001c0a503e1ec8b45d11700.tar.bz2
osm2pgsql now requires autogen & OS X patch
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/osm2pgsql.rb23
1 files changed, 22 insertions, 1 deletions
diff --git a/Library/Formula/osm2pgsql.rb b/Library/Formula/osm2pgsql.rb
index 80609df4d..bdbad1fd0 100644
--- a/Library/Formula/osm2pgsql.rb
+++ b/Library/Formula/osm2pgsql.rb
@@ -1,12 +1,33 @@
require 'formula'
-require 'date'
class Osm2pgsql <Formula
head 'http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/', :using => :svn
homepage 'http://wiki.openstreetmap.org/wiki/Osm2pgsql'
+ def patches
+ { :p0 => DATA }
+ end
+
def install
+ system "./autogen.sh"
+ system "./configure"
system "make"
bin.install "osm2pgsql"
end
end
+
+# simple patch needed on osx to find the malloc include
+__END__
+Index: middle-pgsql.c
+===================================================================
+--- middle-pgsql.c (revision 21558)
++++ middle-pgsql.c (working copy)
+@@ -11,7 +11,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <assert.h>
+-#include <malloc.h>
++#include <malloc/malloc.h>
+
+ #ifdef HAVE_PTHREAD
+ #include <pthread.h>