aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
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 /japanese
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 'japanese')
-rw-r--r--japanese/xshodou/Makefile3
-rw-r--r--japanese/xshodou/files/patch-ab2
2 files changed, 4 insertions, 1 deletions
diff --git a/japanese/xshodou/Makefile b/japanese/xshodou/Makefile
index da1b7ce8e2b1..7e8a626965f2 100644
--- a/japanese/xshodou/Makefile
+++ b/japanese/xshodou/Makefile
@@ -18,4 +18,7 @@ USE_X_PREFIX= yes
MAN1= xshodou.1
MANCOMPRESSED= yes
+post-patch:
+ @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/xshodou
+
.include <bsd.port.mk>
diff --git a/japanese/xshodou/files/patch-ab b/japanese/xshodou/files/patch-ab
index a527a6dc19af..46036e6bd264 100644
--- a/japanese/xshodou/files/patch-ab
+++ b/japanese/xshodou/files/patch-ab
@@ -2,7 +2,7 @@
+++ xshodou Mon Jan 11 15:08:33 1999
@@ -1,4 +1,4 @@
-#!/usr/local/bin/wish
-+#!/usr/local/bin/wish8.0
++#!%%LOCALBASE%%/bin/wish8.0
#
# XShodou version 1.11 for X based on Tcl/Tk.
# Programed by Sakai Hiroaki. (E-Mail:sakai@miya.ee.kagu.sut.ac.jp)