the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: netcdf-g%type_raw[fort]
Type: fort (95 fortran)
Version: 3.6.3
Revision: 9
# Doesn't build on Lion, so DON'T MOVE IT.
# Packages that depend on this should migrate to netcdf-fortran5, or netcdf7-gfortran, if possible.
BuildDepends: (%type_raw[fort] = fortran)gcc44 | (%type_raw[fort] = fortran)gcc45 | (%type_raw[fort] = fortran)gcc46, (%type_raw[fort] = 95)g95, netcdf
BuildDependsOnly: true
Maintainer: Alexander Hansen
Depends: %n-shlibs (= %v-%r)
Conflicts: netcdf (<= 3.6.1-1003), netcdf-absoft, netcdf-g95, netcdf-gfortran, netcdf7-gfortran, netcdf-fortran5
Replaces: netcdf (<= 3.6.1-1003), netcdf-absoft, netcdf-g95, netcdf-gfortran, netcdf7-gfortran, netcdf-fortran5
Source: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-%v.tar.gz
Source-MD5: 334e9bdc010b6cd03fd6531a45fe50ad
SourceDirectory: netcdf-%v
NoSetCPPFlags: true
PatchScript: <<
perl -pi.bak -e 's|\$rpath|%p/lib/%N/lib|g' configure
<<
ConfigureParams: <<
--prefix=%i/lib/%N \
--enable-shared CFLAGS=-O2 FFLAGS=-O2 FCFLAGS=-O2 FC=g%type_raw[fort] F77=g%type_raw[fort] F90=g%type_raw[fort] \
--mandir='${prefix}/share/man' --enable-docs-install --docdir='${prefix}/share/doc/netcdf' \
--disable-dependency-tracking --disable-fortran-compiler-check --disable-c --with-netcdf-c-lib=%p/lib \
--disable-cxx --disable-utilities --disable-static --disable-docs-install
<<
InstallScript: <<
#!/bin/sh -ev
make install prefix=%i/lib/%N
mkdir -p %i/share
mkdir -p %i/share/doc
mkdir -p %i/share/info
mv %i/lib/%N/share/man %i/share
/bin/rm -rf %i/lib/netcdf-%N/share
# Add examples for F77 and F90
mkdir -p %i/share/doc/netcdf/examples
cp -r examples/F* %i/share/doc/netcdf/examples
# manually add docs
cp man4/netcdf-f77.{pdf,html} man4/netcdf-f90.{pdf,html} man4/netcdf_f{77,90}-man.html %i/share/doc/netcdf
cp man4/netcdf-f{77,90}.info %i/share/info
#fix libtool archive file
perl -pi -e "s,%i,%p," %i/lib/%n/lib/libnetcdff.la
<<
SplitOff: <<
Package: %N-shlibs
Depends: netcdf-shlibs (>= %v-2)
Files: lib/%N/lib/libnetcdff.*.dylib
Shlibs: %p/lib/%N/lib/libnetcdff.4.dylib 5.0.0 %n (>= 3.6.2-1001)
DocFiles: COPYRIGHT README RELEASE_NOTES
<<
InfoDocs: netcdf-f77.info netcdf-f90.info
DocFiles: COPYRIGHT README RELEASE_NOTES
Description: Interface & lib for array-based data access
DescDetail: <<
The netCDF (network Common Data Form) library defines a machine-independent
format for representing scientific data. Together, the interface, library,
and format support the creation, access, and sharing of scientific data.
This package provides libraries, documentation and examples for interfacing
with Fortran 77 and Fortran 90 code using the g%type_raw[fort] compiler.
Installs library and include files in %p/lib/%N to allow
the netcdf-g95 and netcdf-gfortran libraries to coexist.
<<
DescPackaging: <<
This Fortran interface is created as a different package so that users
do not have to install a Fortran compiler to just get the C/C++ interface.
<<
DescPort: <<
CFLAGS=-O2 FFLAGS=-O2 FCFLAGS=-O2 is essential to avoid debugging mode flags (-g).
All docs are moved into the directory /sw/share/doc/netcdf.
Removed non-essential duplicate documentation (.ps and .txt).
Manually move docs from the tarball to avoid potentially triggering a rebuild.
<<
Homepage: http://www.unidata.ucar.edu/software/netcdf/
License: OSI-Approved
<<