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'
|
2013-06-08 01:58:42 +00:00
|
|
|
url 'http://www.gaia-gis.it/gaia-sins/librasterlite-sources/librasterlite-1.1g.tar.gz'
|
|
|
|
sha1 '87f0abab90600db64a7d468343163e760769f0c7'
|
2014-03-23 02:51:41 +00:00
|
|
|
revision 1
|
2010-05-08 05:12:20 +00:00
|
|
|
|
2014-07-03 21:00:25 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-07-28 09:01:02 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "7dcd4ea33188c1f480ccd79ea3b219d0e6f15d88" => :mavericks
|
|
|
|
sha1 "b88fb8974a1040cb92ccb3ba625c9ca32d831d72" => :mountain_lion
|
|
|
|
sha1 "fb8da1e10de9cde87295c2cac6d7de4732c77f20" => :lion
|
2014-07-03 21:00:25 +00:00
|
|
|
end
|
|
|
|
|
2012-12-21 20:30:24 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-03-23 02:51:41 +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
|
2014-02-27 03:03:55 +00:00
|
|
|
sqlite = Formula["sqlite"]
|
2014-03-06 05:28:31 +00:00
|
|
|
ENV.append 'LDFLAGS', "-L#{sqlite.opt_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
|