summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-10-14 07:25:04 +0000
committerjlam <jlam@pkgsrc.org>2002-10-14 07:25:04 +0000
commitc6eef55b94ff38ed6de17ba3f40b0e24aa00a666 (patch)
tree12b32ad1a7d275679b995b24ebe264bb0685154d /mk
parent6dbf6b77720483c1d27c3ee2ac6398a234387054 (diff)
downloadpkgsrc-c6eef55b94ff38ed6de17ba3f40b0e24aa00a666.tar.gz
Fix typo (missing leading underscore), and add a currently unreachable
section that errors out if there is no acceptable JVM found.
Diffstat (limited to 'mk')
-rw-r--r--mk/java.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/mk/java.mk b/mk/java.mk
index 369aac1b13d..d0e57fdd866 100644
--- a/mk/java.mk
+++ b/mk/java.mk
@@ -1,4 +1,4 @@
-# $NetBSD: java.mk,v 1.1 2002/10/13 09:29:12 jlam Exp $
+# $NetBSD: java.mk,v 1.2 2002/10/14 07:25:04 jlam Exp $
#
# This Makefile fragment handles Java dependencies and make variables,
# and is meant to be included by packages that require Java either at
@@ -133,7 +133,16 @@ _PKG_JVM= ${_PKG_JVM_DEFAULT}
# ...otherwise, just use the first accepted JVM.
#
.if !defined(_PKG_JVM)
-_PKG_JVM= ${PKG_JVM_FIRSTACCEPTED}
+. if defined(_PKG_JVM_FIRSTACCEPTED)
+_PKG_JVM= ${_PKG_JVM_FIRSTACCEPTED}
+. endif
+.endif
+#
+# If there are no acceptable JVMs, then generate an error.
+#
+.if !defined(_PKG_JVM)
+# force an error
+ error: no acceptable JVM found
.endif
BUILDLINK_DEPENDS.jdk?= jdk-[0-9]*