homebrew-core/Formula/geos.rb

22 lines
681 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Geos < Formula
2012-06-25 21:34:10 +00:00
homepage 'http://trac.osgeo.org/geos'
url 'http://download.osgeo.org/geos/geos-3.3.6.tar.bz2'
sha1 '454c9b61f158de509db60a69512414a0a1b0743b'
option :universal
def install
ENV.universal_binary if build.universal?
# 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