aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.java.mk
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2005-10-04 23:55:45 +0800
committerglewis <glewis@FreeBSD.org>2005-10-04 23:55:45 +0800
commit13d210e0e85f51f387d645056fc5695eff4d379c (patch)
treea40a18b7843f5c3fc8cbd640708826882a0358d2 /Mk/bsd.java.mk
parent51246c2304fb6ed34bb8ba196b11bbe5ae681e7b (diff)
downloadfreebsd-ports-gnome-13d210e0e85f51f387d645056fc5695eff4d379c.tar.gz
freebsd-ports-gnome-13d210e0e85f51f387d645056fc5695eff4d379c.tar.zst
freebsd-ports-gnome-13d210e0e85f51f387d645056fc5695eff4d379c.zip
. Prefer jdk15 over jdk14 on amd64 since the latter isn't supported on
that architecture.
Diffstat (limited to 'Mk/bsd.java.mk')
-rw-r--r--Mk/bsd.java.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/bsd.java.mk b/Mk/bsd.java.mk
index e2fecb606dc0..80e070690fb7 100644
--- a/Mk/bsd.java.mk
+++ b/Mk/bsd.java.mk
@@ -217,7 +217,11 @@ _JAVA_OS_linux= Linux
# Enforce preferred Java ports according to OS
. if ${OSVERSION} >= 400000
+. if ${ARCH} == "amd64"
+_JAVA_PREFERRED_PORTS+= JAVA_PORT_NATIVE_BSDJAVA_JDK_1_5
+. else
_JAVA_PREFERRED_PORTS+= JAVA_PORT_NATIVE_BSDJAVA_JDK_1_4
+. endif
. else
_JAVA_PREFERRED_PORTS+= JAVA_PORT_NATIVE_BSDJAVA_JDK_1_1
. endif