Commit Graph
51 Commits
Author SHA1 Message Date
Jack Nagel a5d6c5c5e1 gdal: use ENV.libxml2 2013-06-13 19:29:28 -05:00
Joachim LeBlanc 53edd22e15 libspatialite 4.1.0 libgaiagraphics, librasterlite
* Gdal: Use includes from brewed sqlite
* spatialite-tools 4.1.0
* librasterlite 1.1g
* libgaiagraphics 0.5
* Update to use new style `build.with?`

Closes #20341.

Signed-off-by: Samuel John <github@SamuelJohn.de>
2013-06-08 15:26:43 +02:00
Samuel John 0b50110107 Python 2.x and 3.x support
New `depends_on :python` Dependency.
New `depends_on :python3` Dependency.

To avoid having multiple formulae with endings -py2 and -py3,
we will handle support for different pythons (2.x vs. 3.x)
in the same formula.
Further brewed vs. external python will be transparently supported.

The formula also gets a new object `python`, which is false if
no Python is available or the user has disabled it. Otherwise
it is defined and provides several support methods:

python.site_packages # the site-packages in the formula's Cellar
python.global_site_packages
python.binary # the full path to the python binary
python.prefix
python.version
python.version.major
python.version.minor
python.xy # => e.g. "python2.7"
python.incdir # includes of python
python.libdir # the python dylib library
python.pkg_config_path # used internally by brew
python.from_osx?
python.framework?
python.universal?
python.pypy?
python.standard_caveats # Text to set PYTHONPATH for python.from_osx?
python.if3then3 # => "" for 2.x and to "3" for 3.x.

Further, to avoid code duplication, `python` takes an optional
block that is run twice if the formula defines depends_on
:python AND :python3.

python do
  system python, 'setup.py', "--prefix=#{prefix}"
end

Read more in the Homebrew wiki.
2013-06-03 17:29:43 +02:00
Adam Vandenberg 4fcd20b072 gdal: remove unused __END__ 2013-05-02 10:11:46 -07:00
Fedor Bezrukov 1c912ca06a gdal: Remove libdap patch
This patch is no longer needed for GDAL 1.10.

Closes #19550.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2013-04-30 20:25:52 -07:00
Ragi Yaser Burhum e73e520598 GDAL 1.10
Closes #19518.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-30 09:23:32 -07:00
Seve Salazar 3e6e680f6b gdal: fix ternary conditionals
Closes #19364.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-22 16:12:39 -05:00
Simon Sigurdhsson d6a2964eab Remove global methods from formulae
Removes any global methods from formulae, and moves #kext_prefix (which
seems to be at least somewhat abstractable) into the Formula class. The
only formula with global methods is now aspell; it (and its generating
script in contrib) has been changed to prefix that method with
`aspell_`, to minimize the risk of name collisions.

Closes #19331.
Closes #19343.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-21 23:48:50 -05:00
Samuel John 65fe8946bf gdal: armadillo is now in homebrew/science 2013-03-31 20:54:25 +02:00
Braden c1b4011dac gdal: link proj4 statically
Under normal circumstances, gdal loads libproj at runtime using
dlopen(), but this fails when installed in non-standard locations. Link
statically instead, which is what most other package managers seem to be
doing anyway.

Closes #18294.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-08 00:17:26 -06:00
Samuel John bb1a7ea926 Fix build errors caused by making sqlite keg_only
- In subversion and gdal, because they used
  HOMEBREW_PREFIX/lib instead of
  Formula.factory('sqlite').opt_prefix

Closes #17005.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-01-11 11:57:40 +00:00
Charlie Sharpsteen 4a68f0ba2e Clean up lib path searching for Spatialite
Anything linking against SpatiaLite also needs to use Homebrew's SQLite so that
loadable extensions are enabled along with RTree indices.

This commit cleans up several formulae to use the specific `opt/sqlite/lib`
prefix rather than `HOMEBREW_PREFIX/lib` and also adds this searching to
`gdal`.

However, this hack is getting a little large. The best fix would probably be to
flag SQLite as `keg_only` so that lib path munging is handled automagically for
everything with a dependency tree that includes SQLite.
2012-11-11 12:47:44 -08:00
Charlie Sharpsteen 67303dd893 gdal: libdap build fixed upstream
Patch no longer necessary when building HEAD versions.
2012-11-02 18:43:06 -07:00
Charlie Sharpsteen e8f1b50977 gdal: Refactor configuration
General cleanup and some specific changes:

  - Now depends on Homebrew's libtiff and libgeotiff now that BigTIFF support
    has landed upstream. This should prevent clashes arising from having
    internal and external copies of these libraries loaded by the same
    executable as noted in #7054.

  - Add WebP support to the `--complete` option.

  - All backends for which there is no suitable stable formula in core are now
    explicitly listed and disabled using `--without-<backend>` flags during
    configuration. This behavior may be disabled by using the
    `--enable-unsupported` flag which allows configure to drag in any libraries
    that it finds in the user's environment that GDAL enables by default.
    Previously this behavior was a side-effect of the `--complete` option.
