blob: 574b7956e2a968dfe8e9f0abbbf35709e3beffd8 (
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.common,v 1.13 2010/03/31 02:35:05 joerg Exp $
# used by lang/sun-jre6/Makefile
# used by lang/sun-jdk6/Makefile
CATEGORIES= lang java
COMMENT= Sun's Java(tm) 2 Standard Edition, ${DOWNLOAD_NAME}
EXTRACT_SUFX= .bin
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://java.sun.com/
DOWNLOAD= http://java.sun.com/javase/downloads/index.jsp
ARCHIVE= http://java.sun.com/products/archive/
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}
EMUL_PLATFORMS= linux-i386
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= pax
.include "../../mk/bsd.prefs.mk"
EMUL_MODULES.linux= compat locale x11
DIST_ARCH.i386= i586
.if defined(DIST_ARCH.${EMUL_ARCH})
DIST_ARCH= ${DIST_ARCH.${EMUL_ARCH}}
.else
DIST_ARCH= ${EMUL_ARCH}
.endif
INTERACTIVE_STAGE= fetch
BUILD_DIRS= # empty
.include "../../mk/bsd.prefs.mk"
JAVA_HOME= ${PREFIX}/java/sun-6
JAVA_NAME= sun6
JAVA_UNLIMIT= datasize
JAVA_LD_LIBRARY_PATH= ${JAVA_HOME}/lib/${EMUL_ARCH}/jli
MESSAGE_SUBST+= JAVA_HOME=${JAVA_HOME:Q}
EXTRACT_ENV+= HOME=${WRKDIR}/fake_home
# the following forces compression of jarfiles, which is a huge disk
# space win and trivial to no speed reduction in the face of the
# new class sharing in Java 5+... -tvierling
EXTRACT_ENV+= UNPACK200_FLAGS=-Htrue
FETCH_MESSAGE+= " The file ${DISTNAME}${EXTRACT_SUFX} containing ${DOWNLOAD_NAME}"
FETCH_MESSAGE+= ""
FETCH_MESSAGE+= " must be fetched into:"
FETCH_MESSAGE+= " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"
FETCH_MESSAGE+= " from:"
FETCH_MESSAGE+= " ${DOWNLOAD}"
FETCH_MESSAGE+= " or ${ARCHIVE}"
FETCH_MESSAGE+= ""
FETCH_MESSAGE+= " Click Download for '${DOWNLOAD_NAME}', read and accept the"
FETCH_MESSAGE+= " license, then choose 'Linux self-extracting file'."
post-fetch:
if [ ! -x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}; \
fi
do-install:
${INSTALL_PROGRAM_DIR} ${DESTDIR}${JAVA_HOME}
cd ${WRKSRC} && pax -rwp ma . ${DESTDIR}${JAVA_HOME}
.include "../../mk/java-env.mk"
|