From a8be167345ffc7e3d0c990bf8f830fe14ef7ae52 Mon Sep 17 00:00:00 2001 From: Thomas Bonfort Date: Thu, 3 Apr 2014 12:48:07 +0200 Subject: postgis: optionally disable postgis raster support Closes #28104. Signed-off-by: Adam Vandenberg --- Library/Formula/postgis.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Library/Formula') 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' -- cgit v1.2.3