diff options
author | jlam <jlam@pkgsrc.org> | 2002-12-31 14:39:59 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-12-31 14:39:59 +0000 |
commit | 0422b46d80379ab026a422cc2b78ce7123aff069 (patch) | |
tree | 5097b53aec88480597f9fba617e4b12cbeb1e173 /mk/java-vm.mk | |
parent | 3abacf292fac71b17b8fd8bb2e725e3fe22dce3a (diff) | |
download | pkgsrc-0422b46d80379ab026a422cc2b78ce7123aff069.tar.gz |
Allow for strangely-cased USE_JAVA values.
Diffstat (limited to 'mk/java-vm.mk')
-rw-r--r-- | mk/java-vm.mk | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mk/java-vm.mk b/mk/java-vm.mk index f31f719832f..0e56be96d4c 100644 --- a/mk/java-vm.mk +++ b/mk/java-vm.mk @@ -1,4 +1,4 @@ -# $NetBSD: java-vm.mk,v 1.2 2002/12/28 19:53:57 jlam Exp $ +# $NetBSD: java-vm.mk,v 1.3 2002/12/31 14:39:59 jlam Exp $ # # This Makefile fragment handles Java dependencies and make variables, # and is meant to be included by packages that require Java either at @@ -26,7 +26,7 @@ JAVA_VM_MK= # defined .include "../../mk/bsd.prefs.mk" # By default, assume we need the JDK. -USE_JAVA?= # empty +USE_JAVA?= yes .if !empty(USE_JAVA:M[rR][uU][nN]) USE_JAVA= run .endif @@ -34,8 +34,9 @@ USE_JAVA= run PKG_JVM_DEFAULT?= # empty PKG_JVMS_ACCEPTED?= ${_PKG_JVMS} -# This is a list of all of the JVMs that may be used with java.mk. +# 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 +# _PKG_JVMS?= jdk sun-jdk13 sun-jdk14 blackdown-jdk13 kaffe wonka # To be deprecated: if PKG_JVM is explicitly set, then use it as the @@ -71,7 +72,7 @@ _ONLY_FOR_PLATFORMS.jdk= \ _ONLY_FOR_PLATFORMS.blackdown-jdk13= \ NetBSD-*-i386 NetBSD-*-powerpc NetBSD-*-sparc \ Linux-*-i[3-6]86 Linux-*-powerpc Linux-*-sparc -.if ${USE_JAVA} == "run" +.if !empty(USE_JAVA:M[rR][uU][nN]) _ONLY_FOR_PLATFORMS.blackdown-jdk13+= \ NetBSD-*-arm Linux-*-arm .endif @@ -227,7 +228,7 @@ DEPENDS+= ${_JRE_DEPENDENCY} # If we are building Java software, then we need a build-time dependency on # the JDK. # -.if ${USE_JAVA} != "run" +.if empty(USE_JAVA:M[rR][uU][nN]) . if defined(USE_BUILDLINK2) && empty(USE_BUILDLINK2:M[nN][oO]) . include "${_JDK_PKGSRCDIR}/buildlink2.mk" . else |