aboutsummaryrefslogtreecommitdiff
path: root/devel
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 /devel
parent08436d780099b5b9549d412fe146fb0733c19412 (diff)
downloadports-40a33a607008465f53d5a6195b52da563743c5c1.tar.gz
ports-40a33a607008465f53d5a6195b52da563743c5c1.zip
Notes
Diffstat (limited to 'devel')
-rw-r--r--devel/spin/Makefile3
-rw-r--r--devel/spin/files/patch-aa2
-rw-r--r--devel/vtcl/Makefile23
-rw-r--r--devel/vtcl/files/patch-aa2
4 files changed, 18 insertions, 12 deletions
diff --git a/devel/spin/Makefile b/devel/spin/Makefile
index 184c53739e51..9323a74dbf5a 100644
--- a/devel/spin/Makefile
+++ b/devel/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/devel/spin/files/patch-aa b/devel/spin/files/patch-aa
index 8b8a59c6f671..6eb41e379951 100644
--- a/devel/spin/files/patch-aa
+++ b/devel/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. #
diff --git a/devel/vtcl/Makefile b/devel/vtcl/Makefile
index 0a3be2e0960d..8348152d4751 100644
--- a/devel/vtcl/Makefile
+++ b/devel/vtcl/Makefile
@@ -16,22 +16,25 @@ RUN_DEPENDS= wish8.2:${PORTSDIR}/x11-toolkits/tk82
NO_BUILD= yes
+post-patch:
+ @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/vt.tcl
+
do-install:
- @ ${MKDIR} ${PREFIX}/lib/vtcl/images
- @ ${MKDIR} ${PREFIX}/lib/vtcl/images/edit
- @ ${MKDIR} ${PREFIX}/lib/vtcl/lib
- @ ${MKDIR} ${PREFIX}/share/doc/vtcl
- @ ${INSTALL_SCRIPT} ${WRKSRC}/vtcl ${PREFIX}/bin
- @ ${INSTALL_DATA} ${WRKSRC}/doc/tutorial.txt ${PREFIX}/share/doc/vtcl
+ @${MKDIR} ${PREFIX}/lib/vtcl/images
+ @${MKDIR} ${PREFIX}/lib/vtcl/images/edit
+ @${MKDIR} ${PREFIX}/lib/vtcl/lib
+ @${MKDIR} ${PREFIX}/share/doc/vtcl
+ ${INSTALL_SCRIPT} ${WRKSRC}/vtcl ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/doc/tutorial.txt ${PREFIX}/share/doc/vtcl
.for data in Announce ChangeLog README vt.tcl
- @ ${INSTALL_DATA} ${WRKSRC}/${data} ${PREFIX}/lib/vtcl
+ ${INSTALL_DATA} ${WRKSRC}/${data} ${PREFIX}/lib/vtcl
.endfor
.for sufx in gif ppm xbm xpm
- @ ${INSTALL_DATA} ${WRKSRC}/images/*.${sufx} ${PREFIX}/lib/vtcl/images
+ ${INSTALL_DATA} ${WRKSRC}/images/*.${sufx} ${PREFIX}/lib/vtcl/images
.endfor
- @ ${INSTALL_DATA} ${WRKSRC}/images/edit/*.gif ${PREFIX}/lib/vtcl/images/edit
+ ${INSTALL_DATA} ${WRKSRC}/images/edit/*.gif ${PREFIX}/lib/vtcl/images/edit
.for sufx in sh tcl
- @ ${INSTALL_DATA} ${WRKSRC}/lib/*.${sufx} ${PREFIX}/lib/vtcl/lib
+ ${INSTALL_DATA} ${WRKSRC}/lib/*.${sufx} ${PREFIX}/lib/vtcl/lib
.endfor
.include <bsd.port.mk>
diff --git a/devel/vtcl/files/patch-aa b/devel/vtcl/files/patch-aa
index f9195dad9133..84a4b480cb2f 100644
--- a/devel/vtcl/files/patch-aa
+++ b/devel/vtcl/files/patch-aa
@@ -2,7 +2,7 @@
+++ vt.tcl Thu Oct 8 01:31:27 1998
@@ -1,4 +1,4 @@
-#!/usr/bin/wish -f
-+#!/usr/local/bin/wish8.2 -f
++#!%%LOCALBASE%%/bin/wish8.2 -f
# $Id: vt.tcl,v 1.20 1998/02/02 05:11:27 stewart Exp $
##############################################################################