summaryrefslogtreecommitdiff
path: root/math/mathomatic/patches
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-03-31 18:14:08 +0000
committerminskim <minskim@pkgsrc.org>2004-03-31 18:14:08 +0000
commit4fe29920ec0a3ff7c0ec80e77f40b5e60f643e24 (patch)
tree29e7a3e43d99a0fbfbf8a8ffb2e0e2f550218176 /math/mathomatic/patches
parentf39805f7df2216583f0b85402c56b3b2b085b957 (diff)
downloadpkgsrc-4fe29920ec0a3ff7c0ec80e77f40b5e60f643e24.tar.gz
Import mathomatic-10.9b from pkgsrc-wip.
Packaged by Bruce J.A. Nourish, and slightly modified by me. Mathomatic is an automatic algebraic manipulator that is self-testing and strictly follows the rules of algebra. Mathomatic is an interpreter that can: - Solve, simplify, and compare algebraic equations. - Combine simultaneous equations. - Perform basic calculus operations. - Generate the sensitivity formula for one or more variables in an equation. - Act like a double precision floating point programmable calculator. - Perform complex number and polynomial arithmetic. - Compute the Greatest Common Divisor of numbers or polynomials. - Generate "C" code from equations.
Diffstat (limited to 'math/mathomatic/patches')
-rw-r--r--math/mathomatic/patches/patch-aa71
1 files changed, 71 insertions, 0 deletions
diff --git a/math/mathomatic/patches/patch-aa b/math/mathomatic/patches/patch-aa
new file mode 100644
index 00000000000..da22db1a374
--- /dev/null
+++ b/math/mathomatic/patches/patch-aa
@@ -0,0 +1,71 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/03/31 18:14:08 minskim Exp $
+
+--- makefile.orig 2004-03-21 18:58:00.000000000 -0700
++++ makefile
+@@ -1,54 +1,22 @@
+ # Makefile for compiling Mathomatic for UNIX or Linux.
+
+-#CC = cc
+-
+-CFLAGS = -c -DUNIX
+-LFLAGS = -s
+ # To use readline, uncomment the following two lines:
+ #CFLAGS = -c -DUNIX -DREADLINE
+ #LFLAGS = -s -lreadline -lcurses
+
+-INSTALL_DIR = /usr/local
++INSTALL_DIR = ${PREFIX}
+
+-AOUT =am
++AOUT = am
+ OBJECTS =main.o am.o parse.o cmds.o simplify.o factor.o super.o \
+ unfactor.o diff.o complex.o list.o
+
++.c.o:
++ $(CC) $(CFLAGS) -c $<
++
+ all: $(AOUT)
+ @echo Make completed.
+
+-main.o: main.c am.h
+- $(CC) $(CFLAGS) $*.c
+-
+-am.o: am.c am.h externs.h
+- $(CC) $(CFLAGS) $*.c
+-
+-parse.o: parse.c parse.h am.h externs.h
+- $(CC) $(CFLAGS) $*.c
+-
+-cmds.o: cmds.c am.h externs.h
+- $(CC) $(CFLAGS) $*.c
+-
+-simplify.o: simplify.c am.h externs.h
+- $(CC) $(CFLAGS) $*.c
+-
+-factor.o: factor.c am.h externs.h
+- $(CC) $(CFLAGS) $*.c
+-
+-super.o: super.c am.h externs.h
+- $(CC) $(CFLAGS) $*.c
+-
+-unfactor.o: unfactor.c am.h externs.h
+- $(CC) $(CFLAGS) $*.c
+-
+-diff.o: diff.c am.h externs.h
+- $(CC) $(CFLAGS) $*.c
+-
+-complex.o: complex.c am.h externs.h
+- $(CC) $(CFLAGS) $*.c
+-
+-list.o: list.c am.h externs.h
+- $(CC) $(CFLAGS) $*.c
++$(OBJECTS): am.h externs.h
+
+ $(AOUT): $(OBJECTS)
+ $(CC) $(LFLAGS) $(OBJECTS) -lm -o $(AOUT)
+@@ -59,4 +27,4 @@ install: $(AOUT)
+ @echo Install completed.
+
+ clean:
+- rm *.o
++ rm -f $(OBJECTS)