summaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2005-02-27 23:49:33 +0000
committerHerve Quiroz <hq@FreeBSD.org>2005-02-27 23:49:33 +0000
commit466ef83db31a04d062699c4ced355e6f4b6acae8 (patch)
treedcb3f2780109155b73dd3587acc196e577900d01 /Mk
parentUpdate to 1.1.4. (diff)
Add JAVA_VERSION, JAVA_OS and JAVA_VENDOR to SUB_LIST.
NOTE: these are only added if the related variables are defined by the port. This should ease the configuration of launcher shell scripts used for Java application ports, when they are using javavmwrapper to invoke a JVM. From now, a simple launcher that suits most of the Java application ports can be writen using the following scheme: #!/bin/sh JAVA_VERSION="%%JAVA_VERSION%%" \ "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/myport.jar" "$@" As mentioned above, this is of course only correct provided that the port defines JAVA_VERSION. Approved by: glewis (co-maintainer)
Notes
Notes: svn path=/head/; revision=129936
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.java.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/Mk/bsd.java.mk b/Mk/bsd.java.mk
index 24a247c1d131..6fc61b778b93 100644
--- a/Mk/bsd.java.mk
+++ b/Mk/bsd.java.mk
@@ -157,6 +157,15 @@ PLIST_SUB+= JAVASHAREDIR="${JAVASHAREDIR:S,^${PREFIX}/,,}" \
SUB_LIST+= JAVASHAREDIR="${JAVASHAREDIR}" \
JAVAJARDIR="${JAVAJARDIR}" \
JAVALIBDIR="${JAVALIBDIR}"
+. if defined(JAVA_VERSION)
+SUB_LIST+= JAVA_VERSION="${JAVA_VERSION}"
+. endif
+. if defined(JAVA_VENDOR)
+SUB_LIST+= JAVA_VENDOR="${JAVA_VENDOR}"
+. endif
+. if defined(JAVA_OS)
+SUB_LIST+= JAVA_OS="${JAVA_OS}"
+. endif
# The complete list of Java versions, os and vendors supported.
__JAVA_VERSION_LIST= 1.1 1.2 1.3 1.4 1.5