homebrew-core/Formula/spatialite-tools.rb

25 lines
797 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class SpatialiteTools < Formula
homepage 'https://www.gaia-gis.it/fossil/spatialite-tools/index'
url 'http://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/spatialite-tools-4.1.1.tar.gz'
sha1 '0af3de926b8086287ef31ebba5d8327ee18d14bd'
depends_on 'pkg-config' => :build
depends_on 'libspatialite'
2012-05-07 18:01:27 +00:00
depends_on 'readosm'
def install
# See: https://github.com/Homebrew/homebrew/issues/3328
ENV.append 'LDFLAGS', '-liconv'
# Ensure Homebrew SQLite is found before system SQLite.
2014-02-27 04:33:23 +00:00
sqlite = Formula["sqlite"]
2014-03-06 05:28:31 +00:00
ENV.append 'LDFLAGS', "-L#{sqlite.opt_lib}"
ENV.append 'CFLAGS', "-I#{sqlite.opt_include}"
system "./configure", "--disable-dependency-tracking",
2012-05-07 18:01:27 +00:00
"--prefix=#{prefix}"
system "make install"
end
end