summaryrefslogtreecommitdiff
path: root/math/emacs-calc/files/patch-Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-13 15:31:02 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-13 15:31:02 +0000
commit767a3e989dc8f6046771ddb3b960e76655649611 (patch)
tree52b51799c5be41a0145b8eb306f3c84f12717809 /math/emacs-calc/files/patch-Makefile
parentThis is plugin pack for Supybot, IRC robot. These plugins (diff)
Emacs Calc can do arbitrary precision arithmetic, operations on matrices,
complex numbers, calendar dates and various other types, plus symbolic algebra and calculus, graphics, and lots more. Calc also comes with an extensive manual which you can print or read on-line. PR: ports/83238 Submitted by: Andrew Bernard <andrewb@cs.cmu.edu>
Notes
Notes: svn path=/head/; revision=139096
Diffstat (limited to 'math/emacs-calc/files/patch-Makefile')
-rw-r--r--math/emacs-calc/files/patch-Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/math/emacs-calc/files/patch-Makefile b/math/emacs-calc/files/patch-Makefile
new file mode 100644
index 000000000000..1a20da7024c9
--- /dev/null
+++ b/math/emacs-calc/files/patch-Makefile
@@ -0,0 +1,55 @@
+--- Makefile.orig Sun Jul 10 10:59:15 2005
++++ Makefile Sun Jul 10 11:24:42 2005
+@@ -52,13 +52,13 @@
+ # Do full Calc installation. (Note that `make' == `make all'.)
+ # These are written this way instead of `all: compile private info'
+ # to make the steps more explicit while the `make' is in progress.
+-all:
++all.orig:
+ $(MAKE) compile
+ $(MAKE) private
+ $(MAKE) info
+ $(ECHO) "Calc is now installed."
+
+-install:
++install.orig:
+ $(MAKE) compile
+ $(MAKE) public
+ $(MAKE) info
+@@ -180,4 +180,36 @@
+ $(REMOVE) calctut.*
+ $(REMOVE) calcsum.*
+
++# FreeBSD installation
++
++prefix = /usr/local
++infodir = ${prefix}/info
++sharedir = ${prefix}/share
++emacssharedir = ${sharedir}/emacs
++emacssitedir = ${emacssharedir}/site-lisp
++calcsitedir = ${emacssitedir}/calc
++
++elcfiles != find . -name '*.elc' -type f
++infofiles != find . -name 'calc.info*' -type f
++sitefiles = INSTALL README README.prev ${elcfiles}
++
++installfiles := ${infofiles:%=$(infodir)/%} ${sitefiles:%=$(calcsitedir)/%}
++
++all:
++ $(MAKE) compile
++ $(MAKE) info
++
++install: ${installfiles}
++ install-info ${infodir}/calc.info ${infodir}/dir
++
++.for file in ${infofiles}
++${infodir}/${file}: ${file}
++ install -o root -g wheel -m 0444 $? $@
++.endfor
++
++.for file in ${sitefiles}
++${calcsitedir}/${file}: ${file}
++ @install -d -o root -g wheel -m 0755 ${@D}
++ install -o root -g wheel -m 0444 $? $@
++.endfor
+