aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-09-16 20:16:09 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-09-16 20:16:09 +0000
commitb0c59b7e6d2ea559771b78c3ea94054a9646ed9a (patch)
tree20fa6e1cc0a9c1d99fe267097a19fc51cb6fa313 /math
parentfac3a565aace0757b62f5b66f697fa1e0fce2a9b (diff)
downloadports-b0c59b7e6d2ea559771b78c3ea94054a9646ed9a.tar.gz
ports-b0c59b7e6d2ea559771b78c3ea94054a9646ed9a.zip
Notes
Diffstat (limited to 'math')
-rw-r--r--math/emacs-calc/Makefile4
-rw-r--r--math/emacs-calc/files/patch-Makefile2
2 files changed, 5 insertions, 1 deletions
diff --git a/math/emacs-calc/Makefile b/math/emacs-calc/Makefile
index 586de8804e13..249249c8a2a2 100644
--- a/math/emacs-calc/Makefile
+++ b/math/emacs-calc/Makefile
@@ -18,6 +18,10 @@ COMMENT= Arbitrary-precision calculator for Emacs
RUN_DEPENDS= emacs:${PORTSDIR}/editors/emacs
BUILD_DEPENDS= emacs:${PORTSDIR}/editors/emacs
+USE_REINPLACE= yes
INFO= calc
+post-patch:
+ @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/Makefile
+
.include <bsd.port.mk>
diff --git a/math/emacs-calc/files/patch-Makefile b/math/emacs-calc/files/patch-Makefile
index 1a20da7024c9..b53505e10b2c 100644
--- a/math/emacs-calc/files/patch-Makefile
+++ b/math/emacs-calc/files/patch-Makefile
@@ -22,7 +22,7 @@
+# FreeBSD installation
+
-+prefix = /usr/local
++prefix = %%PREFIX%%
+infodir = ${prefix}/info
+sharedir = ${prefix}/share
+emacssharedir = ${sharedir}/emacs