forked from Lainports/freebsd-ports
utilities. Unfortunately this overrides any PATH that may have been set by the user and hence affects the ability of java to execute external programmes. So, save the PATH before setting it and then restore it immediately before executing java. . Bump PORTREVISION for this fix. Reported by: Christian Laursen <xi@borderworlds.dk>
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# New ports collection makefile for: javavmwrapper
|
|
# Date created: 10 June 2000
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# This port is self contained in the src directory.
|
|
#
|
|
|
|
PORTNAME= javavmwrapper
|
|
PORTVERSION= 2.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= java
|
|
MASTER_SITES= # none
|
|
DISTFILES= # none
|
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
|
COMMENT= Wrapper script for various Java Virtual Machines
|
|
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
SRC= ${.CURDIR}/src
|
|
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}
|
|
|
|
do-configure:
|
|
.for _script in ${SCRIPTS}
|
|
${SED} -e 's|%%PREFIX%%|${PREFIX}|;' \
|
|
-e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|;' \
|
|
${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>
|