homebrew-core/Formula/spatialite-tools.rb
Joachim LeBlanc 51502a2086 libspatialite 4.1.0 libgaiagraphics, librasterlite
* Gdal: Use includes from brewed sqlite
* spatialite-tools 4.1.0
* librasterlite 1.1g
* libgaiagraphics 0.5
* Update to use new style `build.with?`

Closes Homebrew/homebrew#20341.

Signed-off-by: Samuel John <github@SamuelJohn.de>
2013-06-08 15:26:43 +02:00

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.0.tar.gz'
sha1 '8c5edbed7e3326a679b336532e0add313b2af8b5'
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