aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2001-03-11 03:46:38 +0800
committerwill <will@FreeBSD.org>2001-03-11 03:46:38 +0800
commitf42d413c074388e251ea4b639f8d654151974d7d (patch)
tree7fadf8d681c7359c18bff14fd4a5e2368fdcc0d4 /math
parent12dd28be8d6c3c0a784bdd6efe1218bf19e247dc (diff)
downloadfreebsd-ports-gnome-f42d413c074388e251ea4b639f8d654151974d7d.tar.gz
freebsd-ports-gnome-f42d413c074388e251ea4b639f8d654151974d7d.tar.zst
freebsd-ports-gnome-f42d413c074388e251ea4b639f8d654151974d7d.zip
Add mtrxmath 0.9.3, a small tool for matrix mathemetics.
PR: 24202 Submitted by: George Reid <greid@ukug.uk.freebsd.org>
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/mtrxmath/Makefile21
-rw-r--r--math/mtrxmath/distinfo1
-rw-r--r--math/mtrxmath/files/patch-Makefile17
-rw-r--r--math/mtrxmath/files/patch-mtrxmath.c11
-rw-r--r--math/mtrxmath/files/patch-mtrxmath.h10
-rw-r--r--math/mtrxmath/files/patch-mult.c10
-rw-r--r--math/mtrxmath/pkg-comment1
-rw-r--r--math/mtrxmath/pkg-descr7
-rw-r--r--math/mtrxmath/pkg-plist2
10 files changed, 81 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index df963866fd80..aeb8eec211c2 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -39,6 +39,7 @@
SUBDIR += linalg
SUBDIR += linpack
SUBDIR += metis
+ SUBDIR += mtrxmath
SUBDIR += netcdf
SUBDIR += ngraph
SUBDIR += ntl
diff --git a/math/mtrxmath/Makefile b/math/mtrxmath/Makefile
new file mode 100644
index 000000000000..e93a6f9b79e9
--- /dev/null
+++ b/math/mtrxmath/Makefile
@@ -0,0 +1,21 @@
+# New ports collection makefile for: mtrxmath
+# Date created: 09 January 2001
+# Whom: George Reid <greid@ukug.uk.freebsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mtrxmath
+PORTVERSION= 0.9.3
+CATEGORIES= math
+MASTER_SITES= http://www.angelfire.com/linux/linuxjeff/mtrxmath/files/
+
+MAINTAINER= greid@ukug.uk.freebsd.org
+
+LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/mtrxmath ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/README.mtrxmath
+
+.include <bsd.port.mk>
diff --git a/math/mtrxmath/distinfo b/math/mtrxmath/distinfo
new file mode 100644
index 000000000000..d3e4c3f18cbf
--- /dev/null
+++ b/math/mtrxmath/distinfo
@@ -0,0 +1 @@
+MD5 (mtrxmath-0.9.3.tar.gz) = 3cece8368ef32e8fe39a6b7774e2bc14
diff --git a/math/mtrxmath/files/patch-Makefile b/math/mtrxmath/files/patch-Makefile
new file mode 100644
index 000000000000..4e9502de0bf9
--- /dev/null
+++ b/math/mtrxmath/files/patch-Makefile
@@ -0,0 +1,17 @@
+--- Makefile.orig Sun Jan 7 23:29:11 2001
++++ Makefile Tue Jan 9 20:43:18 2001
+@@ -1,4 +1,4 @@
+-CFLAGS=-Wall -g
++CFLAGS+=-Wall -g -I${PREFIX}/include
+
+ SRCS=add.c mtrxmath.c mult.c sub.c inverse.c
+
+@@ -8,7 +8,7 @@
+ all: ${EXE}
+
+ ${EXE}: ${OBJS}
+- ${CC} -o $@ ${OBJS}
++ ${CC} -o $@ ${OBJS} -L${PREFIX}/lib -lgnugetopt
+
+ clean:
+ rm -f ${OBJS} ${EXE} *.orig
diff --git a/math/mtrxmath/files/patch-mtrxmath.c b/math/mtrxmath/files/patch-mtrxmath.c
new file mode 100644
index 000000000000..d3533f877408
--- /dev/null
+++ b/math/mtrxmath/files/patch-mtrxmath.c
@@ -0,0 +1,11 @@
+--- mtrxmath.c.orig Tue Jan 9 20:44:12 2001
++++ mtrxmath.c Tue Jan 9 20:44:00 2001
+@@ -102,7 +102,7 @@
+ exit(0);
+ }
+ if (cmdopt==INVERT) {
+- final == inverse(foo);
++ final = inverse(foo);
+ show_matrix(final);
+ exit(0);
+ }
diff --git a/math/mtrxmath/files/patch-mtrxmath.h b/math/mtrxmath/files/patch-mtrxmath.h
new file mode 100644
index 000000000000..60c4e31b8a56
--- /dev/null
+++ b/math/mtrxmath/files/patch-mtrxmath.h
@@ -0,0 +1,10 @@
+--- mtrxmath.h.orig Tue Jan 9 20:33:48 2001
++++ mtrxmath.h Tue Jan 9 20:35:02 2001
+@@ -13,7 +13,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <malloc.h>
+ #include <unistd.h>
+ #include <getopt.h>
+
diff --git a/math/mtrxmath/files/patch-mult.c b/math/mtrxmath/files/patch-mult.c
new file mode 100644
index 000000000000..da4b9c88257d
--- /dev/null
+++ b/math/mtrxmath/files/patch-mult.c
@@ -0,0 +1,10 @@
+--- mult.c.orig Tue Jan 9 20:40:21 2001
++++ mult.c Tue Jan 9 20:40:28 2001
+@@ -11,7 +11,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <malloc.h>
+ #include "mtrxmath.h"
+
+ MATRIX_PTR matrix_multiply( MATRIX_PTR first, MATRIX_PTR second)
diff --git a/math/mtrxmath/pkg-comment b/math/mtrxmath/pkg-comment
new file mode 100644
index 000000000000..c2ed0d33404a
--- /dev/null
+++ b/math/mtrxmath/pkg-comment
@@ -0,0 +1 @@
+A small tool for matrix mathemetics
diff --git a/math/mtrxmath/pkg-descr b/math/mtrxmath/pkg-descr
new file mode 100644
index 000000000000..c035d978bca1
--- /dev/null
+++ b/math/mtrxmath/pkg-descr
@@ -0,0 +1,7 @@
+Matrix Math is software to quickly and easily compute functions of
+matrices of any size. It supports addition, subtraction,
+multiplication, inversion, division, and will support whatever else is
+necessary.
+
+- George Reid
+greid@ukug.uk.freebsd.org
diff --git a/math/mtrxmath/pkg-plist b/math/mtrxmath/pkg-plist
new file mode 100644
index 000000000000..fef81d6874b3
--- /dev/null
+++ b/math/mtrxmath/pkg-plist
@@ -0,0 +1,2 @@
+bin/mtrxmath
+share/README.mtrxmath