aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/spatialite-tools.rb
blob: f933cba795693ab9c3c732242daf4f14d0a517fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class SpatialiteTools < Formula
  url 'http://www.gaia-gis.it/spatialite-2.4.0-5/spatialite-tools-2.4.0.tar.gz'
  version '2.4.0-rc5'
  homepage 'http://www.gaia-gis.it/spatialite/'
  md5 '7a6b175661b27a5cb9da95209ed53f56'

  depends_on 'pkg-config' => :build
  depends_on 'libspatialite'

  def install
    ENV.append 'LDFLAGS', '-liconv' # Fixes 3328 should be removed with next version
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--target=macosx"
    system "make install"
  end
end