diff options
Diffstat (limited to 'math/euler/patches/patch-ab')
-rw-r--r-- | math/euler/patches/patch-ab | 118 |
1 files changed, 55 insertions, 63 deletions
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 |