Commit graph

2 commits

Author SHA1 Message Date
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