summaryrefslogtreecommitdiff
path: root/java/bootstrap-openjdk11/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'java/bootstrap-openjdk11/Makefile')
-rw-r--r--java/bootstrap-openjdk11/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/java/bootstrap-openjdk11/Makefile b/java/bootstrap-openjdk11/Makefile
index bf61d4a86b36..bdde6df54b57 100644
--- a/java/bootstrap-openjdk11/Makefile
+++ b/java/bootstrap-openjdk11/Makefile
@@ -27,6 +27,17 @@ JDK_ARCH= ${ARCH}
INSTALLDIR= ${STAGEDIR}${PREFIX}/${JDK_ROOT}
+.include <bsd.port.pre.mk>
+
+# Support aarch64 on FreeBSD 12 and up
+.if ${OSVERSION} >= 1200500
+ONLY_FOR_ARCHS+=aarch64
+.endif
+
+.if ${ARCH} == aarch64
+DISTNAME= ${JDK_PORT}-${JDK_ARCH}-12-${PORTVERSION}
+.endif
+
post-extract:
-${MV} ${WRKSRC}/include/bsd ${WRKSRC}/include/freebsd
@@ -35,4 +46,4 @@ do-install:
@cd ${WRKSRC} && ${COPYTREE_BIN} bin ${INSTALLDIR}
@${CHMOD} a+x ${INSTALLDIR}/lib/jspawnhelper
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>