37b3265cde
-O3/-O2 leads to corrupt rtree indexes on 10.6/10.7 with both gcc and llvm-gcc. This issue also affects SpatiaLite. Closes Homebrew/homebrew#8584. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
22 lines
697 B
Ruby
22 lines
697 B
Ruby
require 'formula'
|
|
|
|
class Libspatialite < Formula
|
|
url 'http://www.gaia-gis.it/spatialite-2.4.0-5/libspatialite-amalgamation-2.4.0.tar.gz'
|
|
version '2.4.0-rc5'
|
|
homepage 'http://www.gaia-gis.it/spatialite/'
|
|
md5 '33f8db72f4b6d863a2e0f4b2bed31a74'
|
|
|
|
depends_on 'proj'
|
|
depends_on 'geos'
|
|
|
|
def install
|
|
# O2 and O3 leads to corrupt/invalid rtree indexes
|
|
# http://groups.google.com/group/spatialite-users/browse_thread/thread/8e1cfa79f2d02a00#
|
|
ENV.Os
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--target=macosx"
|
|
system "make install"
|
|
end
|
|
end
|