homebrew-core/Formula/geos.rb

19 lines
616 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Geos < Formula
2012-04-07 01:38:44 +00:00
url 'http://download.osgeo.org/geos/geos-3.3.3.tar.bz2'
homepage 'http://trac.osgeo.org/geos/'
2012-04-07 01:38:44 +00:00
sha1 '2ecd23c38d74e5f04757dc528ec30858006fb6a7'
def install
# fixes compile error: missing symbols being optimized out using llvm.
if ENV.compiler == :llvm then
inreplace 'src/geom/Makefile.in', 'CFLAGS = @CFLAGS@', 'CFLAGS = @CFLAGS@ -O1'
inreplace 'src/geom/Makefile.in', 'CXXFLAGS = @CXXFLAGS@', 'CXXFLAGS = @CXXFLAGS@ -O1'
end
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
end