2010-05-08 05:12:20 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Librasterlite < Formula
|
2012-01-08 22:11:19 +00:00
|
|
|
homepage 'https://www.gaia-gis.it/fossil/librasterlite/index'
|
2012-12-05 03:31:56 +00:00
|
|
|
url 'http://www.gaia-gis.it/gaia-sins/librasterlite-sources/librasterlite-1.1e.tar.gz'
|
|
|
|
sha1 'ac6d15e20aa02553b6a37cf36ebbea4b0c45a881'
|
2010-05-08 05:12:20 +00:00
|
|
|
|
2012-09-05 04:04:01 +00:00
|
|
|
depends_on "pkg-config" => :build unless MacOS.version >= :mountain_lion
|
2012-09-02 08:04:22 +00:00
|
|
|
depends_on :libpng
|
2010-05-08 05:12:20 +00:00
|
|
|
depends_on "libgeotiff"
|
|
|
|
depends_on "libspatialite"
|
|
|
|
|
|
|
|
def install
|
2012-05-07 18:05:53 +00:00
|
|
|
# Ensure Homebrew SQLite libraries are found before the system SQLite
|
2012-11-11 20:30:45 +00:00
|
|
|
sqlite = Formula.factory 'sqlite'
|
|
|
|
ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib"
|
2012-01-08 22:11:19 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2010-05-08 05:12:20 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|