aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2014-02-18 00:38:14 +0800
committergahr <gahr@FreeBSD.org>2014-02-18 00:38:14 +0800
commit8d524b2650f86b77c95315dcd055ef80b6c80b14 (patch)
tree1bdaaf34961a755d7c41c28ff76b8dae381360bb /Mk/Uses
parent994a031a8493be76bdc4a492c09b91ca93571bd0 (diff)
downloadfreebsd-ports-gnome-8d524b2650f86b77c95315dcd055ef80b6c80b14.tar.gz
freebsd-ports-gnome-8d524b2650f86b77c95315dcd055ef80b6c80b14.tar.zst
freebsd-ports-gnome-8d524b2650f86b77c95315dcd055ef80b6c80b14.zip
- Add 'tcl' and 'tk' support in SHEBANG_LANG
By default, /usr/bin/tclsh and /usr/bin/wish will be substituted with ${TCLSH} and ${WISH}, respectively. This only works when USES contains 'tcl' or 'tk'. Approved by: portmgr (bapt)
Diffstat (limited to 'Mk/Uses')
-rw-r--r--Mk/Uses/shebangfix.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/Mk/Uses/shebangfix.mk b/Mk/Uses/shebangfix.mk
index d5f781984b7f..9f442cba8fb0 100644
--- a/Mk/Uses/shebangfix.mk
+++ b/Mk/Uses/shebangfix.mk
@@ -36,14 +36,18 @@ java_OLD_CMD?= /usr/bin/java
java_CMD?= ${LOCALBASE}/bin/java
perl_OLD_CMD?= /usr/bin/perl
perl_CMD?= ${LOCALBASE}/bin/perl
+php_OLD_CMD?= /usr/bin/php
+php_CMD?= ${LOCALBASE}/bin/php
python_OLD_CMD?= /usr/bin/python
python_CMD?= ${LOCALBASE}/bin/python
ruby_OLD_CMD?= /usr/bin/ruby
ruby_CMD?= ${LOCALBASE}/bin/ruby
-php_OLD_CMD?= /usr/bin/php
-php_CMD?= ${LOCALBASE}/bin/php
+tcl_OLD_CMD?= /usr/bin/tclsh
+tcl_CMD?= ${TCLSH}
+tk_OLD_CMD?= /usr/bin/wish
+tk_CMD?= ${WISH}
-SHEBANG_LANG+= bash java perl python ruby php
+SHEBANG_LANG+= bash java perl php python ruby tcl tk
.for lang in ${SHEBANG_LANG}
.if !defined(${lang}_CMD)