aboutsummaryrefslogtreecommitdiff
path: root/java/jdk12/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'java/jdk12/Makefile')
-rw-r--r--java/jdk12/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/java/jdk12/Makefile b/java/jdk12/Makefile
index 5b5fef45f83f..ba416b27e196 100644
--- a/java/jdk12/Makefile
+++ b/java/jdk12/Makefile
@@ -51,7 +51,8 @@ MAKE_ENV= HAVE_DPS="no" \
_JDK11DIR="${JDK11DIR}" \
SYS_CFLAGS="${CFLAGS}" \
CLASSPATH="" \
- JAVA_COMPILER=""
+ JAVA_COMPILER="" \
+ _JAVA_BOOTSTRAP_VERSION="1.2.2"
ALL_TARGET= release-images
PATCH_CMD= ${PATCH} -p1 <
PLIST_SUB+= JDK_VERSION=${JDK_VERSION}
@@ -70,11 +71,14 @@ PLIST_SUB+= DEBUG:=""
.include <bsd.port.pre.mk>
.if !defined(JDK12DIR)
-.if defined(WITH_LINUX_BOOTSTRAP) || !exists(${PREFIX}/jdk${JDK_VERSION}/bin/javac)
+.if defined(WITH_LINUX_BOOTSTRAP)
JDK12DIR= ${LOCALBASE}/linux-blackdown-jdk${JDK_VERSION}
BUILD_DEPENDS+= ${JDK12DIR}/bin/javac:${PORTSDIR}/java/linux-blackdown-jdk12
-.else
+.elif exists(${LOCALBASE}/jdk${JDK_VERSION}/bin/javac)
JDK12DIR= ${LOCALBASE}/jdk${JDK_VERSION}
+.else
+JDK12DIR= ${LOCALBASE}/jbootstrap
+BUILD_DEPENDS+= ${JDK12DIR}/bin/javac:${PORTSDIR}/java/jbootstrap
.endif
.endif