From b834cef22d2365ad1fed932998d7bcbcf81198de Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Mon, 7 May 2012 12:02:17 -0700 Subject: GDAL: Use Homebrew SQLite Required by SpatiaLite, so ensure GDAL links against the Homebrew version. --- Library/Formula/gdal.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/gdal.rb b/Library/Formula/gdal.rb index 088a3d8ec..21cec7320 100644 --- a/Library/Formula/gdal.rb +++ b/Library/Formula/gdal.rb @@ -38,6 +38,10 @@ class Gdal < Formula depends_on 'giflib' depends_on 'proj' depends_on 'geos' + # To ensure compatibility with SpatiaLite. Might be possible to do this + # conditially, but the additional complexity is just not worth saving an + # extra few seconds of build time. + depends_on 'sqlite' depends_on "postgresql" if postgres? depends_on "mysql" if mysql? @@ -99,13 +103,13 @@ class Gdal < Formula "--with-libz=/usr", "--with-png=/usr/X11", "--with-expat=/usr", - "--with-sqlite3=/usr", # Default Homebrew backends. "--with-jpeg=#{HOMEBREW_PREFIX}", "--with-jpeg12", "--with-gif=#{HOMEBREW_PREFIX}", "--with-curl=/usr/bin/curl-config", + "--with-sqlite3=#{HOMEBREW_PREFIX}", # GRASS backend explicitly disabled. Creates a chicken-and-egg problem. # Should be installed separately after GRASS installation using the -- cgit v1.2.3