summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2003-02-07 01:14:19 +0000
committerdmcmahill <dmcmahill>2003-02-07 01:14:19 +0000
commit42bc2f150b97f6760b192c3caa9a8339d8748ed4 (patch)
treee3715b901796980e48892c0b189ed0b7e82f3db1 /mk
parent73a734a29ea54ca67289ac1804a25d8b5eff7fa7 (diff)
downloadpkgsrc-42bc2f150b97f6760b192c3caa9a8339d8748ed4.tar.gz
protect one more inclusion of ${_JDK_PKGSRCDIR}/buildlink2.mk with
a check to make sure _JDK_PKGSRCDIR exists. Now one can create README.html files for all java pkgs on a system without a JVM.
Diffstat (limited to 'mk')
-rw-r--r--mk/java-vm.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/java-vm.mk b/mk/java-vm.mk
index 8fc7eb9fdd7..9ef7ec5782e 100644
--- a/mk/java-vm.mk
+++ b/mk/java-vm.mk
@@ -1,4 +1,4 @@
-# $NetBSD: java-vm.mk,v 1.10 2003/02/06 23:44:07 dmcmahill Exp $
+# $NetBSD: java-vm.mk,v 1.11 2003/02/07 01:14:19 dmcmahill Exp $
#
# This Makefile fragment handles Java dependencies and make variables,
# and is meant to be included by packages that require Java either at
@@ -248,7 +248,9 @@ DEPENDS+= ${_JRE_DEPENDENCY}
#
.if empty(USE_JAVA:M[rR][uU][nN])
. if defined(USE_BUILDLINK2) && empty(USE_BUILDLINK2:M[nN][oO])
-. include "${_JDK_PKGSRCDIR}/buildlink2.mk"
+. if defined(_JDK_PKGSRCDIR)
+. include "${_JDK_PKGSRCDIR}/buildlink2.mk"
+. endif
. else
BUILD_DEPENDS+= ${_JDK_DEPENDENCY}
. endif