2012-11-02 16:53:55 -07:00
Charlie Sharpsteen 7ff38f5ddc gdal: Re-enable Poppler support
Currently, GDAL 1.9.2 can build against Poppler 0.20.5 so Poppler support is
not re-enabled for the `--complete` option.

Reverts cfad309.
2012-11-02 10:22:55 -07:00
Charlie Sharpsteen 8750fbb29c gdal: Transition to options DSL
Replace `def options` with `option` statements and replace all calls to
`ARGV.include?` with `build.include?`.
2012-11-02 10:22:55 -07:00
Charlie Sharpsteen a907af44ce gdal: Update to 1.9.2 2012-10-11 12:42:17 -07:00
Charlie Sharpsteen 503f47f28d gdal: Depend on SpatiaLite by default
Depending on SpatiaLite adds minimal build time and is required by some GIS
applications such as QGIS.
2012-09-26 11:02:17 -05:00
Mike McQuaid 3c5ca25cad Batch convert MD5 formula to SHA1.
Closes #14653.
2012-09-03 11:36:42 -07:00
Misty De Meo c12c9d4f9c gdal: depend on :libpng instead of :x11
gdal doesn't use any parts of X11/XQuartz aside from libpng.
2012-08-13 15:24:58 -05:00
Jack Nagel 524e42a7e1 Adjust XQuartz/X11 module naming scheme
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-06 00:39:06 -05:00
Jack Nagel ebe8e83571 Update formulae for new XQuartz module 2012-08-01 00:31:39 -05:00
Jack Nagel a2d4d9d832 Update formulae for XQuartz compatibility 2012-07-01 12:41:00 -05:00
Charlie Sharpsteen f9c8011f62 GDAL: Fix missing comma
Argh. Forgot a comma when adding the flag to disable Poppler.
2012-05-23 17:41:51 -07:00
Charlie Sharpsteen cfad309284 GDAL: Temporarily disable Poppler
GDAL can't compile against Poppler 0.20.0 so it is explicitly disabled for the
time being in order to prevent compilation errors. This commit can be reverted
once a fix goes in upstream.
2012-05-23 17:33:48 -07:00
Charlie Sharpsteen 7116746807 GDAL: Update to 1.9.1
The new release contains pre-built man pages.
2012-05-23 12:12:33 -07:00
Adam Vandenberg d4185d557b Remove redundant :using => :svn 2012-05-10 07:10:12 -07:00
Charlie Sharpsteen 9eb1f21094 GDAL: Add Armadillo option 2012-05-07 13:32:01 -07:00
Charlie Sharpsteen b834cef22d GDAL: Use Homebrew SQLite
Required by SpatiaLite, so ensure GDAL links against the Homebrew version.
2012-05-07 12:02:17 -07:00
Charlie Sharpsteen feba8532d3 GDAL: Add FreeXL and LibDAP to --complete 2012-04-19 22:48:56 -07:00
Charlie Sharpsteen cb47f5fbb7 GDAL: Build and install man pages 2012-04-19 13:49:00 -07:00
Jannis Leidel f5c403d9a5 GDAL: Reset ARCHFLAGS in case they've been set outside
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-04-16 20:36:12 -07:00
Adam Vandenberg d3f3554299 Use "cd" instead of "Dir.chdir"
* And "mkdir" isntead of "Dir.mkdir"
* And "Dir[]" instead of "Dir.glob"
* Also style fixes and nitpicks
2012-02-24 21:35:50 -08:00
Charlie Sharpsteen 37b4a7a03f GDAL: Install bindings to pythonX.Y/site-packages 2012-02-16 00:16:01 -08:00
Charlie Sharpsteen e32e47c868 GDAL: Update to 1.9.0
Closes #9527.
2012-01-10 21:56:11 -08:00
Brett Koonce 6e2d550cf4 Fix spelling mistakes
Closes #9449.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06 09:43:54 -06:00
Brett Koonce 559a09db38 Fix spelling mistakes.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>

