homebrew-core/Formula/librasterlite.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

21 lines
689 B
Ruby

require 'formula'
class Librasterlite < Formula
homepage 'https://www.gaia-gis.it/fossil/librasterlite/index'
url 'http://www.gaia-gis.it/gaia-sins/librasterlite-sources/librasterlite-1.1g.tar.gz'
sha1 '87f0abab90600db64a7d468343163e760769f0c7'
depends_on "pkg-config" => :build
depends_on :libpng
depends_on "libgeotiff"
depends_on "libspatialite"
def install
# Ensure Homebrew SQLite libraries are found before the system SQLite
sqlite = Formula.factory 'sqlite'
ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end