diff options
author | hq <hq@FreeBSD.org> | 2005-02-28 07:49:33 +0800 |
---|---|---|
committer | hq <hq@FreeBSD.org> | 2005-02-28 07:49:33 +0800 |
commit | 518ec72dc353c6125a2e40a900cd66c14d908bcb (patch) | |
tree | 835ef9f3bdde6668b232e632c54376ee44703093 /Mk | |
parent | 11c069f26353f9419ce74488371b24ad65a77652 (diff) | |
download | freebsd-ports-graphics-518ec72dc353c6125a2e40a900cd66c14d908bcb.tar.gz freebsd-ports-graphics-518ec72dc353c6125a2e40a900cd66c14d908bcb.tar.zst freebsd-ports-graphics-518ec72dc353c6125a2e40a900cd66c14d908bcb.zip |
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)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.java.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Mk/bsd.java.mk b/Mk/bsd.java.mk index 24a247c1d13..6fc61b778b9 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 |