Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/sci
In directory vz-cvs-3.sog:/tmp/cvs-serv11461/sci

Added Files:
        netcdf.info netcdf.patch 
Log Message:
builds on 10.7


--- NEW FILE: netcdf.patch ---
--- netcdf-3.6.2/Makefile.am.orig       2007-02-21 16:25:37.000000000 -0500
+++ netcdf-3.6.2/Makefile.am    2007-03-23 20:45:58.000000000 -0400
@@ -24,6 +24,11 @@
 F77_TEST = nf_test
 endif
 
+# Does the user want C API?
+if BUILD_C
+LIBSRC = libsrc
+endif
+
 # Does the user want C++ API?
 if BUILD_CXX
 CXX_DIR = cxx
@@ -57,7 +62,7 @@
 # This is the list of subdirs for which Makefiles will be constructed
 # and run. ncgen must come before ncdump and cxx, because their tests
 # depend on it. nf_test depends upon ncgen as well.
-SUBDIRS = $(F90_DIR) $(F77_DIR) libsrc $(V2_TEST) $(NCGEN) $(NCDUMP)   \
+SUBDIRS = $(F90_DIR) $(F77_DIR) $(LIBSRC) $(V2_TEST) $(NCGEN) $(NCDUMP)        
\
 $(F77_TEST) ${CXX_DIR} nc_test $(MAN) $(EXAMPLES)
 
 # make test should do the same as make check.
--- netcdf-3.6.2/Makefile.in.orig       2007-03-01 17:46:18.000000000 -0500
+++ netcdf-3.6.2/Makefile.in    2007-03-23 20:46:07.000000000 -0400
@@ -263,6 +263,9 @@
 @BUILD_F77_TRUE@F77_DIR = fortran
 @BUILD_F77_TRUE@F77_TEST = nf_test
 
+# Does the user want C API?
+@BUILD_C_TRUE@LIBSRC = libsrc
+
 # Does the user want C++ API?
 @BUILD_CXX_TRUE@CXX_DIR = cxx
 
@@ -283,7 +286,7 @@
 # This is the list of subdirs for which Makefiles will be constructed
 # and run. ncgen must come before ncdump and cxx, because their tests
 # depend on it. nf_test depends upon ncgen as well.
-SUBDIRS = $(F90_DIR) $(F77_DIR) libsrc $(V2_TEST) $(NCGEN) $(NCDUMP)   \
+SUBDIRS = $(F90_DIR) $(F77_DIR) $(LIBSRC) $(V2_TEST) $(NCGEN) $(NCDUMP)        
\
 $(F77_TEST) ${CXX_DIR} nc_test $(MAN) $(EXAMPLES)
 
 
--- netcdf-3.6.2/f90/netcdf_f90.3.orig  2006-08-14 15:32:52.000000000 -0400
+++ netcdf-3.6.2/f90/netcdf_f90.3       2007-03-23 23:12:15.000000000 -0400
@@ -456,7 +456,7 @@
 and the name of the variable.
 .RE
 .HP
