summaryrefslogtreecommitdiff
path: root/mk/java-vm.mk
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-05-05 16:47:12 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-05-05 16:47:12 +0000
commit4d0e57d92e08855a4b7f8769148221a32a077b27 (patch)
treeafac2433a42eab17df5b1fb15dfdf8a703f6de60 /mk/java-vm.mk
parent797f9fdfb7e00e41061f7b88957ab228a2a265f5 (diff)
downloadpkgsrc-4d0e57d92e08855a4b7f8769148221a32a077b27.tar.gz
Make sure buildlink3 file exists before trying to use it.
Diffstat (limited to 'mk/java-vm.mk')
-rw-r--r--mk/java-vm.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/java-vm.mk b/mk/java-vm.mk
index 0fe16fd98fd..ef60e49d791 100644
--- a/mk/java-vm.mk
+++ b/mk/java-vm.mk
@@ -1,4 +1,4 @@
-# $NetBSD: java-vm.mk,v 1.24 2004/05/02 20:30:44 xtraeme Exp $
+# $NetBSD: java-vm.mk,v 1.25 2004/05/05 16:47:12 xtraeme Exp $
#
# This Makefile fragment handles Java dependencies and make variables,
# and is meant to be included by packages that require Java either at
@@ -262,7 +262,9 @@ EVAL_PREFIX+= _JAVA_HOME=${_JAVA_PKGBASE.${_PKG_JVM}}
. if defined(USE_BUILDLINK2) && empty(USE_BUILDLINK2:M[nN][oO])
. include "${_JRE_PKGSRCDIR}/buildlink2.mk"
. elif defined(USE_BUILDLINK3) && empty(USE_BUILDLINK3:M[Nn][Oo])
-. include "${_JRE_PKGSRCDIR}/buildlink3.mk"
+. if exists(${_JRE_PKGSRCDIR}/buildlink3.mk)
+. include "${_JRE_PKGSRCDIR}/buildlink3.mk"
+. endif
. else
DEPENDS+= ${_JRE_DEPENDENCY}
. endif
@@ -276,7 +278,9 @@ DEPENDS+= ${_JRE_DEPENDENCY}
. if defined(USE_BUILDLINK2) && empty(USE_BUILDLINK2:M[nN][oO])
. include "${_JDK_PKGSRCDIR}/buildlink2.mk"
. elif defined(USE_BUILDLINK3) && empty(USE_BUILDLINK3:M[Nn][Oo])
-. include "${_JDK_PKGSRCDIR}/buildlink3.mk"
+. if exists(${_JDK_PKGSRCDIR}/buildlink3.mk)
+. include "${_JDK_PKGSRCDIR}/buildlink3.mk"
+. endif
. else
BUILD_DEPENDS+= ${_JDK_DEPENDENCY}
. endif