add MathPlanner 3.1.2

A mathematical design and publishing application
This commit is contained in:
Ying-Chieh Liao 2003-02-08 13:23:15 +00:00
parent 40ce35f8b5
commit c94da980a2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75117
9 changed files with 136 additions and 0 deletions

View file

@ -2,6 +2,7 @@
#
SUBDIR += AbiWord
SUBDIR += MathPlanner
SUBDIR += aee
SUBDIR += apel
SUBDIR += apel-emacs19

View file

@ -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>

View file

@ -0,0 +1 @@
MD5 (MathPlanner-3.1.2.tar.gz) = 63cbad25c7df3ef437f2afd8907aabcf

View file

@ -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);

View file

@ -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;
}

View file

@ -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);

View file

@ -0,0 +1 @@
A mathematical design and publishing application

View file

@ -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

View file

@ -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%%