Info2:<< Package: nco Version: 4.4.2 Revision: 1 Type: v (4.4.2) Description: The NetCDF Operators, using netcdf-4 License: GPL3 Maintainer: Alexander Hansen # Prerequisites Depends: << gsl-shlibs, %N%type_pkg[v]-shlibs (=%v-%r) << BuildDepends: << antlr, gsl, udunits2-dev (>= 2.1.22-1), fink (>= 0.28-1), fink-package-precedence, netcdf-c7 (>= 4.3.1.1-1), netcdf-bin (>= 4.3.1.1-1), texinfo-legacy | texinfo (>> 4.13) << Conflicts: %N (<< 4.0.8-1), %N-dap (<< 4.0.8-1), %N-netcdf (<< 4.0.9-1), %N-opendap Replaces: %N (<< 4.0.8-1), %N-dap (<< 4.0.8-1), %N-netcdf (<< 4.0.9-1), %N-opendap # Unpack Phase: Source: http://%N.sourceforge.net/src/%N-%v.tar.gz Source-MD5: a733b47d1c3806f51064ace76ea53e56 # Patch Phase: PatchScript: << #!/bin/sh -ev perl -pi -e 's|||' src/nco++/Invoke.cc \ src/nco++/NcapVector.hh src/nco++/ncoGrammer.g src/nco++/ncoLexer.hpp \ src/nco++/ncoParser.hpp src/nco++/ncoTree.hpp perl -pi -e 's|-lnco|%b/src/nco/.libs/libnco.dylib|' src/nco++/Makefile.in perl -pi -e 's,dynamiclib,$& -single_module,' configure aclocal.m4 perl -pi -e "s,(apple.*)enable_shared='no',\1," configure << # Compile Phase: GCC: 4.0 SetLDFLAGS: -Wl,-dead_strip_dylibs ConfigureParams: << --enable-udunits2 --disable-udunits --enable-gsl \ --enable-dap-netcdf \ --enable-netcdf4 \ --enable-dependency-tracking \ --enable-shared \ --disable-static << CompileScript: << #!/bin/sh -ev export UDUNITS2_PATH=%p export NETCDF_INC=%p \ NETCDF_LIB=%p \ NETCDF4_ROOT=%p export PATH=%p/opt/texinfo-legacy/bin:$PATH %{default_script} fink-package-precedence --prohibit-bdep=%N-dap,%N-opendap,%N-netcdf,%N . << # Install Phase: DocFiles: doc/* InfoDocs: %N.info InstallScript: << make install DESTDIR=%d << PostInstScript: << printf "Checking for older library versions...\n" oldshlibs=`fink list -N nco4 | cut -f2` printf "\nYou can remove the following older versions of the shared library\n" printf "if you haven't built anything against them yourself:\n" printf "%%s " $oldshlibs printf "\n\n" << DescDetail: << Each NCO operator (e.g., ncks) takes netCDF or HDF input file(s), performs an operation (e.g., averaging, hyperslabbing, or renaming), and outputs a processed netCDF file. Although most users of netCDF and HDF data are involved in scientific research, these data formats, and thus NCO, are generic and are equally useful in fields like finance. This version is OPeNDAP/DODS enabled, so it can be given URLs to read remote datasets as if they were local netCDF files. It uses Fink's netcdf-c7 package (upstream netCDF4.2+). << DescPackaging: << Upstream has discontinued using libnc-dap, so have "nco" built against netcdf be the new hotness, and merge nco-netcdf into it on update. << DescPort: << Get rid of hardcoded malloc.h for C++ stuff. Patch out an -lnco that tends to link to a library in a previously installed version of the package. Upstream claims OS X doesn't understand shared libs; perhaps it's upstream who doesn't understand. :-) << Homepage: http://nco.sourceforge.net/ Splitoff: << Package: %N%type_pkg[v]-shlibs Depends: netcdf-c7-shlibs (>= 4.3.1.1-1), udunits2-shlibs DocFiles: doc/LICENSE Files: lib/libnco*%type_raw[v].dylib Shlibs: << %p/lib/libnco-%type_raw[v].dylib 0.0.0 %n (>= 4.3.6-1) %p/lib/libnco_c++-%type_raw[v].dylib 0.0.0 %n (>= 4.3.6-1) << Description: The NetCDF Operators, shared libraries << Splitoff2: << Package: %N%type_pkg[v]-dev DocFiles: doc/LICENSE Files: include lib Description: The NetCDF Operators, build-time files BuildDependsOnly: true Conflicts: << %N (<= 4.0.9-1), %N-dap (<< 4.0.8-1), %N-netcdf (<< 4.0.9-1), %N-opendap, %N410-dev, %N420-dev, %N421-dev, %N422-dev, %N423-dev, %N424-dev, %N425-dev, %N426-dev, %N430-dev, %N431-dev, %N432-dev, %N433-dev, %N434-dev, %N436-dev, %N439-dev, %N441-dev << Replaces: << %N (<= 4.0.9-1), %N-dap (<< 4.0.8-1), %N-netcdf (<< 4.0.9-1), %N-opendap, %N410-dev, %N420-dev, %N421-dev, %N422-dev, %N423-dev, %N424-dev, %N425-dev, %N426-dev, %N430-dev, %N431-dev, %N432-dev, %N433-dev, %N434-dev, %N436-dev, %N439-dev, %N441-dev << << <<