Commit Graph
16 Commits
Author SHA1 Message Date
Li Dong 752afd13a0 netCDF: option for C++ bindings
Closes #15264.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-03 06:48:44 -07:00
Charlie Sharpsteen c02f6da22f netcdf: Update to 4.2.1.1
Also, use the new options DSL.
2012-08-18 15:08:19 -07:00
Jonathan Beezley 0dc4701969 netcdf 4.2.1
Closes #13498.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-07-20 13:41:33 -07:00
nibbles 2bits d242bc663d netcdf: fix for ifort and missing f90 symbols
Netcdf when built with `--enable-fortran` using the Intel Fortran
compiler, ifort, does accept the `--force-load` option, causing a
build error where libnetcdff.dylib is missing all the f90 symbols.
The solution is in a FAQ on their website:
  Set lt_cv_ld_force_load=no

http://www.unidata.ucar.edu/software/netcdf/docs/known_problems.html#intel-fortran-macosx

Fixes #13050.
Closes #13174.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-07-03 05:50:42 -08:00
Charlie Sharpsteen 4de6cfccbc netcdf: Use correct seperator when prepending PATH
Fixes a buglet discovered in #13050.
2012-06-29 22:59:26 -08:00
Charlie Sharpsteen afc8498129 NetCDF: Disable Doxygen
Configure fails to disable make tasks when Doxygen is not installed and this
causes the build to fail. We don't install Doxygen docs anyway.

Also, move `ENV.fortran` to the top of the install block so that the build will
fail early if a fortran compiler is not installed.

Fixes #12406.
2012-05-24 09:55:30 -07:00
Charlie Sharpsteen aeef837348 NetCDF: Update to 4.2
Starting with the 4.2 release, NetCDF has a new distribution model where the
core C library and command line utilities are shipped as one package and the
C++ and Fortran libraries are shipped as seperate packages.

For now, we're handling this by including the C++ and Fortran libraries as
sub-brews so there is no need for a bunch of `netcdf-cxx` and `netcdf-fortran`
packages. The C++ library is also built by default to mirror the behavior of
the pre-4.2 formula.

These changes preserve the status quo as much as possible.
2012-05-23 17:24:12 -07:00
Stefan Pfenninger 2f65e3e2bb NetCDF 4.1.3
Closes #9360.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-01 17:09:15 -06:00
Charlie Sharpsteen c0abbf426d NetCDF Hotfix for SZIP
Now that HDF5 actually uses the SZIP library, configure flags need to be passed
to NetCDF.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-01 16:21:01 -07:00
Charlie Sharpsteen 846cc0cba2 Upgrade NetCDF to 4.1.2
Also, fixed Fortran dependency to reflect Homebrew style post-refactor.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-01 12:59:42 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Adam Vandenberg fe691212f6 netcdf - enable fortran support 2010-08-08 10:05:32 -07:00
Adam Vandenberg d0efd9ee94 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 658f338ef9 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 411402049d 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 b4c2f73d81 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