1269b9e871
Closes Homebrew/homebrew#21110. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
25 lines
815 B
Ruby
25 lines
815 B
Ruby
require 'formula'
|
|
|
|
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'
|
|
depends_on 'readosm'
|
|
|
|
def install
|
|
# See: https://github.com/mxcl/homebrew/issues/3328
|
|
ENV.append 'LDFLAGS', '-liconv'
|
|
# Ensure Homebrew SQLite is found before system SQLite.
|
|
sqlite = Formula.factory 'sqlite'
|
|
ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib"
|
|
ENV.append 'CFLAGS', "-I#{sqlite.opt_prefix}/include"
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
end
|