From 466ef83db31a04d062699c4ced355e6f4b6acae8 Mon Sep 17 00:00:00 2001 From: Herve Quiroz Date: Sun, 27 Feb 2005 23:49:33 +0000 Subject: 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) --- Mk/bsd.java.mk | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Mk/bsd.java.mk') 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 -- cgit v1.2.3