freebsd-ports/java/javavmwrapper/Makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

# 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= 3
CATEGORIES= java
MASTER_SITES= # none
DISTFILES= # none
MAINTAINER= glewis@FreeBSD.org
COMMENT= Wrapper script for various Java Virtual Machines
CONFLICTS= kaffe-1.* kaffe-devel-1.*
NO_BUILD= yes
NO_WRKSUBDIR= yes
PKGINSTALL= ${WRKDIR}/pkg-install
SRC= ${.CURDIR}/src
2004-04-01 15:40:14 +02:00
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
do-fetch:
@${DO_NADA}
do-configure:
2004-04-01 15:40:14 +02:00
.for _script in ${SCRIPTS}
${SED} -e 's|%%PREFIX%%|${PREFIX}|;' \
-e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|;' \
${SRC}/${_script}.sh >${WRKDIR}/${_script}.sh
2004-04-01 15:40:14 +02:00
.endfor
${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|;' \
${FILESDIR}/pkg-install.in > ${PKGINSTALL}
do-install:
2004-04-01 15:40:14 +02:00
${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} ${PKGINSTALL} ${PKGNAME} \
POST-INSTALL
.include <bsd.port.mk>