blob: 4593b12e41737367de902bb3f7bb7d365454f849 (
plain)
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
|
# $NetBSD: Makefile,v 1.2 2004/08/11 14:45:31 tv Exp $
#
DISTNAME= java-wrapper-1.1
CATEGORIES= lang
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= jmmv@NetBSD.org
COMMENT= Runs different Java implementations transparently
NO_BUILDLINK= YES
NO_CHECKSUM= YES
NO_CONFIGURE= YES
USE_PKGINSTALL= YES
WRKSRC= ${WRKDIR}
EGDIR= ${PREFIX}/share/examples/java-wrapper
CONF_FILES= ${EGDIR}/java-wrapper.conf \
${PKG_SYSCONFDIR}/java-wrapper.conf
SUBST_CLASSES+= build
SUBST_STAGE.build= do-build
SUBST_MESSAGE.build= Setting up paths.
SUBST_FILES.build= java-wrapper.1
SUBST_FILES.build+= java-wrapper.conf
SUBST_FILES.build+= java-wrapper.sh
SUBST_SED.build= -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g'
SUBST_SED.build+= -e 's|@PREFIX@|${PREFIX}|g'
SUBST_SED.build+= -e 's|@SH@|${SH}|g'
SUBST_SED.build+= -e 's|@TR@|${TR}|g'
INSTALLATION_DIRS= bin man/man1
do-extract:
${CP} ${FILESDIR}/java-wrapper.1 ${WRKSRC}
${CP} ${FILESDIR}/java-wrapper.conf ${WRKSRC}
${CP} ${FILESDIR}/java-wrapper.sh ${WRKSRC}
do-build:
@${DO_NADA}
# Not all implemetations supply all of the following programs, but these
# comprise the majority of useful tools available with most JVMs:
do-install:
.for f in appletviewer extcheck idlj jar jarsigner java javac javadoc \
javah javakey javap jdb keytool policytool rmic rmid \
rmiregistry serialver tnameserv
${INSTALL_SCRIPT} ${WRKSRC}/java-wrapper.sh ${PREFIX}/bin/${f}
.endfor
.undef f
${INSTALL_DATA} ${WRKSRC}/java-wrapper.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/java-wrapper.conf ${EGDIR}
.include "../../mk/bsd.pkg.mk"
|