summaryrefslogtreecommitdiff
path: root/math/dcdflib.c/patches
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/patches
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/patches')
-rw-r--r--math/dcdflib.c/patches/patch-aa31
-rw-r--r--math/dcdflib.c/patches/patch-ab25
2 files changed, 56 insertions, 0 deletions
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