summaryrefslogtreecommitdiff
path: root/math/euler/patches
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2003-04-29 22:22:44 +0000
committerjtb <jtb@pkgsrc.org>2003-04-29 22:22:44 +0000
commite6914165562e4658bbcec24a189b852a27d5ee5e (patch)
treebba64be60c8eb9815e388fe01e477e8e9d6c7b63 /math/euler/patches
parent66781fa70b9c31fa699bd606feb20af8e701200d (diff)
downloadpkgsrc-e6914165562e4658bbcec24a189b852a27d5ee5e.tar.gz
Update to version 1.60.6.
Changes: * read_line in input.c and e_load in earray.c handles now properly '\r' characters from DOS files. * bug fix in metaps.c : postscript macros bar and fbar now handle hue the right way. * handles wheel mouse to scroll the text window content. * better event handling : test_key, test_code, syswait hack. * drag and drop support from gtk/gnome apps (xdnd). it works with - ROX - Nautilus drag and drop from Konqueror does not work. * popup menu for terminal editing * modulo bug fix * logspace, xlogplot, ylogplot, xylogplot, xlogmark, ylogmark, xylogmark enhanced and included in util.e (no more in a separate package). * gcm, lcm, primes, isprime and factor functions added to modulo.e * bug fix in project function in graphics.c * util.e - added figure function which allow to draw quicly several graphs in the graphical window - xlabel, ylabel updates to fill the figure function requirements - xgrid : scale is now sent to the bottom right of the graph - added rotate, animate * bug fix in my scan_dir function in main.c, which causes Segmentation fault * bug fix in the way euler was dealing with input and lineinput in term.c * new : antialiasing function to enable or disable antialiasing in density plots * complete reorder in source file for future enhancements * bug fix with solaris (scandir made portable) * delete outputs menu item
Diffstat (limited to 'math/euler/patches')
-rw-r--r--math/euler/patches/patch-aa16
-rw-r--r--math/euler/patches/patch-ab118
-rw-r--r--math/euler/patches/patch-ac6
3 files changed, 61 insertions, 79 deletions
diff --git a/math/euler/patches/patch-aa b/math/euler/patches/patch-aa
index 961d1c5a263..ddfeb625a2e 100644
--- a/math/euler/patches/patch-aa
+++ b/math/euler/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.3 2002/06/27 03:50:48 jtb Exp $
+$NetBSD: patch-aa,v 1.4 2003/04/29 22:22:45 jtb Exp $
---- main.c.orig Wed Feb 20 08:59:59 2002
+--- main.c.orig
+++ main.c
-@@ -389,7 +389,9 @@
+@@ -429,7 +429,9 @@
gettimer(TIMEOFDAY,&t);
return (t.tv_sec+t.tv_nsec/1000000000.0);
#else
@@ -12,13 +12,3 @@ $NetBSD: patch-aa,v 1.3 2002/06/27 03:50:48 jtb Exp $
+ return (double)(t.tms_utime+t.tms_stime)/CLK_TCK;
#endif
}
-
-@@ -1308,7 +1310,7 @@
- break;
- case E_DOC: {
- char *browser;
-- browser = g_strconcat(prefs.browser," ",INSTALL_DIR,"/doc/euler/index.html &",NULL);
-+ browser = g_strconcat(prefs.browser," ",INSTALL_DIR,"/share/doc/euler/index.html &",NULL);
- system(browser);
- g_free(browser);
- }
diff --git a/math/euler/patches/patch-ab b/math/euler/patches/patch-ab
index 217ef34f549..a898ce16829 100644
--- a/math/euler/patches/patch-ab
+++ b/math/euler/patches/patch-ab
@@ -1,13 +1,13 @@
-$NetBSD: patch-ab,v 1.1.1.1 2002/05/04 01:49:13 jtb Exp $
+$NetBSD: patch-ab,v 1.2 2003/04/29 22:22:45 jtb Exp $
---- makefile.orig Wed Feb 20 09:41:30 2002
-+++ makefile Thu Apr 25 10:48:52 2002
+--- makefile.orig
++++ makefile
@@ -6,7 +6,7 @@
# view docs/index.html with any Web browser.
--INSTALL_DIR = /usr/local
-+INSTALL_DIR = ${PREFIX}
+-#INSTALL_DIR = /usr/local
++INSTALL_DIR = $(PREFIX)
# Changes for other systems:
@@ -16,93 +16,90 @@ $NetBSD: patch-ab,v 1.1.1.1 2002/05/04 01:49:13 jtb Exp $
# define it -DPI=3.1415... (not necessary for 8 byte doubles)
-CC=gcc -Wall -O2 -DINSTALL_DIR=\"$(INSTALL_DIR)\"
-+CFLAGS+= -Wall
-+CPPFLAGS+= -Dunix -DINSTALL_DIR=\"$(INSTALL_DIR)\"
++CLFAGS+= -Wall
++CPPFLAGS+= -DINSTALL_DIR=\"$(INSTALL_DIR)\"
# This is for printing the DOC on your local printer
-@@ -46,7 +47,7 @@
+@@ -45,8 +46,8 @@
+
euler: $(OBJS) main.o rc.o earray.o term.o metagtk.o colbut.o
- $(CC) -o euler main.o rc.o earray.o term.o metagtk.o colbut.o $(OBJS) -lm `gtk-config --libs`
+- $(CC) -o euler main.o rc.o earray.o term.o metagtk.o colbut.o $(OBJS) -lm `gtk-config --libs`
-
++ $(CC) $(CPPFLAGS) $(CFLAGS) -o euler main.o rc.o earray.o term.o metagtk.o colbut.o $(OBJS) -lm `gtk-config --libs`
+
imported: import.cpp
g++ -o import import.cpp
./import *.cpp *.h help.txt euler.cfg
-@@ -59,120 +60,127 @@
+@@ -59,104 +60,104 @@
# object file dependances
#
- assign.o : header.h stack.h extend.h interval.h assign.c
-- $(CC) -c assign.c
-+ $(CC) $(CPPFLAGS) $(CFLAGS) -c assign.c
-
- binary.o : header.h stack.h binary.c
+ binary.o : sysdep.h stack.h output.h binary.h binary.c
- $(CC) -c binary.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c binary.c
- builtin.o : header.h builtin.h builtin.c
+ builtin.o : sysdep.h stack.h builtin.h builtin.c
- $(CC) -c builtin.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c builtin.c
- edit.o : header.h sysdep.h graphics.h edit.c
+ command.o : stack.h command.h builtin.h udf.h express.h command.c
+- $(CC) -c command.c
++ $(CC) $(CPPFLAGS) $(CFLAGS) -c command.c
+
+ edit.o : sysdep.h graphics.h edit.c
- $(CC) -c edit.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c edit.c
- express.o : header.h sysdep.h funcs.h interval.h builtin.h express.h stack.h express.c
+ express.o : sysdep.h stack.h output.h funcs.h interval.h builtin.h express.h\
+ spread.h udf.h matrix.h command.h input.h express.c
- $(CC) -c express.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c express.c
- extend.o : header.h extend.h extend.c
-- $(CC) -c extend.c
-+ $(CC) $(CPPFLAGS) $(CFLAGS) -c extend.c
-
- feval.o : header.h stack.h builtin.h sysdep.h feval.c
+ feval.o : stack.h output.h builtin.h udf.h mainloop.h feval.c
- $(CC) -c feval.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c feval.c
- fft.o : header.h matheh.h sysdep.h fft.c
+ fft.o : sysdep.h stack.h output.h linear.h fft.h fft.c
- $(CC) -c fft.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c fft.c
- frames.o : header.h sysdep.h stack.h frames.c
-- $(CC) -c frames.c
--
-+ $(CC) $(CPPFLAGS) $(CFLAGS) -c frames.c
-+
- funcs.o : header.h sysdep.h funcs.h matheh.h polynom.h helpf.h\
- interval.h spread.h express.h stack.h funcs.c
+ funcs.o : sysdep.h stack.h output.h builtin.h funcs.h linear.h polynom.h\
+ interval.h spread.h express.h udf.h mainloop.h edit.h funcs.c
- $(CC) -c funcs.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c funcs.c
- graphics.o : header.h sysdep.h funcs.h graphics.h stack.h meta.h graphics.c
+ graphics.o :sysdep.h stack.h output.h funcs.h express.h matrix.h meta.h\
+ graphics.h graphics.c
- $(CC) -c graphics.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c graphics.c
- help.o : header.h help.h help.c
+ help.o : output.h help.h help.c
- $(CC) -c help.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c help.c
- helpf.o : header.h funcs.h helpf.h matheh.h interval.h stack.h helpf.c
-- $(CC) -c helpf.c
-+ $(CC) $(CPPFLAGS) $(CFLAGS) -c helpf.c
-
- input.o : header.h sysdep.h input.c
+ input.o : sysdep.h input.c
- $(CC) -c input.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c input.c
- interval.o : header.h interval.h spread.h stack.h interval.c
+ interval.o : interval.h spread.h stack.h interval.c
- $(CC) -c interval.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c interval.c
- mainloop.o : header.h sysdep.h funcs.h graphics.h version.h\
+ linear.o : sysdep.h stack.h output.h interval.h mainloop.h\
+ linear.h linear.c
+- $(CC) -c linear.c
++ $(CC) $(CPPFLAGS) $(CFLAGS) -c linear.c
+
+ mainloop.o : sysdep.h funcs.h graphics.h version.h\
interval.h builtin.h stack.h meta.h mainloop.c
- $(CC) `glib-config --cflags` -c mainloop.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) `glib-config --cflags` -c mainloop.c
- matheh.o : header.h sysdep.h matheh.h stack.h matheh.c
-- $(CC) -c matheh.c
-+ $(CC) $(CPPFLAGS) $(CFLAGS) -c matheh.c
+ matrix.o : stack.h output.h funcs.h interval.h linear.h mainloop.h\
+ matrix.h matrix.c
+- $(CC) -c matrix.c
++ $(CC) $(CPPFLAGS) $(CFLAGS) -c matrix.c
meta.o: sysdep.h meta.h meta.c
- $(CC) -c meta.c
@@ -112,11 +109,11 @@ $NetBSD: patch-ab,v 1.1.1.1 2002/05/04 01:49:13 jtb Exp $
- $(CC) -c metaps.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c metaps.c
- output.o : header.h sysdep.h output.c
+ output.o : sysdep.h output.c
- $(CC) -c output.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c output.c
- polynom.o : header.h polynom.h funcs.h matheh.h interval.h\
+ polynom.o : polynom.h funcs.h linear.h interval.h\
express.h stack.h polynom.c
- $(CC) -c polynom.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c polynom.c
@@ -125,27 +122,23 @@ $NetBSD: patch-ab,v 1.1.1.1 2002/05/04 01:49:13 jtb Exp $
- $(CC) -c psgraph.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c psgraph.c
- scalp.o : header.h interval.h express.h stack.h scalp.c
+ scalp.o : interval.h express.h stack.h scalp.c
- $(CC) -c scalp.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c scalp.c
- special.o : header.h stack.h spread.h special.c
+ special.o : stack.h spread.h special.c
- $(CC) -c special.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c special.c
- spread.o : header.h sysdep.h funcs.h interval.h spread.h stack.h spread.c
+ spread.o : stack.h output.h spread.h builtin.h udf.h spread.c
- $(CC) -c spread.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c spread.c
- stack.o : header.h stack.h stack.c
+ stack.o : sysdep.h stack.h stack.c
- $(CC) -c stack.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c stack.c
- store.o : header.h store.h store.c
-- $(CC) -c store.c
-+ $(CC) $(CPPFLAGS) $(CFLAGS) -c store.c
-
- udf.o : header.h sysdep.h stack.h udf.c help.h
+ udf.o : sysdep.h stack.h udf.c help.h
- $(CC) -c udf.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c udf.c
@@ -175,19 +168,19 @@ $NetBSD: patch-ab,v 1.1.1.1 2002/05/04 01:49:13 jtb Exp $
#
# install
- #
- install:
-- if [ ! -d "$(INSTALL_DIR)/share/euler" ]; then mkdir $(INSTALL_DIR)/share/euler ; fi
-- if [ ! -d "$(INSTALL_DIR)/doc/euler" ]; then mkdir $(INSTALL_DIR)/doc/euler ; fi
+@@ -165,10 +166,18 @@
+ if [ ! -d "$(INSTALL_DIR)/share/euler" ]; then mkdir $(INSTALL_DIR)/share/euler ; fi
+ if [ ! -d "$(INSTALL_DIR)/share/doc" ]; then mkdir $(INSTALL_DIR)/share/doc ; fi
+ if [ ! -d "$(INSTALL_DIR)/share/doc/euler" ]; then mkdir $(INSTALL_DIR)/share/doc/euler ; fi
- cp -f euler $(INSTALL_DIR)/bin
- cp -fr ../progs $(INSTALL_DIR)/share/euler
-- cp -fr ../docs/* $(INSTALL_DIR)/doc/euler/
+- cp -fr ../docs/* $(INSTALL_DIR)/share/doc/euler/
- cp -f help.txt $(INSTALL_DIR)/share/euler
+ $(BSD_INSTALL_PROGRAM) euler $(INSTALL_DIR)/bin
+ $(BSD_INSTALL_DATA_DIR) $(INSTALL_DIR)/share/euler
-+ $(BSD_INSTALL_DATA_DIR) $(INSTALL_DIR)/share/euler/user
-+ $(BSD_INSTALL_DATA) ../progs/*.* $(INSTALL_DIR)/share/euler
-+ $(BSD_INSTALL_DATA) ../progs/user/*.* $(INSTALL_DIR)/share/euler/user
++ $(BSD_INSTALL_DATA_DIR) $(INSTALL_DIR)/share/euler/progs/user
++ $(BSD_INSTALL_DATA) ../progs/*.* $(INSTALL_DIR)/share/euler/progs
++ $(BSD_INSTALL_DATA) ../progs/user/*.* $(INSTALL_DIR)/share/euler/progs/user
+ $(BSD_INSTALL_DATA) help.txt $(INSTALL_DIR)/share/euler
+ $(BSD_INSTALL_DATA_DIR) $(INSTALL_DIR)/share/doc/euler
+ $(BSD_INSTALL_DATA_DIR) $(INSTALL_DIR)/share/doc/euler/images
@@ -195,7 +188,6 @@ $NetBSD: patch-ab,v 1.1.1.1 2002/05/04 01:49:13 jtb Exp $
+ $(BSD_INSTALL_DATA) ../docs/*.* $(INSTALL_DIR)/share/doc/euler/
+ $(BSD_INSTALL_DATA) ../docs/images/* $(INSTALL_DIR)/share/doc/euler/images
+ $(BSD_INSTALL_DATA) ../docs/reference/*.* $(INSTALL_DIR)/share/doc/euler/reference
-+
#
# uninstall
diff --git a/math/euler/patches/patch-ac b/math/euler/patches/patch-ac
index e5adcd11a6d..d0adf7b57d3 100644
--- a/math/euler/patches/patch-ac
+++ b/math/euler/patches/patch-ac
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.1.1.1 2002/05/04 01:49:13 jtb Exp $
+$NetBSD: patch-ac,v 1.2 2003/04/29 22:22:45 jtb Exp $
--- mainloop.c.orig Thu Apr 25 10:55:54 2002
+++ mainloop.c Thu Apr 25 11:09:45 2002
@@ -8,8 +8,8 @@ $NetBSD: patch-ac,v 1.1.1.1 2002/05/04 01:49:13 jtb Exp $
if (file) {
-// fprintf(file,"path(\".;%s/share/euler/progs\");\n",INSTALL_DIR);
-// fprintf(file,"cd(\"%s/share/euler/progs\");\n",INSTALL_DIR);
-+ fprintf(file,"path(\".;%s/share/euler\");\n",INSTALL_DIR);
-+ fprintf(file,"cd(\"%s/share/euler\");\n",INSTALL_DIR);
++ fprintf(file,"path(\".;%s/share/euler/progs\");\n",INSTALL_DIR);
++ fprintf(file,"cd(\"%s/share/euler/progs\");\n",INSTALL_DIR);
fprintf(file,"load \"util.e\";\n");
fprintf(file,"load \"framed.e\";\n");
fprintf(file,"load \"x.e\";\n");