libnc-dap3 stable port information

Package: libnc-dap3
Version: 3.7.3
Revision: 4
Epoch: 1
BuildDependsOnly: true
GCC: 4.0
Description: OPeNDAP netCDF Client Library
License: LGPL
Maintainer: Alexander Hansen
Depends: %N-shlibs (=%e:%v-%r), pkgconfig
BuildDepends: <<
gcc44 | gcc45 | gcc46, libdap9 (>=3.8.2-4), fink-package-precedence
<<

# Unpack Phase:
Source: http://opendap.org/pub/source/libnc-dap-%v.tar.gz
Source-MD5: b69f3fb1b26b65903e41c2aa832cab34
PatchScript: perl -pi -e 's|ncdump|dncdump|g' ncdump/ncdump.1

# Compile Phase
CompileScript: <<
#!/bin/sh -ev
export F77=%p/bin/gfortran
%{default_script}
fink-package-precedence .
<<

# Install Phase:
DocFiles: COPYING COPYRIGHT ChangeLog README README.* NEWS

InstallScript: <<
make install DESTDIR=%d
mv %i/bin/ncdump %i/bin/dncdump
install -d %i/share/man/
install -d %i/share/man/man1
mv %b/ncdump/ncdump.1 %i/share/man/man1/dncdump
<<

SplitOff: <<
Package: %N-shlibs
Depends: <<
libdap9-shlibs (>=3.8.2-4)
<<
Files: lib/libnc-dap.*.dylib
Shlibs: %p/lib/libnc-dap.3.dylib 4.0.0 %n (>= 3.5.2-1)
DocFiles: COPYING COPYRIGHT README README.* NEWS
<<

DescDetail: <<
The netCDF Client Library is an alternative implementation of
Unidata's netCDF 3.62 API. Our version adds the capability to
dereference OPeNDAP URLs. You can substitute our version of
the library when linking your application and then simply pass
an OPeNDAP URL in where you would normally use a file name.

The functionaliy of this package has been subsumed into the mainline
netCDF distribution, as represented in Fink's netcdf7 package, but
this package exists to maintain legacy support.

Note: libnc-dap-3.7.4 requires libdap-3.9.x (once in Fink
as opendap10--we've gone to a newer libdap10 version),
but that breaks at runtime with an undefined symbol
issue, so we've reverted to libnc-dap-3.7.3.
<<
DescPackaging: <<
Manually install manpage.
Rename 'ncdump' to 'dncdump' to avoid collisions with netcdf-bin

Doesn't actually link to the fortran libraries from gcc4N, so allow a choice.
<<

Homepage: http://opendap.org/netCDF-DAP