Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@netbsd.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 10/13/2002 12:29:13
Module Name: pkgsrc
Committed By: jlam
Date: Sun Oct 13 09:29:13 UTC 2002
Added Files:
pkgsrc/mk: java.mk
Log Message:
Initial cut at java.mk that completely replaces the USE_JAVA-handling code
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.
To generate a diff of this commit:
cvs rdiff -r0 -r1.1 pkgsrc/mk/java.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.