summaryrefslogtreecommitdiff
path: root/devel/netcdf
diff options
context:
space:
mode:
authorfrueauf <frueauf@pkgsrc.org>1999-01-14 20:28:53 +0000
committerfrueauf <frueauf@pkgsrc.org>1999-01-14 20:28:53 +0000
commit8f3b96522cda0d7ed9cf0af25db1dc300c8560dc (patch)
tree558f4cee7dacd15b78b44794a6c65a92c42294ea /devel/netcdf
parent75fb1b95439c7fa03331906bfface2923c5e73c9 (diff)
downloadpkgsrc-8f3b96522cda0d7ed9cf0af25db1dc300c8560dc.tar.gz
Initial addition of netcdf-3.4, a library for array-oriented data access.
Provided in pr 6745 by Rene Hexel.
Diffstat (limited to 'devel/netcdf')
-rw-r--r--devel/netcdf/Makefile21
-rw-r--r--devel/netcdf/files/md53
-rw-r--r--devel/netcdf/patches/patch-aa18
-rw-r--r--devel/netcdf/patches/patch-ab45
-rw-r--r--devel/netcdf/patches/patch-ac27
-rw-r--r--devel/netcdf/patches/patch-ad15
-rw-r--r--devel/netcdf/patches/patch-ae13
-rw-r--r--devel/netcdf/patches/patch-af38
-rw-r--r--devel/netcdf/patches/patch-ag15
-rw-r--r--devel/netcdf/patches/patch-ah13
-rw-r--r--devel/netcdf/patches/patch-ai26
-rw-r--r--devel/netcdf/pkg/COMMENT1
-rw-r--r--devel/netcdf/pkg/DESCR6
-rw-r--r--devel/netcdf/pkg/PLIST15
14 files changed, 256 insertions, 0 deletions
diff --git a/devel/netcdf/Makefile b/devel/netcdf/Makefile
new file mode 100644
index 00000000000..d19b18299f8
--- /dev/null
+++ b/devel/netcdf/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/01/14 20:28:53 frueauf Exp $
+#
+
+DISTNAME= netcdf-3.4
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/netcdf/ \
+ ftp://ftp.dfd.dlr.de/pub/ucar/netcdf/
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.unidata.ucar.edu/packages/netcdf/index.html
+
+DEPENDS+= fort77-1.14a:../../lang/fort77
+
+CONFIGURE_ENV+= CPPFLAGS="-Df2cFortran -Dunix"
+
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/netcdf/files/md5 b/devel/netcdf/files/md5
new file mode 100644
index 00000000000..5e9a812e7c6
--- /dev/null
+++ b/devel/netcdf/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/01/14 20:28:54 frueauf Exp $
+
+MD5 (netcdf-3.4.tar.Z) = 2d7f6d6f7f6a67500d176440f3dea485
diff --git a/devel/netcdf/patches/patch-aa b/devel/netcdf/patches/patch-aa
new file mode 100644
index 00000000000..d94e0bd11cd
--- /dev/null
+++ b/devel/netcdf/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/01/14 20:28:54 frueauf Exp $
+
+--- ncgen/ncgentab.c.orig Wed Sep 17 20:31:03 1997
++++ ncgen/ncgentab.c Sun Sep 27 12:15:56 1998
+@@ -82,7 +82,13 @@
+ #include <memory.h>
+ #endif
+
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++
++#ifndef BSD
+ #include <values.h>
++#endif
+
+ #ifdef __cplusplus
+
diff --git a/devel/netcdf/patches/patch-ab b/devel/netcdf/patches/patch-ab
new file mode 100644
index 00000000000..134410d105f
--- /dev/null
+++ b/devel/netcdf/patches/patch-ab
@@ -0,0 +1,45 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/01/14 20:28:54 frueauf Exp $
+
+--- macros.make.in.orig Thu Sep 18 22:56:04 1997
++++ macros.make.in Sun Sep 27 19:11:17 1998
+@@ -28,9 +28,9 @@
+
+
+ # Compilation:
+-CC = @CC@
+-CXX = @CXX@
+-FC = @FC@
++CC = ${LIBTOOL} --mode=compile @CC@
++CXX = ${LIBTOOL} --mode=compile @CXX@
++FC = ${LIBTOOL} --mode=compile @FC@
+ CFLAGS = @CFLAGS@
+ CXXFLAGS = $(CFLAGS) @CXXFLAGS@
+ FFLAGS = @FFLAGS@
+@@ -47,10 +47,10 @@
+ MATHLIB = @MATHLIB@
+ FLIBS = @FLIBS@
+ LIBS = @LIBS@
+-LINK.c = $(CC) -o $@ $(CFLAGS) $(LDFLAGS)
+-LINK.cxx = $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS)
+-LINK.F = $(FC) -o $@ $(FFLAGS) $(FLDFLAGS)
+-LINK.f = $(FC) -o $@ $(FFLAGS) $(FLDFLAGS)
++LINK.c = ${LIBTOOL} --mode=link @CC@ -o $@ $(CFLAGS) $(LDFLAGS)
++LINK.cxx = ${LIBTOOL} --mode=link @CXX@ -o $@ $(CXXFLAGS) $(LDFLAGS)
++LINK.F = ${LIBTOOL} --mode=link @FC@ -o $@ $(FFLAGS) $(FLDFLAGS)
++LINK.f = ${LIBTOOL} --mode=link @FC@ -o $@ $(FFLAGS) $(FLDFLAGS)
+
+
+ # NetCDF files:
+@@ -66,9 +66,9 @@
+
+
+ # Misc. Utilities:
+-AR = @AR@
+-ARFLAGS = cru # NB: SunOS 4 doesn't like `-' option prefix
+-RANLIB = @RANLIB@
++AR = ${LIBTOOL} --mode=link @CC@
++ARFLAGS = -rpath $(LIBDIR) -version-info 3:4
++RANLIB = echo
+ TARFLAGS = -chf
+
+
diff --git a/devel/netcdf/patches/patch-ac b/devel/netcdf/patches/patch-ac
new file mode 100644
index 00000000000..0f38540cf77
--- /dev/null
+++ b/devel/netcdf/patches/patch-ac
@@ -0,0 +1,27 @@
+$NetBSD: patch-ac,v 1.1.1.1 1999/01/14 20:28:54 frueauf Exp $
+
+--- rules.make.orig Fri Dec 19 23:07:52 1997
++++ rules.make Sun Sep 27 22:34:28 1998
+@@ -55,8 +55,7 @@
+ lib: $(LIBRARY)
+
+ $(LIBRARY): $(LIB_OBJS) FORCE
+- $(AR) $(ARFLAGS) $@ $(LIB_OBJS)
+- $(RANLIB) $@
++ $(AR) $(ARFLAGS) -o ${.TARGET:.a=.la} ${LIB_OBJS:.o=.lo}
+
+ #-------------------------------------------------------------------------------
+ # Shared Libraries:
+@@ -122,10 +121,10 @@
+ cp $(HEADER2) $@
+
+ $(LIBDIR)/$(LIBRARY): $(LIBDIR) $(LIBRARY)
+- cp $(LIBRARY) $@
++ ${LIBTOOL} --mode=install cp $(LIBRARY) $@
+
+ $(BINDIR)/$(PROGRAM): $(BINDIR) $(PROGRAM)
+- cp $(PROGRAM) $@
++ ${LIBTOOL} --mode=install cp $(PROGRAM) $@
+
+ $(BINDIR) \
+ $(INCDIR) \
diff --git a/devel/netcdf/patches/patch-ad b/devel/netcdf/patches/patch-ad
new file mode 100644
index 00000000000..260203e352c
--- /dev/null
+++ b/devel/netcdf/patches/patch-ad
@@ -0,0 +1,15 @@
+$NetBSD: patch-ad,v 1.1.1.1 1999/01/14 20:28:54 frueauf Exp $
+
+--- Makefile.orig Sun Sep 27 19:49:58 1998
++++ Makefile Sun Sep 27 19:50:16 1998
+@@ -25,8 +25,8 @@
+ rules.make
+
+
+-all: libsrc/all \
+- fortran/all \
++all: fortran/all \
++ libsrc/all \
+ ncdump/all \
+ ncgen/all \
+ cxx/all
diff --git a/devel/netcdf/patches/patch-ae b/devel/netcdf/patches/patch-ae
new file mode 100644
index 00000000000..f768ffc66c2
--- /dev/null
+++ b/devel/netcdf/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1.1.1 1999/01/14 20:28:54 frueauf Exp $
+
+--- fortran/Makefile.orig Sun Sep 27 19:52:28 1998
++++ fortran/Makefile Sun Sep 27 19:56:28 1998
+@@ -68,7 +68,7 @@
+ #
+
+
+-all: $(LIBRARY) $(MANUAL)
++all: $(LIB_OBJS) $(MANUAL)
+
+ test: ftest FORCE
+ ./ftest
diff --git a/devel/netcdf/patches/patch-af b/devel/netcdf/patches/patch-af
new file mode 100644
index 00000000000..799e0433743
--- /dev/null
+++ b/devel/netcdf/patches/patch-af
@@ -0,0 +1,38 @@
+$NetBSD: patch-af,v 1.1.1.1 1999/01/14 20:28:54 frueauf Exp $
+
+--- libsrc/Makefile.orig Mon Dec 8 23:04:42 1997
++++ libsrc/Makefile Sun Sep 27 20:23:07 1998
+@@ -7,7 +7,7 @@
+
+ INCLUDES = -I.
+
+-LIBRARY = libnetcdf.a
++LIBRARY = libnetcdf.la
+ ld_netcdf = -L. -lnetcdf
+
+ HEADER = netcdf.h
+@@ -54,7 +54,23 @@
+ t_ncxx.c \
+ t_ncx.c
+
+-LIB_OBJS = $(LIB_CSRCS:.c=.o)
++FLIB_OBJS = \
++ ../fortran/fort-attio.o \
++ ../fortran/fort-control.o \
++ ../fortran/fort-dim.o \
++ ../fortran/fort-genatt.o \
++ ../fortran/fort-geninq.o \
++ ../fortran/fort-genvar.o \
++ ../fortran/fort-lib.o \
++ ../fortran/fort-misc.o \
++ ../fortran/fort-v2compat.o \
++ ../fortran/fort-vario.o \
++ ../fortran/fort-var1io.o \
++ ../fortran/fort-varaio.o \
++ ../fortran/fort-varmio.o \
++ ../fortran/fort-varsio.o
++
++LIB_OBJS = $(LIB_CSRCS:.c=.o) $(FLIB_OBJS)
+
+ GARBAGE = t_ncio.o t_ncio t_ncx.o t_ncx t_ncxx.o t_ncxx \
+ t_nc.o t_nc test.nc *.so
diff --git a/devel/netcdf/patches/patch-ag b/devel/netcdf/patches/patch-ag
new file mode 100644
index 00000000000..1ed3419231c
--- /dev/null
+++ b/devel/netcdf/patches/patch-ag
@@ -0,0 +1,15 @@
+$NetBSD: patch-ag,v 1.1.1.1 1999/01/14 20:28:54 frueauf Exp $
+
+--- ncdump/Makefile.orig Sun Sep 27 20:07:07 1998
++++ ncdump/Makefile Sun Sep 27 20:08:23 1998
+@@ -19,8 +19,8 @@
+ test0.cdl ncdump.1 Makefile
+ MANUAL = ncdump.1
+
+-lib_netcdf = ../libsrc/libnetcdf.a
+-ld_netcdf = -L../libsrc -lnetcdf
++lib_netcdf = ../libsrc/libnetcdf.la
++ld_netcdf = ${lib_netcdf}
+ OBJS = ncdump.o vardata.o dumplib.o
+ GARBAGE = $(PROGRAM) test0.nc test1.nc test1.cdl test2.cdl
+
diff --git a/devel/netcdf/patches/patch-ah b/devel/netcdf/patches/patch-ah
new file mode 100644
index 00000000000..4ef82a43cb3
--- /dev/null
+++ b/devel/netcdf/patches/patch-ah
@@ -0,0 +1,13 @@
+$NetBSD: patch-ah,v 1.1.1.1 1999/01/14 20:28:54 frueauf Exp $
+
+--- ncgen/Makefile.orig Sun Sep 27 20:11:07 1998
++++ ncgen/Makefile Sun Sep 27 20:11:37 1998
+@@ -14,7 +14,7 @@
+ ctest.c ctest ctest0.nc ctest1.cdl \
+ ftest.f ftest ftest0.nc ftest1.cdl
+
+-lib_netcdf = ../libsrc/libnetcdf.a
++lib_netcdf = ../libsrc/libnetcdf.la
+ # Don't use "-L../libsrc -lnetcdf" in the following because that doesn't
+ # work on a CRAY T90 (sigh).
+ ld_netcdf = $(lib_netcdf)
diff --git a/devel/netcdf/patches/patch-ai b/devel/netcdf/patches/patch-ai
new file mode 100644
index 00000000000..6b02ed670a1
--- /dev/null
+++ b/devel/netcdf/patches/patch-ai
@@ -0,0 +1,26 @@
+$NetBSD: patch-ai,v 1.1.1.1 1999/01/14 20:28:54 frueauf Exp $
+
+--- cxx/Makefile.orig Sun Sep 27 20:12:34 1998
++++ cxx/Makefile Sun Sep 27 20:17:51 1998
+@@ -11,9 +11,9 @@
+ nctst.cc ncvalues.cc ncvalues.hh netcdf.cc netcdf.hh \
+ expected cxxdoc.tex cxxdoc.ps texinfo.tex
+
+-LIBRARY = libnetcdf_c++.a
+-lib_netcdf = ../libsrc/libnetcdf.a
+-ld_netcdf = -L../libsrc -lnetcdf
++LIBRARY = libnetcdf_c++.la
++lib_netcdf = ../libsrc/libnetcdf.la
++ld_netcdf = ${lib_netcdf}
+
+ HEADER1 = netcdf.hh
+ HEADER2 = ncvalues.hh
+@@ -42,7 +42,7 @@
+ install: $(LIBDIR)/$(LIBRARY) $(INCDIR)/$(HEADER1) $(INCDIR)/$(HEADER2)
+
+ $(prog) : $(prog_objs) $(LIBRARY) $(lib_netcdf)
+- $(CXX) -o $@ $(CXXCPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $(prog_objs) $(libs)
++ $(LINK.cxx) -o $@ $(CXXCPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $(prog_objs) $(libs)
+
+ nctst_src: nctst.cc netcdf.cc ncvalues.cc
+ #load -I../libsrc $(nctst_src)
diff --git a/devel/netcdf/pkg/COMMENT b/devel/netcdf/pkg/COMMENT
new file mode 100644
index 00000000000..2e3b50e0a62
--- /dev/null
+++ b/devel/netcdf/pkg/COMMENT
@@ -0,0 +1 @@
+a library for array-oriented data access.
diff --git a/devel/netcdf/pkg/DESCR b/devel/netcdf/pkg/DESCR
new file mode 100644
index 00000000000..4ea44d883eb
--- /dev/null
+++ b/devel/netcdf/pkg/DESCR
@@ -0,0 +1,6 @@
+NetCDF (network Common Data Form) is an interface for array-oriented
+data access and a library that provides an implementation of the interface.
+The netCDF library also defines a machine-independent format for
+representing scientific data. Together, the interface, library, and format
+support the creation, access, and sharing of scientific data. The netCDF
+software was developed at the Unidata Program Center in Boulder, Colorado.
diff --git a/devel/netcdf/pkg/PLIST b/devel/netcdf/pkg/PLIST
new file mode 100644
index 00000000000..fb340956d32
--- /dev/null
+++ b/devel/netcdf/pkg/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/01/14 20:28:53 frueauf Exp $
+bin/ncdump
+bin/ncgen
+include/netcdf.h
+include/netcdf.inc
+include/netcdf.hh
+include/ncvalues.hh
+lib/libnetcdf.a
+lib/libnetcdf.so.3.4
+lib/libnetcdf_c++.a
+lib/libnetcdf_c++.so.3.4
+man/man1/ncdump.1
+man/man1/ncgen.1
+man/man3/netcdf.3
+man/man3/netcdf.3f