aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libspatialite.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/libspatialite.rb')
-rw-r--r--Library/Formula/libspatialite.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/Library/Formula/libspatialite.rb b/Library/Formula/libspatialite.rb
index fd3186549..141ba453e 100644
--- a/Library/Formula/libspatialite.rb
+++ b/Library/Formula/libspatialite.rb
@@ -2,19 +2,21 @@ require 'formula'
class Libspatialite < Formula
homepage 'https://www.gaia-gis.it/fossil/libspatialite/index'
- url 'http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.1.0.tar.gz'
- sha1 '33b45f3d00f6ba633c6e4d95387336e132a1d2e3'
+ url 'http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.1.1.tar.gz'
+ sha1 'b8ed50fb66c4a898867cdf9d724d524c5e27e8aa'
option 'without-freexl', 'Build without support for reading Excel files'
+ option 'without-libxml2', 'Disable support for xml parsing (parsing needed by spatialite-gui)'
option 'with-postgis', 'Enable additional sanitization/segmentation routines provided by PostGIS 2.0+'
+ depends_on 'pkg-config' => :build
depends_on 'proj'
depends_on 'geos'
# Needs SQLite > 3.7.3 which rules out system SQLite on Snow Leopard and
# below. Also needs dynamic extension support which rules out system SQLite
# on Lion. Finally, RTree index support is required as well.
depends_on 'sqlite'
-
+ depends_on 'libxml2' => :recommended
depends_on 'freexl' => :recommended
depends_on 'postgis' => :optional
@@ -30,7 +32,8 @@ class Libspatialite < Formula
--with-sysroot=#{HOMEBREW_PREFIX}
]
args << '--enable-freexl=no' if build.without? 'freexl'
- args << '--enable-lwgeom' if build.with? 'lwgeom'
+ args << '--enable-libxml2=yes' unless build.without? 'libxml2'
+ args << '--enable-lwgeom' if build.with? 'postgis'
system './configure', *args
system "make install"