Commit graph

55 commits

Author SHA1 Message Date
Misty De Meo
56ecd194fb Use Hardware::CPU.arch(32|64)_bit in formulae 2013-08-15 22:46:56 -07:00
Misty De Meo
98e050bd6c Add MacOS.preferred_arch
Replaced the plethora of ternaries we've used all over the place to
determine whether x86_64 or i386 is called for.
2013-08-15 22:46:56 -07:00
Jack Nagel
11ff6c5b4b gdal: fix manpage installation
Fixes Homebrew/homebrew#21338.
Closes Homebrew/homebrew#21341.
2013-07-19 22:15:17 -05:00
Jack Nagel
d89e9a0c8b Make the use of paths to packages proxied through X11 consistent 2013-07-13 22:56:45 -05:00
Jack Nagel
59068e723a gdal: use ENV.libxml2 2013-06-13 19:29:28 -05:00
Joachim LeBlanc
51502a2086 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 Homebrew/homebrew#20341.

Signed-off-by: Samuel John <github@SamuelJohn.de>
2013-06-08 15:26:43 +02:00
Samuel John
f6e80bdea2 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
d7f88d9e80 gdal: remove unused __END__ 2013-05-02 10:11:46 -07:00
Fedor Bezrukov
012e679be6 gdal: Remove libdap patch
This patch is no longer needed for GDAL 1.10.

Closes Homebrew/homebrew#19550.

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

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

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-22 16:12:39 -05:00
Simon Sigurdhsson
a763d3df9f 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 Homebrew/homebrew#19331.
Closes Homebrew/homebrew#19343.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-21 23:48:50 -05:00
Samuel John
60ef6283af gdal: armadillo is now in homebrew/science 2013-03-31 20:54:25 +02:00
Braden
f1326361cc 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 Homebrew/homebrew#18294.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-08 00:17:26 -06:00
Samuel John
b8683d8800 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 Homebrew/homebrew#17005.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-01-11 11:57:40 +00:00
Charlie Sharpsteen
b4befaf35f 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
3fd1bfd565 gdal: libdap build fixed upstream
Patch no longer necessary when building HEAD versions.
2012-11-02 18:43:06 -07:00
Charlie Sharpsteen
a8ca67e389 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 Homebrew/homebrew#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
f3c34b2273 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
16207fae35 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
a9f9f2b0e0 gdal: Update to 1.9.2 2012-10-11 12:42:17 -07:00
Charlie Sharpsteen
fec701d41f 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
88779ade49 Batch convert MD5 formula to SHA1.
Closes Homebrew/homebrew#14653.
2012-09-03 11:36:42 -07:00
Misty De Meo
4d99e271aa 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
01e9fad4a1 Adjust XQuartz/X11 module naming scheme
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-06 00:39:06 -05:00
Jack Nagel
b81d01e23d Update formulae for new XQuartz module 2012-08-01 00:31:39 -05:00
Jack Nagel
d6e8244287 Update formulae for XQuartz compatibility 2012-07-01 12:41:00 -05:00
Charlie Sharpsteen
d1496287b5 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
63fa2bebd6 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
1f23177b5e GDAL: Update to 1.9.1
The new release contains pre-built man pages.
2012-05-23 12:12:33 -07:00
Adam Vandenberg
2ab4fa3fae Remove redundant :using => :svn 2012-05-10 07:10:12 -07:00
Charlie Sharpsteen
6b99f79833 GDAL: Add Armadillo option 2012-05-07 13:32:01 -07:00
Charlie Sharpsteen
6e28a6d578 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
f3d546c6a8 GDAL: Add FreeXL and LibDAP to --complete 2012-04-19 22:48:56 -07:00
Charlie Sharpsteen
8ce6a9ae7e GDAL: Build and install man pages 2012-04-19 13:49:00 -07:00
Jannis Leidel
6c886dee26 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
da3fdbd0cf 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
a13d1e2083 GDAL: Install bindings to pythonX.Y/site-packages 2012-02-16 00:16:01 -08:00
Charlie Sharpsteen
57f6f5f940 GDAL: Update to 1.9.0
Closes Homebrew/homebrew#9527.
2012-01-10 21:56:11 -08:00
Brett Koonce
7b65d5ade8 Fix spelling mistakes
Closes Homebrew/homebrew#9449.

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

Closes Homebrew/homebrew#9407.
Closes Homebrew/homebrew#9408.
Closes Homebrew/homebrew#9410.
Closes Homebrew/homebrew#9411.
2012-01-05 21:58:53 +00:00
Charlie Sharpsteen
30ede90efd 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
4fc93c08c9 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
3207e5ca77 gdal: stylistic changes 2011-07-25 09:40:40 -07:00
Charlie Sharpsteen
97ec3c05e1 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
7689fb8fd2 Replace snow_leopard_64? in brews. 2011-03-18 10:30:47 -07:00
Adam Vandenberg
4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Michael Weisman
885c18aeb3 Upgrade GDAL to 1.8.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-01-23 14:33:02 -08:00
Charlie Sharpsteen
e52cf69fc5 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
ab3582b6c7 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