-\fBfunction nf90_Inqire_Variable(\fIncid\fP, \fIvarid\fP, \fIname\fP, 
+\fBfunction nf90_inquire_variable(\fIncid\fP, \fIvarid\fP, \fIname\fP, 
 \fIxtype\fP, \fIndims\fP, \fIdimids\fP, \fInatts\fP)\fR
 .RS
 .nf
--- netcdf-3.6.2/man/netcdf_f90-man.html.orig   2007-03-01 17:48:13.000000000 
-0500
+++ netcdf-3.6.2/man/netcdf_f90-man.html        2007-03-23 23:12:59.000000000 
-0400
@@ -713,7 +713,7 @@
 <tr valign="top" align="left">
 <td width="10%"></td>
 <td width="89%">
-<p><b>function nf90_Inqire_Variable(</b><i>ncid</i><b>,</b>
+<p><b>function nf90_inquire_variable(</b><i>ncid</i><b>,</b>
 <i>varid</i><b>,</b> <i>name</i><b>,</b>
 <i>xtype</i><b>,</b> <i>ndims</i><b>,</b>
 <i>dimids</i><b>,</b> <i>natts</i><b>)</b></p></td>
--- netcdf-3.6.2/cxx/Makefile.am.orig   2007-02-27 10:44:33.000000000 -0500
+++ netcdf-3.6.2/cxx/Makefile.am        2007-03-24 15:32:32.000000000 -0400
@@ -68,9 +68,8 @@
 
 else # not USE_NETCDF4
 
-# Point pre-processor and linker to netcdf-3 directory (libsrc).
+# Point pre-processor to netcdf-3 directory (libsrc).
 AM_CPPFLAGS += -I$(top_srcdir)/libsrc
-AM_LDFLAGS = -L. -L$(top_builddir)/libsrc
 
 # Link to the netCDF-3 library and the C++ library.
 LDADD = $(top_builddir)/cxx/libnetcdf_c++.la 
$(top_builddir)/libsrc/libnetcdf.la 
--- netcdf-3.6.2/cxx/Makefile.in.orig   2007-03-01 17:46:14.000000000 -0500
+++ netcdf-3.6.2/cxx/Makefile.in        2007-03-24 15:33:51.000000000 -0400
@@ -318,7 +318,6 @@
 tst_failure_SOURCES = tst_failure.cpp
 XFAIL_TESTS = tst_failure$(EXEEXT)
 TESTS = $(TESTFILES) $(am__append_1) $(am__append_6)
-@USE_NETCDF4_FALSE@AM_LDFLAGS = -L. -L$(top_builddir)/libsrc
 @USE_NETCDF4_TRUE@AM_LDFLAGS = -L. -L$(top_builddir)/libsrc4 \
 @USE_NETCDF4_TRUE@     $(am__append_4)
 

--- NEW FILE: netcdf.info ---
Package: netcdf
Version: 3.6.3
Revision: 3
BuildDependsOnly: True
GCC: 4.0
Maintainer: Alexander Hansen <alexkhan...@users.sourceforge.net>
Depends: %n-shlibs (= %v-%r), %n-bin (= %v-%r)
Conflicts: %n-absoft
Replaces: %n-absoft
BuildConflicts: g95
Source: ftp://ftp.unidata.ucar.edu/pub/%n/%n-%v.tar.gz
Source-MD5: e03ca6eb3a0d9126162b9fe1725cfed3
SourceDirectory: %n-%v
NoSetCPPFlags: true
#Patch: %n.patch
ConfigureParams: <<
  --enable-shared CFLAGS=-O2 CXXFLAGS=-O2 --disable-static \
  --mandir='${prefix}/share/man' --enable-docs-install 
--docdir='${prefix}/share/doc/%n' \
  --disable-dependency-tracking --disable-fortran-compiler-check --disable-f77 
--disable-f90
<<
InstallScript: <<
  #!/bin/sh -ev
  make prefix=%i install
  # Add C, CDL and CXX examples
  mkdir -p %i/share/doc/%N/examples
  cp -r examples/C* %i/share/doc/%N/examples
  # Remove duplicate and Fortran documentation
  rm -f %i/share/doc/%N/*.{ps,txt,info}
  rm -f %i/share/doc/%N/*{f77,f90}*
  rm -f %i/share/info/*{f77,f90}*
  # For backward compatability of old shlibs
  cd %i/lib
  ln -s libnetcdf.{4,3}.dylib
  ln -s libnetcdf_c++.{4,3}.dylib
<<
SplitOff: <<
  Package: %N-shlibs
  Conflicts: %N-absoft-shlibs
  Replaces: %N-absoft-shlibs, %N (<= 3.5.0-6), %N-absoft (<= 3.5.1-2)
  Suggests: %N-bin
  Files: lib/libnetcdf.*.dylib lib/libnetcdf_c++.*.dylib
  Shlibs: <<
    %p/lib/libnetcdf.4.dylib 5.0.0 %n (>= 3.6.2-1)
    %p/lib/libnetcdf_c++.4.dylib 5.0.0 %n (>= 3.6.2-1)
  <<
  DocFiles: COPYRIGHT README RELEASE_NOTES
<<
SplitOff2: <<
  Package: %N-bin
  Depends: %N-shlibs (= %v-%r)
  Conflicts: %N-absoft-bin
  Replaces: %N-absoft-bin, %N (<= 3.5.0-6), %N-absoft (<= 3.5.1-2)
  Files: bin share/man/man1 share/doc/%N/*-man-1.html
  DocFiles: COPYRIGHT README RELEASE_NOTES
<<
DocFiles: COPYRIGHT README RELEASE_NOTES
InfoDocs: netcdf-install.info netcdf-tutorial.info netcdf.info netcdf-c.info 
netcdf-cxx.info
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 C and C++ code. For libraries, documentation and examples for interfacing
with Fortran 77 (and Fortran 90) code install package,
`%N-g95', or `%N-gfortran'.
<<
DescPackaging: <<
The Fortran interface is moved to a different package so that users
do not have to install a Fortran compiler to just get the C/C++ interface.
Included examples in documents directory.
Removed non-essential duplicate documentation (.ps and .txt).
Added links to new shlibs for backwards compatibility. This works for the C
interface only, not for the Fortran interface. But since Fink did not have
any dependencies on the Fortran interface, there is no reason to create netcdf4.
BuildConflict on g95 because shared libraries don't get built if that is present
(the --disables in the ConfigureParams don't suffice).
<<
DescPort: <<
CFLAGS=-O2 CXXFLAGS=-O2 is essential to avoid debugging mode flags (-g).
<<
Homepage: http://www.unidata.ucar.edu/software/netcdf/
License: OSI-Approved


------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to