summaryrefslogtreecommitdiff
path: root/mk/java.mk
AgeCommit message (Collapse)AuthorFilesLines
2002-10-14Knock off a TODO item: when generating the internal list of acceptablejlam1-11/+30
JVMs from the package-provided PKG_JVM_ACCEPTED list, filter out those JVMs that aren't available for the current platform. This allows a package to simply list all JVMs that may be used to build it in PKG_JVM_ACCEPTED, regardless of platform issues, instead of having to construct a different PKG_JVM_ACCEPTED based on the platform we are using.
2002-10-14Back out previous...accidentally committed work-in-progress.jlam1-23/+10
2002-10-14Allow for a way to specify which JVMs are acceptable for eachjlam1-10/+23
platform, and use the intersection of these JVMs and the ones listed in PKG_JVMS_ACCEPTED as the JVMS that may really be used. Currently, we assume all of the JVMs are usable by all platforms.
2002-10-14Fix typo (missing leading underscore), and add a currently unreachablejlam1-2/+11
section that errors out if there is no acceptable JVM found.
2002-10-13Initial cut at java.mk that completely replaces the USE_JAVA-handling codejlam1-0/+213
in bsd.pkg.mk. The java.mk Java handling is largely based on the lang/python/pyversion.mk file. There are two new variables: PKG_JVM_DEFAULT is a user-settable variable whose value is the default JVM to use. PKG_JVMS_ACCEPTED is a package-settable list of JVMs that may be used as possible dependencies for the package. Two existing variables have been redefined to be only read-only, though there is some logic to handle legacy /etc/mk.conf which may contain an explicit PKG_JVM=... PKG_JVM is a publicly readable variable containing the name of the JVM we will be using. PKG_JAVA_HOME is a publicly readable variable containing ${JAVA_HOME} for the PKG_JVM described above. To do: Have some way to specify which JVMs are acceptable for each platform, and use the intersection of these JVMs and the ones listed in PKG_JVMS_ACCEPTED as the JVMS that may really be used. Currently, we assume all of the JVMs are usable by all platforms. I'm not sure if Darwin's special stub sun-{jre,jdk}13 packages are usable by buildlink2. This needs to be verified.