homebrew-core/Formula/geos.rb
Keenan Brock ba9fbabedb geos: support --universal
Closes Homebrew/homebrew#15254.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-03 08:37:24 -07:00

21 lines
681 B
Ruby

require 'formula'
class Geos < Formula
homepage 'http://trac.osgeo.org/geos'
url 'http://download.osgeo.org/geos/geos-3.3.5.tar.bz2'
sha1 '791e2b36a9a6114c7f213fae3fc995960c35a428'
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