Package: netcdf-c7 Version: 4.2 Revision: 1 BuildDependsOnly: true Maintainer: Alexander Hansen Depends: %n-shlibs (= %v-%r), netcdf-bin (= %v-%r) BuildDepends: doxygen, fink-package-precedence, hdf5.7, libcurl4, szip Conflicts: netcdf-absoft, netcdf, netcdf7 Replaces: netcdf-absoft, netcdf, netcdf7 Source: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-%v.tar.gz Source-MD5: b920a6c3a30e9cd46fe96d9fb65ef17e SetCFLAGS: -O2 SetLDFLAGS: -lsz # -Wl,-dead_strip_dylibs PatchScript: << #!/bin/sh -ev # darwin8: need for off_t sed -i.orig -e '/#define XXDR_H/a\ #include \ ' oc/xxdr.h << ConfigureParams: << --enable-shared --disable-static \ --mandir='${prefix}/share/man' \ --docdir='${prefix}/share/doc/%n' \ --disable-dap-remote-tests << CompileScript: << #!/bin/sh -ev %{default_script} fink-package-precedence . << InfoTest: << TestScript: make -j1 check || exit 2 << InstallScript: << #!/bin/sh -ev make install DESTDIR=%d # Add C and CDL examples mkdir -p %i/share/doc/%N/examples cp -r examples/C* %i/share/doc/%N/examples rm -rf %i/share/doc/%N/examples/C/.deps #fix nc-config perl -pi -e 's/(has_szlib=).*/\1"yes"/' %i/bin/nc-config << SplitOff: << Package: %N-shlibs Depends: hdf5.7-shlibs, libcurl4-shlibs Conflicts: netcdf-absoft-shlibs Replaces: netcdf-absoft-shlibs, netcdf (<= 3.5.0-6), netcdf-absoft (<= 3.5.1-2), netcdf-shlibs Suggests: netcdf7-bin Files: << lib/libnetcdf.*.dylib << Shlibs: << %p/lib/libnetcdf.7.dylib 10.0.0 %n (>= 4.2-1) << DocFiles: COPYRIGHT README RELEASE_NOTES Description: Array-based data access, C library << SplitOff2: << Package: netcdf-bin Depends: %N-shlibs (= %v-%r), hdf5.7-shlibs Conflicts: netcdf-absoft-bin, netcdf7-bin Replaces: netcdf-absoft-bin, netcdf7-bin, netcdf (<= 3.5.0-6), netcdf-absoft (<= 3.5.1-2) Files: bin/nc{copy,dump,gen,gen3} share/man/man1 DocFiles: COPYRIGHT README RELEASE_NOTES Description: Array-based data access, user programs << DocFiles: COPYRIGHT README RELEASE_NOTES man4/*.doc man4/*.html man4/html man4/latex man4/images Description: Array-based data access, C headers and docs 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 C code. For libraries, documentation and examples for interfacing with C++ install the`netcdf-cxx4' package. For libraries, documentation and examples for interfacing with Fortran 77 (and Fortran 90) code install the `netcdf-fortran5' package. << DescPackaging: << Included examples in documents directory. Disable remote DAP tests since we aren't supposed to be accessing remote data during the build phase. Feed -lsz to configure so that it finds libsz. Patch nc-config to find libsz. << DescPort: << CFLAGS=-O2 is essential to avoid debugging mode flags (-g). << DescUsage: << Packages building against this one must find the headers in %p/opt/%N/include, and the libs in %p/opt/%N/lib, e.g. via ConfigureParams, *FLAGS variables, setting PKG_CONFIG_PATH, using %p/bin/nc-config, or explicit patching. << Homepage: http://www.unidata.ucar.edu/software/netcdf/ License: OSI-Approved