pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/mathomatic Import mathomatic-10.9b from pkgsrc-wip.
details: https://anonhg.NetBSD.org/pkgsrc/rev/0fcb0ca8e18d
branches: trunk
changeset: 471842:0fcb0ca8e18d
user: minskim <minskim%pkgsrc.org@localhost>
date: Wed Mar 31 18:14:08 2004 +0000
description:
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:
math/mathomatic/DESCR | 13 +++++++
math/mathomatic/Makefile | 31 +++++++++++++++++
math/mathomatic/PLIST | 3 +
math/mathomatic/distinfo | 5 ++
math/mathomatic/patches/patch-aa | 71 ++++++++++++++++++++++++++++++++++++++++
5 files changed, 123 insertions(+), 0 deletions(-)
diffs (143 lines):
diff -r 376dfe19a4ed -r 0fcb0ca8e18d math/mathomatic/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/mathomatic/DESCR Wed Mar 31 18:14:08 2004 +0000
@@ -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 -r 376dfe19a4ed -r 0fcb0ca8e18d math/mathomatic/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/mathomatic/Makefile Wed Mar 31 18:14:08 2004 +0000
@@ -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@localhost
+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 -r 376dfe19a4ed -r 0fcb0ca8e18d math/mathomatic/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/mathomatic/PLIST Wed Mar 31 18:14:08 2004 +0000
@@ -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 -r 376dfe19a4ed -r 0fcb0ca8e18d math/mathomatic/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/mathomatic/distinfo Wed Mar 31 18:14:08 2004 +0000
@@ -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 -r 376dfe19a4ed -r 0fcb0ca8e18d math/mathomatic/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/mathomatic/patches/patch-aa Wed Mar 31 18:14:08 2004 +0000
@@ -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)
Home |
Main Index |
Thread Index |
Old Index