summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--math/mathomatic/DESCR13
-rw-r--r--math/mathomatic/Makefile31
-rw-r--r--math/mathomatic/PLIST3
-rw-r--r--math/mathomatic/distinfo5
-rw-r--r--math/mathomatic/patches/patch-aa71
5 files changed, 123 insertions, 0 deletions
diff --git a/math/mathomatic/DESCR b/math/mathomatic/DESCR
new file mode 100644
index 00000000000..6cf19ff9af6
--- /dev/null
+++ b/math/mathomatic/DESCR
@@ -0,0 +1,13 @@
+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.
diff --git a/math/mathomatic/Makefile b/math/mathomatic/Makefile
new file mode 100644
index 00000000000..01688d50321
--- /dev/null
+++ b/math/mathomatic/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/03/31 18:14:08 minskim Exp $
+#
+
+DISTNAME= am-10.9b
+PKGNAME= mathomatic-10.9b
+CATEGORIES= math
+MASTER_SITES= http://www.panix.com/~gesslein/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= pkgsrc@bjan.freeshell.org
+HOMEPAGE= http://www.panix.com/~gesslein/
+COMMENT= Small portable symbolic math program
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+WRKSRC= ${WRKDIR}/am
+USE_BUILDLINK3= yes
+NO_CONFIGURE= yes
+MAKEFILE= makefile
+
+# gcc's optimizer causes problems with this version of the program
+CFLAGS+= -DUNIX -O0
+CFLAGS.SunOS+= -DSOLARIS
+
+INSTALLATION_DIRS= bin man/man1
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/am ${PREFIX}/bin/am_mathomatic
+ ${INSTALL_MAN} ${WRKSRC}/am.1 ${PREFIX}/man/man1/am_mathomatic.1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/mathomatic/PLIST b/math/mathomatic/PLIST
new file mode 100644
index 00000000000..faaf612192d
--- /dev/null
+++ b/math/mathomatic/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/03/31 18:14:08 minskim Exp $
+bin/am_mathomatic
+man/man1/am_mathomatic.1
diff --git a/math/mathomatic/distinfo b/math/mathomatic/distinfo
new file mode 100644
index 00000000000..ae714669247
--- /dev/null
+++ b/math/mathomatic/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/03/31 18:14:08 minskim Exp $
+
+SHA1 (am-10.9b.tgz) = 443c1fe9a66c24ea27d93de5c864ab0b83dcd3a2
+Size (am-10.9b.tgz) = 104823 bytes
+SHA1 (patch-aa) = 194e98949804567c125181251b3339fed10b114f
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)