aboutsummaryrefslogtreecommitdiffstats
path: root/devel/vtcl
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-06-23 21:44:03 +0800
committersobomax <sobomax@FreeBSD.org>2000-06-23 21:44:03 +0800
commit75802943a41a8d04904b4f8f73577c1e1f41bd19 (patch)
treecdb15359f6b17edd36ab0ef3a40572e8e1afb2d9 /devel/vtcl
parent8ec81ff63c63edeff820bab082cf56a6e9155929 (diff)
downloadfreebsd-ports-gnome-75802943a41a8d04904b4f8f73577c1e1f41bd19.tar.gz
freebsd-ports-gnome-75802943a41a8d04904b4f8f73577c1e1f41bd19.tar.zst
freebsd-ports-gnome-75802943a41a8d04904b4f8f73577c1e1f41bd19.zip
- Support LOCALBASE properly (in setting path to custom wish script)
PR: 19470 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'devel/vtcl')
-rw-r--r--devel/vtcl/Makefile23
-rw-r--r--devel/vtcl/files/patch-aa2
2 files changed, 14 insertions, 11 deletions
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 $
##############################################################################