aboutsummaryrefslogtreecommitdiffstats
path: root/devel/SpecTcl
diff options
context:
space:
mode:
Diffstat (limited to 'devel/SpecTcl')
-rw-r--r--devel/SpecTcl/Makefile5
-rw-r--r--devel/SpecTcl/files/patch-aa2
-rw-r--r--devel/SpecTcl/files/patch-ab2
3 files changed, 7 insertions, 2 deletions
diff --git a/devel/SpecTcl/Makefile b/devel/SpecTcl/Makefile
index 65be89921367..b36eeb8a21e8 100644
--- a/devel/SpecTcl/Makefile
+++ b/devel/SpecTcl/Makefile
@@ -7,6 +7,7 @@
PORTNAME= SpecTcl
PORTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= devel tk80
MASTER_SITES= ftp://ftp.scriptics.com/pub/tcl/guitools/
DISTNAME= ${PORTNAME}${PORTVERSION}
@@ -17,6 +18,10 @@ RUN_DEPENDS= wish8.0:${PORTSDIR}/x11-toolkits/tk80
NO_BUILD= yes
+post-patch:
+ @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/specJava
+ @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/specTcl
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/specJava ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/specTcl ${PREFIX}/bin
diff --git a/devel/SpecTcl/files/patch-aa b/devel/SpecTcl/files/patch-aa
index da3ccd3320fc..fef668eaa196 100644
--- a/devel/SpecTcl/files/patch-aa
+++ b/devel/SpecTcl/files/patch-aa
@@ -5,7 +5,7 @@
# Change DIR to the directory that contains the SpecTcl source files
-DIR=../SpecTcl
-+DIR=/usr/local/SpecTcl/lib
++DIR=%%PREFIX%%/SpecTcl/lib
# Change WISH to the pathname of your tk4.1a2 (or >) wish binary
-WISH=`which wish`
diff --git a/devel/SpecTcl/files/patch-ab b/devel/SpecTcl/files/patch-ab
index 989a413e26ae..f9936ddf949d 100644
--- a/devel/SpecTcl/files/patch-ab
+++ b/devel/SpecTcl/files/patch-ab
@@ -5,7 +5,7 @@
# Change DIR to the directory that contains the SpecTcl source files
-DIR=../SpecTcl
-+DIR=/usr/local/SpecTcl/lib
++DIR=%%PREFIX%%/SpecTcl/lib
# Change WISH to the pathname of your tk4.1a2 (or >) wish binary
-WISH=`which wish`