aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/postgis.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/postgis.rb b/Library/Formula/postgis.rb
index 694d220a6..6e78e6409 100644
--- a/Library/Formula/postgis.rb
+++ b/Library/Formula/postgis.rb
@@ -8,6 +8,7 @@ class Postgis < Formula
head 'http://svn.osgeo.org/postgis/trunk/'
option 'with-gui', 'Build shp2pgsql-gui in addition to command line tools'
+ option 'without-gdal', 'Disable postgis raster support'
depends_on :autoconf
depends_on :automake
@@ -22,7 +23,7 @@ class Postgis < Formula
# For GeoJSON and raster handling
depends_on 'json-c'
- depends_on 'gdal'
+ depends_on 'gdal' => :recommended
def install
# Follow the PostgreSQL linked keg back to the active Postgres installation
@@ -49,6 +50,8 @@ class Postgis < Formula
]
args << '--with-gui' if build.with? "gui"
+ args << '--without-raster' if build.without? "gdal"
+
system './autogen.sh'
system './configure', *args
system 'make'