2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-02 18:02:51 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Geos < Formula
|
2011-10-27 19:55:03 +00:00
|
|
|
url 'http://download.osgeo.org/geos/geos-3.3.1.tar.bz2'
|
2009-10-02 18:02:51 +00:00
|
|
|
homepage 'http://trac.osgeo.org/geos/'
|
2011-10-27 19:55:03 +00:00
|
|
|
sha1 '4f89e62c636dbf3e5d7e1bfcd6d9a7bff1bcfa60'
|
2010-04-01 22:46:11 +00:00
|
|
|
|
2009-10-02 18:02:51 +00:00
|
|
|
def install
|
2011-11-29 01:24:58 +00:00
|
|
|
# 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}"
|
2009-10-02 18:02:51 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|