Commit Graph

6 Commits (41078b736d5552f72b0438038476aa9c8c83562c)

Author SHA1 Message Date
Adam Vandenberg 4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Adam Vandenberg bf4ab26f7e netcdf - enable fortran support 2010-08-08 10:05:32 -07:00
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00
Charlie Sharpsteen 154f588ee8 Removed Fortran from NetCDF build
Fortran support has been explicitly disabled in the NetCDF brew pending
the resolution of Issue 72. It is perfectly possible to use the brew to
build a working Fortran NetCDF library if a Fortran compiler is present.
However, configure may fail on 64 bit architectures as Homebrew does not
set the FCFLAGS and FFLAGS environment variables to be compatiable with
those set for CFLAGS.

The best resolution of this issue is formal support for a Fortran
compiler.

A non-existant configure argument related to Szip was removed. This
dependency is satisfied by specifying the location of HDF5.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-10 19:31:36 -07:00
Charlie Sharpsteen d46282db1d Updated NetCDF to build shared libs
By default, NetCDF only builds static libs.  This leads to some
complicated dependencies that must be satisfied by other programs that
link against libnetcdf.a:

    nc-config --libs
    -L/<brew root>/Cellar/netcdf/4.1.1/lib -lnetcdf
    -L/<brew root>/Cellar/hdf5/1/lib -lhdf5_hl -lhdf5 -lz -lm -lcurl

HDF5 is required to access version 4 of the NetCDF file format.

When shared libraries are provided, the linking requirements are
greatly simplified:

    nc-config --libs
    -L/<brew root>/Cellar/netcdf/4.1.1/lib -lnetcdf

This eases the build process for other formulas that depend on NetCDF
libraries.

The static libraries are still compiled and available for use.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-05-12 07:18:13 -07:00
Charlie Sharpsteen 90df778a90 Updated netcdf to version 4.1.1
- NetCDF brew updated to version 4.1.1.

- Now builds against HDF5 for interoperability.

- ENV.m32 removed and builds x86_64 native on Snow Leopard
  (tested on 10.6.3)
2010-05-07 21:12:47 -07:00