blob: dc2f43da22da6a6c8b05b324eab12fda31c245c1 (
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
77
78
|
# $NetBSD: Makefile.common,v 1.25 2005/05/10 01:51:13 jschauma Exp $
CATEGORIES= lang java
EXTRACT_SUFX= .bin
MAINTAINER= jschauma@NetBSD.org
HOMEPAGE= http://java.sun.com/
DOWNLOAD= http://java.sun.com/j2se/1.4.2/download.html
ARCHIVE= http://java.sun.com/products/archive/index.html
LICENSE= jdk13-license
RESTRICTED= "Redistribution of repackaged binaries not permitted"
NO_SRC_ON_CDROM=${RESTRICTED}
NO_SRC_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
INTERACTIVE_STAGE= fetch
.include "../../mk/bsd.prefs.mk"
JAVA_HOME= ${LOCALBASE}/java/sun-1.4
JAVA_NAME= sun14
JAVA_UNLIMIT= datasize
MESSAGE_SUBST+= JAVA_HOME="${JAVA_HOME}"
NO_MTREE= yes # since we change PREFIX
LDD= ${TRUE}
ONLY_FOR_PLATFORM= NetBSD-1.6[U-Z]*-i386 NetBSD-[2-9]*-i386
ONLY_FOR_PLATFORM+= Linux-*-i[3-6]86
_FETCH_MESSAGE= \
${ECHO} "======================================================================"; \
${ECHO} ; \
${ECHO} " The file ${DISTNAME}${EXTRACT_SUFX} containing"; \
${ECHO} " ${COMMENT} must be fetched"; \
${ECHO} " into:"; \
${ECHO} " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"; \
${ECHO} " from:"; \
${ECHO} " ${DOWNLOAD}"; \
${ECHO} " or ${ARCHIVE}"; \
${ECHO} ; \
${ECHO} " Click 'Download J2SE ${SHORT}', read and accept the"; \
${ECHO} " license, then choose 'Linux self-extracting file'."; \
${ECHO} -e ${END_MESSAGE}; \
${ECHO} "======================================================================"
.if !empty(SUN_JRE14_USE_JCE:M[Yy][Ee][Ss])
END_MESSAGE="\n The file jce_policy-1_4_2.zip must be fetched into:\n" \
" ${DISTDIR}/jce_policy-1_4_2.zip\n\n" \
"Under 'Other Downloads' / 'Java Cryptography Extension'\n" \
"click 'Download' and choose the .zip file.\n"
.endif
post-fetch:
@if [ ! -x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}; \
fi
do-build: # nothing
do-install:
${INSTALL_PROGRAM_DIR} ${JAVA_HOME}
cd ${WRKSRC} && ${PAX} -rwp ma . ${JAVA_HOME}
.if ${OPSYS} == "NetBSD"
. include "../../emulators/suse_linux/Makefile.application"
. if ${SUSE_DIR_PREFIX} == "suse91"
DEPENDS+= suse_locale-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_locale
. endif
DEPENDS+= suse_compat-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_compat
DEPENDS+= suse_x11-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_x11
.endif
.include "../../mk/java-env.mk"
.include "../../mk/bsd.pkg.mk"
|