Closes #9407.
Closes #9408.
Closes #9410.
Closes #9411.
2012-01-05 21:58:53 +00:00
Charlie Sharpsteen fd910a60d9 GDAL: Depend on Numpy for Python bindings
Without Numpy, the Python bindings can't deal with Raster data very well which
pretty much hoses half of the GDAL functionality.
2011-09-11 09:44:49 -07:00
Jack Nagel df1c913dbf gdal: obtain liblzma from XZutils
The lzma package is legacy software (the developer has moved on to
XZutils), so we should use the xz formula to get liblzma.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-30 21:30:18 -05:00
Adam Vandenberg c82d416c02 gdal: stylistic changes 2011-07-25 09:40:40 -07:00
Charlie Sharpsteen 4ae8f86fae GDAL: Update to 1.8.1
Essential update for Lion users---fixes issues with LibPNG 1.5.1.

`--enable-opencl` option added to the formula. Invoking this will cause the
algorithms used by `gdalwarp` to use OpenCL acceleration.

Also expand the number of libraries added by the `--complete` option:

Raster Libraries:

  - CFITSIO
  - EPSILON

Vector Libraries:

  - Poppler

Support Libraries:

  - LibLZMA

OPeNDAP backend explicitly disabled as it prevents some other components from
configuring properly for some reason.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-25 09:38:12 -07:00
Adam Vandenberg 46c553ad43 Replace snow_leopard_64? in brews. 2011-03-18 10:30:47 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Michael Weisman 53df4d4780 Upgrade GDAL to 1.8.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-01-23 14:33:02 -08:00
Charlie Sharpsteen 54e3f2c139 Bumped GDAL to version 1.7.3
1.7.3 contains bug-fixes.  For new hotness, such as support for ASCII XYZ
rasters, users will have to play with the --HEAD brew untill version 1.8.0 comes
out.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-13 21:52:21 -08:00
Charlie Sharpsteen 0756f5a555 Refactored GDAL formula to increase functionality
The usefullness of the GDAL library is limited by the number of formats it
supports.  In light of this, the formula has been re-worked to provide maximum
support for file formats without increasing the dependency list, with the
exception of common image formats such as JPEG and GIF.  Changes made in persuit
of this goal are:

- Removed libtiff as a dependency-- now provided by an internal GDAL library for
  support of the BigTIFF format.

- Added `jpeg` and `giflib` as dependencies to complete support for common image
  file formats.

- Enabled GDAL-native BSB, GRIB and PCRaster support.

- Added support for Expat, CURL, and Sqlite3 which are provided by OS X.

- Added support for `--HEAD` builds that compile from the gdal-dev source
  available via SVN.

Also, disabled drivers have been grouped according to open-source/proprietary
status.

Additionally, a `--complete` installation option has been added.  This option is
will trigger the installation of additional Homebrew formulae that increase the
capabilities of GDAL.  By specifying the `--complete` flag, GDAL will now depend
on and link against the following libraries in order to provide more drivers for
reading and writing data:

Raster Formats:

- HDF5
- NetCDF
- JasPer

Vector Formats:

- ODBC
- LibSpatialite
- Xerces-C

Support for database servers has been added via the `--with-postgres` and
`--with-mysql` flags.  These will cause PostgreSQL or MySQL to be added the
dependency list of GDAL.

Python bindings are now built by default as they provide ~18 additional command
line tools in addition to the Python module.  The formula ensures that these
bindings are installed into the Homebrew prefix and not some random Python site
directory.  Compilation of the bindings can be disabled by passing the
`--without-python` flag to `brew install`.

The Perl, PHP and Ruby bindings remain disabled as they install outside of the
Homebrew prefix.  Users may manually enable them at their discretion.  Getting
these bindings to install into the brew prefix is an area for further
development.

Finally, some cleanup of the configure options has occurred:

- Removed invalid configuration options.

- Fixed threading support.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-13 19:31:43 -08:00
Will White 941f54bdba Fix apparent typo in --with-threads option.
gdal does not accept a --with-pthreads option.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-09 19:28:28 -08:00
kashif 301f110afe Updated formula: gdal
The 1.7.2 release is a routine bug fix release on the stable
GDAL/OGR 1.7 branch.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-05-01 09:47:03 -07:00
kashif d896345b26 Updated formula: gdal
Updated gdal 1.7.1 which fixes a serious bug in the last 1.7.0 release.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-02-15 14:55:51 -08:00
Max Howell 183e355f08 Use OS X provided libpng
And remove some unecessary configure flags.
2009-12-05 16:17:58 +00:00