postgis: optionally disable postgis raster support
Closes Homebrew/homebrew#28104. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
16e774d9f9
commit
a15d9b42cf
1 changed files with 4 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue