summaryrefslogtreecommitdiff
path: root/java/javavmwrapper/Makefile
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2004-11-11 19:17:37 +0000
committerGreg Lewis <glewis@FreeBSD.org>2004-11-11 19:17:37 +0000
commit280df4e4cedc6b10cf8c1175ee494973c9160f98 (patch)
treea58a71a5a69e746e37ea04a1da0ca92adb314d26 /java/javavmwrapper/Makefile
parentUpdate to 0.2.0 (diff)
. Usher in javavmwrapper 2.0, a rewrite of the wrapper scripts designed to
allow the simple use of multiple VMs. Brief detail of the main changes: . When a VM is registered, symbolic links for its executables are created in ${LOCALBASE}/bin. This allows people to just type 'java', 'javac', etc. without having to add the VM installation directory to their PATH. . The actual 'java' that is executed via one of these symlinks is determined by the order of the (sorted) configuration file ${LOCALBASE}/etc/javavms and by the environment variables JAVA_VERSION, JAVA_OS and JAVA_VENDOR which function to select a VM as they do in the ports framework. . There is a new command, checkvms, to sanity check the configuration and symlinks. . The "javavm" executable is currently retained in its original capacity as a synonym for Java for backward compatibility. However, its use is deprecated. . Temporarily set MAINTAINER to myself to make monitoring any initial bug reports easier. The intent is to convert it to java@ at a later date. This is built on the ideas of znerd, hq and Shelton C. Johnson Jr., with hq and Shelton contributing code and reviews. PR: 27079, 39080 Reviewed by: hq, Shelton C. Johnson Jr. <shelton_c_j@yahoo.com>
Notes
Notes: svn path=/head/; revision=121406
Diffstat (limited to 'java/javavmwrapper/Makefile')
-rw-r--r--java/javavmwrapper/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/java/javavmwrapper/Makefile b/java/javavmwrapper/Makefile
index 780013538979..6f69805e8ca5 100644
--- a/java/javavmwrapper/Makefile
+++ b/java/javavmwrapper/Makefile
@@ -8,12 +8,12 @@
#
PORTNAME= javavmwrapper
-PORTVERSION= 1.5
+PORTVERSION= 2.0
CATEGORIES= java
MASTER_SITES= # none
DISTFILES= # none
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= glewis@FreeBSD.org
COMMENT= Wrapper script for various Java Virtual Machines
NO_BUILD= yes
@@ -24,6 +24,7 @@ SCRIPTS= classpath javavmwrapper
# This is normally defined by bsd.java.mk when USE_JAVA is defined, but
# we can't do that here since it would result in a circular dependency
JAVALIBDIR= ${LOCALBASE}/share/java/classes
+PKGINSTALL= ${WRKDIR}/pkg-install
do-fetch:
@${DO_NADA}
@@ -32,13 +33,19 @@ do-configure:
.for _script in ${SCRIPTS}
${SED} -e 's|%%PREFIX%%|${PREFIX}|;' \
-e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|;' \
- <${SRC}/${_script}.sh >${WRKDIR}/${_script}.sh
+ ${SRC}/${_script}.sh >${WRKDIR}/${_script}.sh
.endfor
+ ${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|;' pkg-install > ${PKGINSTALL}
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/classpath.sh ${PREFIX}/bin/classpath
${INSTALL_SCRIPT} ${WRKDIR}/javavmwrapper.sh ${PREFIX}/bin/javavm
${LN} -sf ${PREFIX}/bin/javavm ${PREFIX}/bin/registervm
${LN} -sf ${PREFIX}/bin/javavm ${PREFIX}/bin/unregistervm
+ ${LN} -sf ${PREFIX}/bin/javavm ${PREFIX}/bin/checkvms
+
+post-install:
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} \
+ POST-INSTALL
.include <bsd.port.mk>