summaryrefslogtreecommitdiff
path: root/math/dcdflib.c
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2001-01-29 06:13:54 +0000
committerjtb <jtb@pkgsrc.org>2001-01-29 06:13:54 +0000
commit45353a8aa4225435ce2508b6704e46de25e09e70 (patch)
tree804e5a90f69978aba134dabed9a388883310ad59 /math/dcdflib.c
parent398d812b4cebbb2ecc1c879d2d4b0ad9fe84867a (diff)
downloadpkgsrc-45353a8aa4225435ce2508b6704e46de25e09e70.tar.gz
Initial import of new dcdflib.c package:
Library of C Routines for Cumulative Distribution Functions
Diffstat (limited to 'math/dcdflib.c')
-rw-r--r--math/dcdflib.c/Makefile20
-rw-r--r--math/dcdflib.c/files/md53
-rw-r--r--math/dcdflib.c/files/patch-sum4
-rw-r--r--math/dcdflib.c/patches/patch-aa31
-rw-r--r--math/dcdflib.c/patches/patch-ab25
-rw-r--r--math/dcdflib.c/pkg/COMMENT1
-rw-r--r--math/dcdflib.c/pkg/DESCR20
-rw-r--r--math/dcdflib.c/pkg/PLIST10
8 files changed, 114 insertions, 0 deletions
diff --git a/math/dcdflib.c/Makefile b/math/dcdflib.c/Makefile
new file mode 100644
index 00000000000..d308a0b597e
--- /dev/null
+++ b/math/dcdflib.c/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/01/29 06:13:54 jtb Exp $
+
+DISTNAME= dcdflib.c-1.1
+CATEGORIES= math
+MASTER_SITES= ftp://odin.mdacc.tmc.edu/pub/source/
+
+MAINTAINER= jtb@netbsd.org
+HOMEPAGE= http://odin.mdacc.tmc.edu/anonftp/page_2.html
+
+USE_LIBTOOL= YES
+WRKSRC= ${WRKDIR}/dcdflib.c/src
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.h ${PREFIX}/include
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dcdflib.c
+ ${INSTALL_DATA} ${WRKSRC}/../README ${PREFIX}/share/doc/dcdflib.c
+ ${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.chs ${PREFIX}/share/doc/dcdflib.c
+ ${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.fdoc ${PREFIX}/share/doc/dcdflib.c
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/dcdflib.c/files/md5 b/math/dcdflib.c/files/md5
new file mode 100644
index 00000000000..96aa5dff342
--- /dev/null
+++ b/math/dcdflib.c/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2001/01/29 06:13:54 jtb Exp $
+
+MD5 (dcdflib.c-1.1.tar.gz) = 98dea6ecdce280ab6c85697f516c3ec4
diff --git a/math/dcdflib.c/files/patch-sum b/math/dcdflib.c/files/patch-sum
new file mode 100644
index 00000000000..25a6cafe374
--- /dev/null
+++ b/math/dcdflib.c/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 2001/01/29 06:13:54 jtb Exp $
+
+MD5 (patch-aa) = 358776fa17f06d6832221a69fae79fe7
+MD5 (patch-ab) = 94a6d483782aea2c4738a51dae5cf45f
diff --git a/math/dcdflib.c/patches/patch-aa b/math/dcdflib.c/patches/patch-aa
new file mode 100644
index 00000000000..32f2e000b85
--- /dev/null
+++ b/math/dcdflib.c/patches/patch-aa
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/01/29 06:13:54 jtb Exp $
+
+--- ipmpar.c.orig Mon Jan 29 05:01:11 2001
++++ ipmpar.c
+@@ -1,3 +1,6 @@
++#include <float.h>
++#include <limits.h>
++
+ int ipmpar(int*);
+ /*
+ -----------------------------------------------------------------------
+@@ -69,6 +72,19 @@
+ {
+ static int imach[11];
+ static int ipmpar;
++
++ imach[1] = 2;
++ imach[2] = (long) sizeof(int)*(CHAR_BIT) -1;
++ imach[3] = INT_MAX;
++ imach[4] = FLT_RADIX;
++ imach[5] = FLT_MANT_DIG;
++ imach[6] = FLT_MIN_EXP;
++ imach[7] = FLT_MAX_EXP;
++ imach[8] = DBL_MANT_DIG;
++ imach[9] = DBL_MIN_EXP;
++ imach[10] = FLT_MAX_EXP;
++
++
+ /* MACHINE CONSTANTS FOR AMDAHL MACHINES. */
+ /*
+ imach[1] = 2;
diff --git a/math/dcdflib.c/patches/patch-ab b/math/dcdflib.c/patches/patch-ab
new file mode 100644
index 00000000000..e6660041f91
--- /dev/null
+++ b/math/dcdflib.c/patches/patch-ab
@@ -0,0 +1,25 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/01/29 06:13:54 jtb Exp $
+
+--- /dev/null Mon Jan 29 05:11:27 2001
++++ Makefile
+@@ -0,0 +1,20 @@
++LIB = dcdflib
++
++LIBDIR = ${PREFIX}/lib
++
++all: lib$(LIB).la
++
++OBJS = dcdflib.o ipmpar.o
++
++lib$(LIB).la: $(OBJS)
++ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $@ $(OBJS:.o=.lo) -lm \
++ -rpath $(LIBDIR) --version-info 0:0
++
++.c.o:
++ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
++
++install: lib$(LIB).la
++ $(LIBTOOL) --mode=install $(BSD_INSTALL_DATA) $? $(LIBDIR)
++
++clean:
++ rm -fr *.o *.lo .libs lib$(LIB).la
diff --git a/math/dcdflib.c/pkg/COMMENT b/math/dcdflib.c/pkg/COMMENT
new file mode 100644
index 00000000000..afbd536eb87
--- /dev/null
+++ b/math/dcdflib.c/pkg/COMMENT
@@ -0,0 +1 @@
+Library of C Routines for Cumulative Distribution Functions
diff --git a/math/dcdflib.c/pkg/DESCR b/math/dcdflib.c/pkg/DESCR
new file mode 100644
index 00000000000..07212115d78
--- /dev/null
+++ b/math/dcdflib.c/pkg/DESCR
@@ -0,0 +1,20 @@
+This library contains routines to compute cumulative distribution
+functions, inverses, and parameters of the distribution for the
+following set of statistical distributions:
+
+ (1) Beta
+ (2) Binomial
+ (3) Chi-square
+ (4) Noncentral Chi-square
+ (5) F
+ (6) Noncentral F
+ (7) Gamma
+ (8) Negative Binomial
+ (9) Normal
+ (10) Poisson
+ (11) Student's t
+ (12) Noncentral t
+
+Given values of all but one parameter of a distribution, the other is
+computed. These calculations are done with double precision C
+variables.
diff --git a/math/dcdflib.c/pkg/PLIST b/math/dcdflib.c/pkg/PLIST
new file mode 100644
index 00000000000..0c418821562
--- /dev/null
+++ b/math/dcdflib.c/pkg/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/01/29 06:13:54 jtb Exp $
+include/dcdflib.h
+lib/libdcdflib.a
+lib/libdcdflib.la
+lib/libdcdflib.so.0
+lib/libdcdflib.so.0.0
+share/doc/dcdflib.c/README
+share/doc/dcdflib.c/dcdflib.chs
+share/doc/dcdflib.c/dcdflib.fdoc
+@dirrm share/doc/dcdflib.c