summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics/mathomatic/files/gentoo-mathomatic-11.1c.diff')
-rw-r--r--sci-mathematics/mathomatic/files/gentoo-mathomatic-11.1c.diff34
1 files changed, 34 insertions, 0 deletions
diff --git a/sci-mathematics/mathomatic/files/gentoo-mathomatic-11.1c.diff b/sci-mathematics/mathomatic/files/gentoo-mathomatic-11.1c.diff
new file mode 100644
index 000000000000..d83053ab0a2e
--- /dev/null
+++ b/sci-mathematics/mathomatic/files/gentoo-mathomatic-11.1c.diff
@@ -0,0 +1,34 @@
+diff -U 3 -dHrN -- am-orig/makefile am/makefile
+--- am-orig/makefile 2004-05-09 01:33:05.000000000 +0200
++++ am/makefile 2004-05-20 15:15:45.398058040 +0200
+@@ -1,15 +1,9 @@
+ # Makefile for compiling Mathomatic for UNIX or Linux.
+
+-CFLAGS = -O -DUNIX
+-LDFLAGS = -s
+-LIBS = -lm
+-
+-CFLAGS += $(READLINE:1=-DREADLINE)
+-LIBS += $(READLINE:1=-lreadline -lcurses)
+-
+-PREFIX = /usr/local
++CFLAGS += -DUNIX -DREADLINE
++LIBS = -lreadline -lcurses
+
+-AOUT =am
++AOUT =mathomatic
+ OBJECTS =main.o am.o parse.o cmds.o simplify.o factor.o super.o \
+ unfactor.o diff.o complex.o list.o
+
+@@ -30,8 +24,9 @@
+ $(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $(AOUT)
+
+ install: $(AOUT)
+- install -m 0755 $(AOUT) $(PREFIX)/bin
+- install -m 0644 am.1 $(PREFIX)/man/man1
++ install -D -s -m 0755 $(AOUT) $(PREFIX)/usr/bin/$(AOUT)
++ sed "s:am:mathomatic:g" < am.1 > mathomatic.1
++ install -D -m 0644 mathomatic.1 $(MANDIR)/man1/mathomatic.1
+ @echo Install completed.
+
+ clean: