homebrew-core/Formula/osm2pgsql.rb
Dane Springmeyer a2eb323c80 osm2pgsql now requires autogen & OS X patch
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-01 18:27:43 -07:00

33 lines
756 B
Ruby

require 'formula'
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>