diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gdal.rb | 6 | ||||
| -rw-r--r-- | Library/Formula/librasterlite.rb | 3 | ||||
| -rw-r--r-- | Library/Formula/libspatialite.rb | 3 | ||||
| -rw-r--r-- | Library/Formula/spatialite-tools.rb | 3 |
4 files changed, 10 insertions, 5 deletions
diff --git a/Library/Formula/gdal.rb b/Library/Formula/gdal.rb index dce213eea..1f0362b52 100644 --- a/Library/Formula/gdal.rb +++ b/Library/Formula/gdal.rb @@ -210,10 +210,12 @@ class Gdal < Formula def install # Linking flags for SQLite are not added at a critical moment when the GDAL # library is being assembled. This causes the build to fail due to missing - # symbols. + # symbols. Also, ensure Homebrew SQLite is used so that Spatialite is + # functional. # # Fortunately, this can be remedied using LDFLAGS. - ENV.append 'LDFLAGS', '-lsqlite3' + sqlite = Formula.factory 'sqlite' + ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib -lsqlite3" # Needed by libdap. ENV.append 'CPPFLAGS', '-I/usr/include/libxml2' if complete? diff --git a/Library/Formula/librasterlite.rb b/Library/Formula/librasterlite.rb index 7ba176b78..314c29893 100644 --- a/Library/Formula/librasterlite.rb +++ b/Library/Formula/librasterlite.rb @@ -12,7 +12,8 @@ class Librasterlite < Formula def install # Ensure Homebrew SQLite libraries are found before the system SQLite - ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib" + sqlite = Formula.factory 'sqlite' + ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib" system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" diff --git a/Library/Formula/libspatialite.rb b/Library/Formula/libspatialite.rb index 9ee46b6b7..2b31bc2bc 100644 --- a/Library/Formula/libspatialite.rb +++ b/Library/Formula/libspatialite.rb @@ -25,7 +25,8 @@ class Libspatialite < Formula def install # Ensure Homebrew's libsqlite is found before the system version. - ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib" + sqlite = Formula.factory 'sqlite' + ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib" args = %W[ --disable-dependency-tracking diff --git a/Library/Formula/spatialite-tools.rb b/Library/Formula/spatialite-tools.rb index db84228f7..960b57f08 100644 --- a/Library/Formula/spatialite-tools.rb +++ b/Library/Formula/spatialite-tools.rb @@ -19,7 +19,8 @@ class SpatialiteTools < Formula # See: https://github.com/mxcl/homebrew/issues/3328 ENV.append 'LDFLAGS', '-liconv' # Ensure Homebrew SQLite is found before system SQLite. - ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib" + sqlite = Formula.factory 'sqlite' + ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib" system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" |
