summaryrefslogtreecommitdiff
path: root/editors/MathPlanner
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2003-02-08 13:23:15 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2003-02-08 13:23:15 +0000
commitc94da980a2c17e12ccb84d7a992d79a0eb0cbbde (patch)
treeaea1ce2240803104cc5664cb27a3f6981b9a45fe /editors/MathPlanner
parentNew INDEX for 4.x, with 8207 ports. (diff)
add MathPlanner 3.1.2
A mathematical design and publishing application
Notes
Notes: svn path=/head/; revision=75117
Diffstat (limited to 'editors/MathPlanner')
-rw-r--r--editors/MathPlanner/Makefile25
-rw-r--r--editors/MathPlanner/distinfo1
-rw-r--r--editors/MathPlanner/files/patch-ConfigReader.cpp11
-rw-r--r--editors/MathPlanner/files/patch-Rational_math.cpp11
-rw-r--r--editors/MathPlanner/files/patch-Real_math.cpp13
-rw-r--r--editors/MathPlanner/pkg-comment1
-rw-r--r--editors/MathPlanner/pkg-descr6
-rw-r--r--editors/MathPlanner/pkg-plist67
8 files changed, 135 insertions, 0 deletions
diff --git a/editors/MathPlanner/Makefile b/editors/MathPlanner/Makefile
new file mode 100644
index 000000000000..9f4718e90ff8
--- /dev/null
+++ b/editors/MathPlanner/Makefile
@@ -0,0 +1,25 @@
+# ex:ts=8
+# Ports collection makefile for: MathPlanner
+# Date created: Feb 8, 2003
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= MathPlanner
+PORTVERSION= 3.1.2
+CATEGORIES= editors
+MASTER_SITES= http://koti.mbnet.fi/jarmonik/
+
+MAINTAINER= ports@FreeBSD.org
+
+USE_REINPLACE= yes
+USE_QT_VER= 3
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= QTDIR="${X11BASE}"
+
+post-patch:
+ @${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
+ -e "s|malloc\.h|stdlib.h|"
+
+.include <bsd.port.mk>
diff --git a/editors/MathPlanner/distinfo b/editors/MathPlanner/distinfo
new file mode 100644
index 000000000000..ac8a8fb50039
--- /dev/null
+++ b/editors/MathPlanner/distinfo
@@ -0,0 +1 @@
+MD5 (MathPlanner-3.1.2.tar.gz) = 63cbad25c7df3ef437f2afd8907aabcf
diff --git a/editors/MathPlanner/files/patch-ConfigReader.cpp b/editors/MathPlanner/files/patch-ConfigReader.cpp
new file mode 100644
index 000000000000..b630b3e770bb
--- /dev/null
+++ b/editors/MathPlanner/files/patch-ConfigReader.cpp
@@ -0,0 +1,11 @@
+--- src/ConfigReader.cpp.orig Sat Feb 8 20:50:08 2003
++++ src/ConfigReader.cpp Sat Feb 8 20:50:32 2003
+@@ -151,7 +151,7 @@
+
+ for(i=0;i<count;i++) {
+ if (Match(i,name)) {
+- co=strdupa(data[i].string);
++ co=strdup(data[i].string);
+ if (co) {
+ tok=strtok(co,se); r=atoi(tok);
+ tok=strtok(NULL,se); g=atoi(tok);
diff --git a/editors/MathPlanner/files/patch-Rational_math.cpp b/editors/MathPlanner/files/patch-Rational_math.cpp
new file mode 100644
index 000000000000..d6c8004dd418
--- /dev/null
+++ b/editors/MathPlanner/files/patch-Rational_math.cpp
@@ -0,0 +1,11 @@
+--- src/Rational_math.cpp.orig Sat Feb 8 20:58:16 2003
++++ src/Rational_math.cpp Sat Feb 8 21:01:38 2003
+@@ -163,7 +163,7 @@
+ for (i=0;i<21;i++)
+ if (mpl_modul(per_table[i],real)) {
+ up=per_table[i];
+- lo=round(up/real);
++ lo=floor(up/real);
+ pass=true;
+ break;
+ }
diff --git a/editors/MathPlanner/files/patch-Real_math.cpp b/editors/MathPlanner/files/patch-Real_math.cpp
new file mode 100644
index 000000000000..408a3faf660c
--- /dev/null
+++ b/editors/MathPlanner/files/patch-Real_math.cpp
@@ -0,0 +1,13 @@
+--- src/Real_math.cpp.orig Sat Feb 8 21:02:34 2003
++++ src/Real_math.cpp Sat Feb 8 21:02:54 2003
+@@ -26,8 +26,8 @@
+ bool mpl_modul(mpl_real a,mpl_real b)
+ {
+ mpl_real c=(a/b);
+-mpl_real ca=round(c*MODUL_ACCURACY);
+-mpl_real cb=round(c)*MODUL_ACCURACY;
++mpl_real ca=floor(c*MODUL_ACCURACY);
++mpl_real cb=floor(c)*MODUL_ACCURACY;
+
+ if (ca==cb) return(true);
+ return(false);
diff --git a/editors/MathPlanner/pkg-comment b/editors/MathPlanner/pkg-comment
new file mode 100644
index 000000000000..2944e4607d6e
--- /dev/null
+++ b/editors/MathPlanner/pkg-comment
@@ -0,0 +1 @@
+A mathematical design and publishing application
diff --git a/editors/MathPlanner/pkg-descr b/editors/MathPlanner/pkg-descr
new file mode 100644
index 000000000000..d5ed92781c72
--- /dev/null
+++ b/editors/MathPlanner/pkg-descr
@@ -0,0 +1,6 @@
+MathPlanner is a mathematical design and publishing application. Basic math
+features are supported including integers, function definitions, complex
+numbers, vectors. HTML files, pictures, functions can be Drag'n'droped between
+MathPlanner and other applications.
+
+WWW: http://koti.mbnet.fi/jarmonik/MathPlanner.html
diff --git a/editors/MathPlanner/pkg-plist b/editors/MathPlanner/pkg-plist
new file mode 100644
index 000000000000..31dc1f5da1f4
--- /dev/null
+++ b/editors/MathPlanner/pkg-plist
@@ -0,0 +1,67 @@
+bin/MathPlanner3
+%%DATADIR%%/COPYING
+%%DATADIR%%/ChangeLog
+%%DATADIR%%/Doc.htm
+%%DATADIR%%/Doc/deffn.png
+%%DATADIR%%/Doc/deffn2.png
+%%DATADIR%%/Doc/insert.png
+%%DATADIR%%/Doc/main.png
+%%DATADIR%%/Doc/mult.png
+%%DATADIR%%/Doc/par.png
+%%DATADIR%%/Doc/pii.png
+%%DATADIR%%/Doc/rational.png
+%%DATADIR%%/Doc/sigma.png
+%%DATADIR%%/MPLConfig.txt
+%%DATADIR%%/MathPlanner.desktop
+%%DATADIR%%/MathPlanner_mdk.spec
+%%DATADIR%%/examples/Integral.mpl2
+%%DATADIR%%/examples/OrderOfOperations.mpl2
+%%DATADIR%%/examples/Welcome.mpl2
+%%DATADIR%%/mpl2.desktop
+%%DATADIR%%/pixmaps/Drag.xpm
+%%DATADIR%%/pixmaps/Integ.xpm
+%%DATADIR%%/pixmaps/Loop.xpm
+%%DATADIR%%/pixmaps/Par.xpm
+%%DATADIR%%/pixmaps/ParB.xpm
+%%DATADIR%%/pixmaps/ParC.xpm
+%%DATADIR%%/pixmaps/ParD.xpm
+%%DATADIR%%/pixmaps/Pii.xpm
+%%DATADIR%%/pixmaps/Sigma.xpm
+%%DATADIR%%/pixmaps/configure.png
+%%DATADIR%%/pixmaps/cursor_rect.xpm
+%%DATADIR%%/pixmaps/edit_graph.png
+%%DATADIR%%/pixmaps/editclear.png
+%%DATADIR%%/pixmaps/editcopy.png
+%%DATADIR%%/pixmaps/editcut.png
+%%DATADIR%%/pixmaps/editdelete.png
+%%DATADIR%%/pixmaps/editpaste.png
+%%DATADIR%%/pixmaps/editselectall.png
+%%DATADIR%%/pixmaps/filenew.png
+%%DATADIR%%/pixmaps/fileopen.png
+%%DATADIR%%/pixmaps/fileprint.png
+%%DATADIR%%/pixmaps/filesave.png
+%%DATADIR%%/pixmaps/frame_graph.png
+%%DATADIR%%/pixmaps/frame_image.png
+%%DATADIR%%/pixmaps/frame_text.png
+%%DATADIR%%/pixmaps/gimp.png
+%%DATADIR%%/pixmaps/mathplannerapp.png
+%%DATADIR%%/pixmaps/reload.png
+%%DATADIR%%/pixmaps/text_block.png
+%%DATADIR%%/pixmaps/text_bold.png
+%%DATADIR%%/pixmaps/text_center.png
+%%DATADIR%%/pixmaps/text_italic.png
+%%DATADIR%%/pixmaps/text_left.png
+%%DATADIR%%/pixmaps/text_right.png
+%%DATADIR%%/pixmaps/text_under.png
+%%DATADIR%%/pixmaps/viewmag+.png
+%%DATADIR%%/pixmaps/viewmag-.png
+%%DATADIR%%/ts/mpl_en.ts
+%%DATADIR%%/ts/mpl_fi.qm
+@dirrm %%DATADIR%%/Doc
+@dirrm %%DATADIR%%/examples
+@dirrm %%DATADIR%%/icons/32x32
+@dirrm %%DATADIR%%/icons/64x64
+@dirrm %%DATADIR%%/icons
+@dirrm %%DATADIR%%/pixmaps
+@dirrm %%DATADIR%%/ts
+@dirrm %%DATADIR%%