summaryrefslogtreecommitdiff
path: root/mk/java-vm.mk
diff options
context:
space:
mode:
authorjlam <jlam>2002-12-31 14:42:21 +0000
committerjlam <jlam>2002-12-31 14:42:21 +0000
commitbe4c36ab61d2dcb37d169748ee72ec7e090684e7 (patch)
treef165151b7eafd7cb19c166755529494fc43e3f18 /mk/java-vm.mk
parenta839eb3462c1b8f4a84c11b3754235c00366cfd4 (diff)
downloadpkgsrc-be4c36ab61d2dcb37d169748ee72ec7e090684e7.tar.gz
USE_JAVA2 is used to note that the package requires a Java2 implementation.
It's undefined by default, but may be set to "yes".
Diffstat (limited to 'mk/java-vm.mk')
-rw-r--r--mk/java-vm.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/mk/java-vm.mk b/mk/java-vm.mk
index 0e56be96d4c..08bb53251cb 100644
--- a/mk/java-vm.mk
+++ b/mk/java-vm.mk
@@ -1,4 +1,4 @@
-# $NetBSD: java-vm.mk,v 1.3 2002/12/31 14:39:59 jlam Exp $
+# $NetBSD: java-vm.mk,v 1.4 2002/12/31 14:42:21 jlam Exp $
#
# This Makefile fragment handles Java dependencies and make variables,
# and is meant to be included by packages that require Java either at
@@ -12,7 +12,10 @@
# must explicitly set USE_JAVA=run to _not_ add the build dependency
# on the JDK;
#
-# There are two variables used to tweak the JVM selection:
+# There are three variables used to tweak the JVM selection:
+#
+# USE_JAVA2 is used to note that the package requires a Java2 implementation.
+# It's undefined by default, but may be set to "yes".
#
# PKG_JVM_DEFAULT is a user-settable variable whose value is the default
# JVM to use.
@@ -37,7 +40,11 @@ PKG_JVMS_ACCEPTED?= ${_PKG_JVMS}
# This is a list of all of the JVMs that may be used with java-vm.mk.
# Note: The wonka configuration is still under development
#
+.if defined(USE_JAVA2) && !empty(USE_JAVA2:M[yY][eE][sS])
+_PKG_JVMS?= sun-jdk13 sun-jdk14 blackdown-jdk13 wonka
+.else
_PKG_JVMS?= jdk sun-jdk13 sun-jdk14 blackdown-jdk13 kaffe wonka
+.endif
# To be deprecated: if PKG_JVM is explicitly set, then use it as the
# default JVM. Note that this has lower precedence than PKG_JVM_DEFAULT.