blob: 79c84b2f71ded5a269e2373b01fca89fcf8778b4 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# 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.3.5
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
MAN1= checkvms.1 javavm.1 manvm.1 registervm.1 unregistervm.1
MAN5= javavm_opts.conf.5 javavms.5
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
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}|;' \
${FILESDIR}/pkg-install.in > ${PKGINSTALL}
.for _man in checkvms.1 javavm.1 manvm.1 registervm.1 ${MAN5}
${SED} -e 's|%%PREFIX%%|${PREFIX}|;' \
-e 's|%%LOCALBASE%%|${LOCALBASE}|;' \
-e 's|%%PORTSDIR%%|${PORTSDIR}|;' \
${SRC}/${_man} > ${WRKDIR}/${_man}
.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
${LN} -sf ${PREFIX}/bin/javavm ${PREFIX}/bin/checkvms
${LN} -sf ${PREFIX}/bin/javavm ${PREFIX}/bin/manvm
.for _man in checkvms.1 javavm.1 manvm.1 registervm.1
${INSTALL_MAN} ${WRKDIR}/${_man} ${MAN1PREFIX}/man/man1
.endfor
${INSTALL_MAN} ${WRKDIR}/registervm.1 \
${MAN1PREFIX}/man/man1/unregistervm.1
.for _man in ${MAN5}
${INSTALL_MAN} ${WRKDIR}/${_man} ${MAN5PREFIX}/man/man5
.endfor
${INSTALL_DATA} ${FILESDIR}/javavm_opts.conf.dist \
${PREFIX}/etc/javavm_opts.conf.dist
post-install:
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} \
POST-INSTALL
.include <bsd.port.mk>
|