aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.java.mk
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2002-06-12 20:51:19 +0000
committerErnst de Haan <znerd@FreeBSD.org>2002-06-12 20:51:19 +0000
commit362766fc48bb6b26473c47a02d5dc0380c5dacf6 (patch)
tree31240f38336d8012519e48c72a40bec165ebf3cb /Mk/bsd.java.mk
parenta0291600cc6f18ac2e5a35cdbd4331ccd9ca1720 (diff)
downloadports-362766fc48bb6b26473c47a02d5dc0380c5dacf6.tar.gz
ports-362766fc48bb6b26473c47a02d5dc0380c5dacf6.zip
Notes
Diffstat (limited to 'Mk/bsd.java.mk')
-rw-r--r--Mk/bsd.java.mk80
1 files changed, 62 insertions, 18 deletions
diff --git a/Mk/bsd.java.mk b/Mk/bsd.java.mk
index b1feaccb65c7..f97bba0926ae 100644
--- a/Mk/bsd.java.mk
+++ b/Mk/bsd.java.mk
@@ -21,12 +21,13 @@ Java_Include_MAINTAINER= znerd@FreeBSD.org
# There are the following stages:
#
# Stage 1: Define constants
-# Stage 2: Deal with JAVA_HOME if it is already set
-# Stage 3: Determine which JDK ports are installed
-# Stage 4: Decide the exact JDK version if only a minimum version is specified
-# Stage 5: Decide the exact JDK to use
-# Stage 6: Define all settings for the port to use
-# Stage 7: Add any dependencies if necessary
+# Stage 2: Check the local ports tree
+# Stage 3: Deal with JAVA_HOME if it is already set
+# Stage 4: Determine which JDK ports are installed
+# Stage 5: Decide the exact JDK version if only a minimum version is specified
+# Stage 6: Decide the exact JDK to use
+# Stage 7: Define all settings for the port to use
+# Stage 8: Add any dependencies if necessary
#
. if defined(USE_JAVA)
@@ -51,15 +52,15 @@ _JAVA_HOME_SUN_LINUX_1_3= ${LOCALBASE}/linux-jdk1.3.1
_JAVA_HOME_SUN_LINUX_1_4= ${LOCALBASE}/linux-jdk1.4.0
# Set the JDK ports for all recognized JDK's
-_JAVA_PORT_FREEBSD_1_1= java/jdk
-_JAVA_PORT_FREEBSD_1_2= java/jdk12-beta
+_JAVA_PORT_FREEBSD_1_1= java/jdk11
+_JAVA_PORT_FREEBSD_1_2= java/jdk12
_JAVA_PORT_FREEBSD_1_3= java/jdk13
-_JAVA_PORT_BLACKDOWN_LINUX_1_2= java/linux-jdk
-_JAVA_PORT_SUN_LINUX_1_2= java/linux-sun-jdk12
+_JAVA_PORT_BLACKDOWN_LINUX_1_2= java/linux-blackdown-jdk12
_JAVA_PORT_BLACKDOWN_LINUX_1_3= java/linux-blackdown-jdk13
_JAVA_PORT_IBM_LINUX_1_3= java/linux-ibm-jdk13
-_JAVA_PORT_SUN_LINUX_1_3= java/linux-jdk13
-_JAVA_PORT_SUN_LINUX_1_4= java/linux-jdk14
+_JAVA_PORT_SUN_LINUX_1_2= java/linux-sun-jdk12
+_JAVA_PORT_SUN_LINUX_1_3= java/linux-sun-jdk13
+_JAVA_PORT_SUN_LINUX_1_4= java/linux-sun-jdk14
# Set the name of the file that indicates that a JDK is indeed installed, as a
# relative path within the JAVA_HOME directory.
@@ -71,7 +72,50 @@ _DEPEND_JIKES= ${_JIKES_PATH}:${PORTSDIR}/java/jikes
#-----------------------------------------------------------------------------
-# Stage 2: Determine which JDK ports are installed
+# Stage 2: Check the local ports tree
+#
+
+. if !exists(${PORTSDIR}/${_JAVA_PORT_FREEBSD_1_1}/Makefile)
+.BEGIN:
+ @${ECHO} "${Java_Include}: Unable to find JDK 1.1 for FreeBSD port at ${_JAVA_PORT_FREEBSD_1_1} Please update your ports tree.";
+ @${FALSE}
+. elif !exists(${PORTSDIR}/${_JAVA_PORT_FREEBSD_1_2}/Makefile)
+.BEGIN:
+ @${ECHO} "${Java_Include}: Unable to find JDK 1.2 for FreeBSD port at ${_JAVA_PORT_FREEBSD_1_2} Please update your ports tree.";
+ @${FALSE}
+. elif !exists(${PORTSDIR}/${_JAVA_PORT_FREEBSD_1_3}/Makefile)
+.BEGIN:
+ @${ECHO} "${Java_Include}: Unable to find JDK 1.3 for FreeBSD port at ${_JAVA_PORT_FREEBSD_1_3} Please update your ports tree.";
+ @${FALSE}
+. elif !exists(${PORTSDIR}/${_JAVA_PORT_BLACKDOWN_LINUX_1_2}/Makefile)
+.BEGIN:
+ @${ECHO} "${Java_Include}: Unable to find Blackdown JDK 1.2 for Linux port at ${_JAVA_PORT_BLACKDOWN_LINUX_1_2} Please update your ports tree.";
+ @${FALSE}
+. elif !exists(${PORTSDIR}/${_JAVA_PORT_BLACKDOWN_LINUX_1_3}/Makefile)
+.BEGIN:
+ @${ECHO} "${Java_Include}: Unable to find Blackdown JDK 1.3 for Linux port at ${_JAVA_PORT_BLACKDOWN_LINUX_1_3} Please update your ports tree.";
+ @${FALSE}
+. elif !exists(${PORTSDIR}/${_JAVA_PORT_IBM_LINUX_1_3}/Makefile)
+.BEGIN:
+ @${ECHO} "${Java_Include}: Unable to find IBM JDK 1.3 for Linux port at ${_JAVA_PORT_IBM_LINUX_1_3} Please update your ports tree.";
+ @${FALSE}
+. elif !exists(${PORTSDIR}/${_JAVA_PORT_SUN_LINUX_1_2}/Makefile)
+.BEGIN:
+ @${ECHO} "${Java_Include}: Unable to find Sun JDK 1.2 for Linux port at ${_JAVA_PORT_SUN_LINUX_1_2} Please update your ports tree.";
+ @${FALSE}
+. elif !exists(${PORTSDIR}/${_JAVA_PORT_SUN_LINUX_1_3}/Makefile)
+.BEGIN:
+ @${ECHO} "${Java_Include}: Unable to find Sun JDK 1.3 for Linux port at ${_JAVA_PORT_SUN_LINUX_1_3} Please update your ports tree.";
+ @${FALSE}
+. elif !exists(${PORTSDIR}/${_JAVA_PORT_SUN_LINUX_1_4}/Makefile)
+.BEGIN:
+ @${ECHO} "${Java_Include}: Unable to find Sun JDK 1.4 for Linux port at ${_JAVA_PORT_SUN_LINUX_1_4} Please update your ports tree.";
+ @${FALSE}
+. endif
+
+
+#-----------------------------------------------------------------------------
+# Stage 3: Determine which JDK ports are installed
#
. undef HAVE_JAVA_FREEBSD_1_1
@@ -114,7 +158,7 @@ HAVE_JAVA_SUN_LINUX_1_4= YES
#-----------------------------------------------------------------------------
-# Stage 3: Deal with JAVA_HOME if it is already set
+# Stage 4: Deal with JAVA_HOME if it is already set
#
# See if JAVA_HOME points to a known JDK. If it does, then undefine JAVA_HOME
@@ -148,7 +192,7 @@ JAVA_HOME= ${_JAVA_HOME}
#-----------------------------------------------------------------------------
-# Stage 4: Decide the exact JDK version if only a minimum version is specified
+# Stage 5: Decide the exact JDK version if only a minimum version is specified
#
# If USE_JAVA is 1.1+, 1.2+, 1.3+ or 1.4+, then set it to 1.1, 1.2, 1.3 or
@@ -220,7 +264,7 @@ USE_JAVA= 1.4
#-----------------------------------------------------------------------------
-# Stage 5: Decide the exact JDK to use
+# Stage 6: Decide the exact JDK to use
#
# Apply different settings for different values of USE_JAVA.
@@ -332,7 +376,7 @@ JAVA_PORT= ${_JAVA_PORT_SUN_LINUX_1_4}
#-----------------------------------------------------------------------------
-# Stage 6: Define all settings for the port to use
+# Stage 7: Define all settings for the port to use
# At this stage both JAVA_HOME and JAVA_PORT are definitely given a value.
@@ -398,7 +442,7 @@ JAVA_CLASSES= ${JAVA_HOME}/jre/lib/rt.jar
#-----------------------------------------------------------------------------
-# Stage 7: Add any dependencies if necessary
+# Stage 8: Add any dependencies if necessary
# Possibly add Jikes to the dependencies
. if defined(JAVAC) && (${JAVAC} == ${_JIKES_PATH})