aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-06-23 13:44:03 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-06-23 13:44:03 +0000
commit40a33a607008465f53d5a6195b52da563743c5c1 (patch)
tree6746aa60a42ef4999ee47c9081c98f357098f148 /math
parent08436d780099b5b9549d412fe146fb0733c19412 (diff)
downloadports-40a33a607008465f53d5a6195b52da563743c5c1.tar.gz
ports-40a33a607008465f53d5a6195b52da563743c5c1.zip
- Support LOCALBASE properly (in setting path to custom wish script)
PR: 19470 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Notes
Notes: svn path=/head/; revision=29809
Diffstat (limited to 'math')
-rw-r--r--math/spin/Makefile3
-rw-r--r--math/spin/files/patch-aa2
2 files changed, 4 insertions, 1 deletions
diff --git a/math/spin/Makefile b/math/spin/Makefile
index 184c53739e51..9323a74dbf5a 100644
--- a/math/spin/Makefile
+++ b/math/spin/Makefile
@@ -23,6 +23,9 @@ ALL_TARGET= spin
post-extract:
@cd ${WRKDIR}/Test && ${SH} ${WRKDIR}/Test/examples
+post-patch:
+ @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKDIR}/Xspin3.3/xspin3310.tcl
+
pre-build:
cd ${WRKSRC} && ${MAKE} clean
diff --git a/math/spin/files/patch-aa b/math/spin/files/patch-aa
index 8b8a59c6f671..6eb41e379951 100644
--- a/math/spin/files/patch-aa
+++ b/math/spin/files/patch-aa
@@ -2,7 +2,7 @@
+++ ../Xspin3.3/xspin3310.tcl Wed Jun 23 18:30:51 1999
@@ -1,4 +1,4 @@
-#!/usr/local/bin/wish -f
-+#!/usr/local/bin/wish8.0 -f
++#!%%LOCALBASE%%/bin/wish8.0 -f
#======================================================================#
# Tcl/Tk Spin Controller, Gerard J. Holzmann, Bell Laboratories, USA. #