diff options
| author | Charlie Sharpsteen | 2012-09-26 10:59:21 -0500 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-09-26 11:02:17 -0500 |
| commit | 503f47f28d0ea11f2d2e011b88c0d24672e9fcf0 (patch) | |
| tree | bf16d62a9d78cce2070b25bd9195af5f0f070984 /Library/Formula | |
| parent | b350c24ad10b714ae453073fb5d1445682e68bd9 (diff) | |
| download | homebrew-503f47f28d0ea11f2d2e011b88c0d24672e9fcf0.tar.bz2 | |
gdal: Depend on SpatiaLite by default
Depending on SpatiaLite adds minimal build time and is required by some GIS
applications such as QGIS.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gdal.rb | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/Library/Formula/gdal.rb b/Library/Formula/gdal.rb index 49f0b7e3c..ec3ea23d5 100644 --- a/Library/Formula/gdal.rb +++ b/Library/Formula/gdal.rb @@ -45,10 +45,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 'sqlite' # To ensure compatibility with SpatiaLite. + depends_on 'freexl' + depends_on 'libspatialite' depends_on "postgresql" if postgres? depends_on "mysql" if mysql? @@ -70,9 +70,7 @@ class Gdal < Formula # Vector libraries depends_on "unixodbc" # OS X version is not complete enough - depends_on "libspatialite" depends_on "xerces-c" - depends_on "freexl" # Other libraries depends_on "xz" # get liblzma compression algorithm library from XZutils @@ -112,13 +110,15 @@ class Gdal < Formula "--with-libz=/usr", "--with-png=#{MacOS::X11.prefix}", "--with-expat=/usr", + "--with-curl=/usr/bin/curl-config", # Default Homebrew backends. "--with-jpeg=#{HOMEBREW_PREFIX}", "--with-jpeg12", "--with-gif=#{HOMEBREW_PREFIX}", - "--with-curl=/usr/bin/curl-config", "--with-sqlite3=#{HOMEBREW_PREFIX}", + "--with-freexl=#{HOMEBREW_PREFIX}", + "--with-spatialite=#{HOMEBREW_PREFIX}", # GRASS backend explicitly disabled. Creates a chicken-and-egg problem. # Should be installed separately after GRASS installation using the @@ -141,9 +141,7 @@ class Gdal < Formula "--with-cfitsio=#{HOMEBREW_PREFIX}", "--with-epsilon=#{HOMEBREW_PREFIX}", "--with-odbc=#{HOMEBREW_PREFIX}", - "--with-spatialite=#{HOMEBREW_PREFIX}", "--with-xerces=#{HOMEBREW_PREFIX}", - "--with-freexl=#{HOMEBREW_PREFIX}", "--with-dods-root=#{HOMEBREW_PREFIX}" ] else @@ -157,10 +155,8 @@ class Gdal < Formula "--without-jasper", "--without-xerces", "--without-epsilon", - "--without-spatialite", "--without-libkml", "--without-podofo", - "--with-freexl=no", "--with-dods-root=no", # The following libraries are either proprietary or available under |
