blob: c1cbc827ba93be604a611ed680d507d926d205d2 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# $NetBSD: Makefile,v 1.32 2006/05/28 02:24:49 tv Exp $
# Note: Regen distinfo with PKG_DEFAULT_OPTIONS+=sun-jre-jce
DISTNAME= jre-1_5_0_07-linux-i586
PKGNAME= sun-jre15-5.0.7
MASTER_SITES= # empty
SHORT_NAME= JRE
WRKSRC= ${WRKDIR}/${DISTNAME:S/-//:S/_/./:S/_/./:S/-linux-i586//}
JAVA_WRAPPERS= java javaws keytool orbd policytool rmid rmiregistry \
servertool tnameserv
REQD_DIRS= ${JAVA_HOME}
REQD_DIRS+= ${JAVA_HOME}/lib
REQD_DIRS+= ${JAVA_HOME}/lib/applet
REQD_DIRS+= ${JAVA_HOME}/lib/images
REQD_DIRS+= ${JAVA_HOME}/lib/images/cursors
REQD_DIRS+= ${JAVA_HOME}/lib/security
CONF_FILES= # empty
.sinclude "sfiles.mk"
.for FILE in ${SFILES}
CONF_FILES+= ${JAVA_HOME}/lib/${FILE}.default ${JAVA_HOME}/lib/${FILE}
.endfor
PKG_OPTIONS_VAR= PKG_OPTIONS.sun-jre15
PKG_SUPPORTED_OPTIONS= sun-jre-jce
.include "../../mk/bsd.options.mk"
HEADER_TEMPLATE+= ${WRKDIR}/HEADER.tmpl
INSTALL_TEMPLATE+= ${PKGDIR}/INSTALL.tmpl
DEINSTALL_TEMPLATE+= ${PKGDIR}/DEINSTALL.tmpl
FILES_SUBST+= JAVA_HOME=${JAVA_HOME:Q}
FILES_SUBST+= MACHINE_ARCH=${MACHINE_ARCH:Q}
CHECK_FILES_SKIP+= ${JAVA_HOME}/lib/${MACHINE_ARCH}/client/classes.jsa
.if !empty(PKG_OPTIONS:Msun-jre-jce)
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} jce_policy-1_5_0.zip
PLIST_SUBST+= SUN_JRE15_USE_JCE=""
.else
PLIST_SUBST+= SUN_JRE15_USE_JCE="@comment "
.endif
post-extract:
${MKDIR} ${WRKSRC}/.systemPrefs
${TOUCH} ${WRKSRC}/.systemPrefs/.system.lock
${TOUCH} ${WRKSRC}/.systemPrefs/.systemRootModFile
do-configure:
cd ${WRKSRC}/lib; for file in ${SFILES}; do \
${MV} -f $$file $$file.default; \
done
@${ECHO} 'CONF_FILES="${CONF_FILES}"' >${HEADER_TEMPLATE}
pre-install:
.if !empty(PKG_OPTIONS:Msun-jre-jce)
cd ${WRKDIR}/jce ; ${PAX} -rw -pe -v . ${WRKSRC}/lib/security
.endif
#
# re-create sfiles.mk from properties and config files
#
makesfiles:
${ECHO} > sfiles.mk '# $$Net''BSD$$'
${ECHO} >> sfiles.mk '#'
${ECHO} >> sfiles.mk '# Created with "make makesfiles"'
${ECHO} >> sfiles.mk '# Do not edit this file manually!'
${ECHO} >> sfiles.mk '#'
cd ${WRKSRC}/lib && ${FIND} * -name fontconfig.\* -o \
-name \*.properties -o -name \*.properties.\?\? -o \
-name \*.cfg -o -name \*.security | \
${SED} 's/^/SFILES+= /' >>${PKGDIR}/sfiles.mk
.include "../../lang/sun-jre15/Makefile.common"
|