diff options
author | des <des@FreeBSD.org> | 2014-02-15 17:20:53 +0800 |
---|---|---|
committer | des <des@FreeBSD.org> | 2014-02-15 17:20:53 +0800 |
commit | 4c99e7b30f063370d30c5e0974bf4835c1f97ffd (patch) | |
tree | 2b5945d4acc52fe5aa01eb1240e92064c2fbf8dc /Mk | |
parent | 80f42a66ac81f0af9d52e745b88e2c91e9556736 (diff) | |
download | freebsd-ports-gnome-4c99e7b30f063370d30c5e0974bf4835c1f97ffd.tar.gz freebsd-ports-gnome-4c99e7b30f063370d30c5e0974bf4835c1f97ffd.tar.zst freebsd-ports-gnome-4c99e7b30f063370d30c5e0974bf4835c1f97ffd.zip |
Add java_CMD. Although Java programs don't use shebangs, it is sometimes
useful to have a centrally located list of interpreters for other purposes.
Approved by: portmgr (mat)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/shebangfix.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Mk/Uses/shebangfix.mk b/Mk/Uses/shebangfix.mk index f125cef82410..d5f781984b7f 100644 --- a/Mk/Uses/shebangfix.mk +++ b/Mk/Uses/shebangfix.mk @@ -32,6 +32,8 @@ _INCLUDE_USES_SHEBANGFIX_MK= yes bash_OLD_CMD?= /bin/bash bash_CMD?= ${LOCALBASE}/bin/bash +java_OLD_CMD?= /usr/bin/java +java_CMD?= ${LOCALBASE}/bin/java perl_OLD_CMD?= /usr/bin/perl perl_CMD?= ${LOCALBASE}/bin/perl python_OLD_CMD?= /usr/bin/python @@ -41,7 +43,7 @@ ruby_CMD?= ${LOCALBASE}/bin/ruby php_OLD_CMD?= /usr/bin/php php_CMD?= ${LOCALBASE}/bin/php -SHEBANG_LANG+= bash perl python ruby php +SHEBANG_LANG+= bash java perl python ruby php .for lang in ${SHEBANG_LANG} .if !defined(${lang}_CMD) |