freebsd-ports/java/javavmwrapper/Makefile
2004-04-01 13:40:14 +00:00

45 lines
1.1 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= 1.5
CATEGORIES= java
MASTER_SITES= # none
DISTFILES= # none
MAINTAINER= ports@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
JAVAJARDIR= ${PREFIX}/share/java/classes
do-fetch:
@${DO_NADA}
do-configure:
.for _script in ${SCRIPTS}
${SED} -e 's|%%PREFIX%%|${PREFIX}|;' \
-e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|;' \
<${SRC}/${_script}.sh >${WRKDIR}/${_script}.sh
.endfor
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
.include <bsd.port.mk>