pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk mk: Add support for oracle-jdk17.
details: https://anonhg.NetBSD.org/pkgsrc/rev/7e3207030d99
branches: trunk
changeset: 389201:7e3207030d99
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Fri Dec 02 10:53:40 2022 +0000
description:
mk: Add support for oracle-jdk17.
diffstat:
mk/java-vm.mk | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diffs (81 lines):
diff -r 760b370bc31a -r 7e3207030d99 mk/java-vm.mk
--- a/mk/java-vm.mk Fri Dec 02 10:49:26 2022 +0000
+++ b/mk/java-vm.mk Fri Dec 02 10:53:40 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: java-vm.mk,v 1.130 2022/05/26 21:29:37 tnn Exp $
+# $NetBSD: java-vm.mk,v 1.131 2022/12/02 10:53:40 jperkin Exp $
#
# This Makefile fragment provides a Java VM, either at build-time or at
# run-time, depending on the package's needs.
@@ -12,7 +12,7 @@
# sun-jdk7 oracle-jdk8
# adoptopenjdk11-bin
# openjdk-bin openjdk11
-# openjdk17
+# openjdk17 oracle-jdk17
# Default value: (platform-dependent)
#
# Package-settable variables:
@@ -75,7 +75,7 @@
# This is a list of all of the JDKs that may be used.
#
# adoptopenjdk11-bin and openjdk-bin do not provide native NetBSD binaries
-_PKG_JVMS.17= openjdk17
+_PKG_JVMS.17= openjdk17 oracle-jdk17
.if ${OPSYS} == "NetBSD"
_PKG_JVMS.9= ${_PKG_JVMS.17} openjdk11 adoptopenjdk11-bin openjdk-bin
.else
@@ -182,6 +182,9 @@
NetBSD-1[0-9].*-x86_64 NetBSD-1[0-9].*-i386 \
NetBSD-9.99.*-aarch64 NetBSD-9.99.*-earmv[67]hf \
NetBSD-1[0-9].*-aarch64 NetBSD-1[0-9].*-earmv[67]hf
+_ONLY_FOR_PLATFORMS.oracle-jdk17= \
+ Darwin-*-aarch64 Darwin-*-x86_64 \
+ Linux-*-aarch64 Linux-*-x86_64
# Set ONLY_FOR_PLATFORM based on accepted JVMs
.for _jvm_ in ${PKG_JVMS_ACCEPTED}
@@ -205,6 +208,7 @@
_JAVA_PKGBASE.openjdk-bin= openjdk-bin
_JAVA_PKGBASE.openjdk11= openjdk11
_JAVA_PKGBASE.openjdk17= openjdk17
+_JAVA_PKGBASE.oracle-jdk17= oracle-jdk17
# The following is copied from the respective JVM Makefiles.
_JAVA_NAME.kaffe= kaffe
@@ -215,6 +219,7 @@
_JAVA_NAME.openjdk-bin= openjdk-bin
_JAVA_NAME.openjdk11= openjdk11
_JAVA_NAME.openjdk17= openjdk17
+_JAVA_NAME.oracle-jdk17= oracle-jdk17
# Mark the acceptable JVMs and check which JVM packages are installed.
.for _jvm_ in ${_PKG_JVMS_ACCEPTED}
@@ -272,6 +277,7 @@
BUILDLINK_API_DEPENDS.openjdk-bin?= openjdk-bin-[0-9]*
BUILDLINK_API_DEPENDS.openjdk11?= openjdk11-[0-9]*
BUILDLINK_API_DEPENDS.openjdk17?= openjdk17-[0-9]*
+BUILDLINK_API_DEPENDS.oracle-jdk17?= oracle-jdk17-[0-9]*
_JRE.kaffe= kaffe
_JRE.openjdk8= openjdk8
@@ -281,6 +287,7 @@
_JRE.openjdk-bin= openjdk-bin
_JRE.openjdk11= openjdk11
_JRE.openjdk17= openjdk17
+_JRE.oracle-jdk17= oracle-jdk17
_JAVA_BASE_CLASSES= classes.zip
@@ -321,6 +328,11 @@
_JRE_PKGSRCDIR= ../../lang/openjdk17
_JAVA_HOME= ${LOCALBASE}/java/openjdk17
UNLIMIT_RESOURCES+= datasize virtualsize
+.elif ${_PKG_JVM} == "oracle-jdk17"
+_JDK_PKGSRCDIR= ../../lang/oracle-jdk17
+_JRE_PKGSRCDIR= ../../lang/oracle-jdk17
+_JAVA_HOME= ${LOCALBASE}/java/oracle-jdk17
+UNLIMIT_RESOURCES+= datasize virtualsize
.endif
# If we are not using Java for building, then we need a run-time dependency on
Home |
Main Index |
Thread Index |
Old Index