aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorThomas Bonfort2014-04-03 12:48:07 +0200
committerAdam Vandenberg2014-04-07 21:21:54 -0700
commita8be167345ffc7e3d0c990bf8f830fe14ef7ae52 (patch)
tree0ee8b4d554568cb34528970f3c5195807d136fa1 /Library/Formula
parent29b88457870d46901acc7bba6523b475e3a92674 (diff)
downloadhomebrew-a8be167345ffc7e3d0c990bf8f830fe14ef7ae52.tar.bz2
postgis: optionally disable postgis raster support
Closes #28104. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-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'