aboutsummaryrefslogtreecommitdiffstats
path: root/java/javavmwrapper/Makefile
blob: 6f69805e8ca5dc15f92e39d11348728ba29ca098 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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
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>