blob: c8e8fcac20c9aec72ea39894f258aa37ad5839da (
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
|
# $NetBSD: Makefile.common,v 1.4 2007/04/26 20:14:29 tv Exp $
DIST_VER= 1_5_0-p3-bin-duh1
PKG_VER= ${DIST_VER:S/_/./g:S/-p/p/:S/-bin-duh/./}
DIST_ARCH= bsd-i586 # for now, maybe more to come
CATEGORIES= lang java
COMMENT= Sun's Java(tm) 2 Standard Edition, ${DOWNLOAD_NAME}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://java.sun.com/
DOWNLOAD= http://www.duh.org/NetBSD/java2/
DOWNLOAD_NAME= ${SHORT_NAME} 5.0 for BSD
LICENSE= scsl23-license
RESTRICTED= Redistribution requires acceptance of a sublicense of the SCSL
NO_SRC_ON_CDROM=${RESTRICTED}
NO_SRC_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
INTERACTIVE_STAGE= fetch
ONLY_FOR_PLATFORM= NetBSD-[2-9].*-i386
.include "../../mk/bsd.prefs.mk"
JAVA_HOME= ${LOCALBASE}/java/scsl-1.5
JAVA_NAME= scsl15
JAVA_UNLIMIT= datasize
MESSAGE_SUBST+= JAVA_HOME=${JAVA_HOME:Q}
# 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 J2SE 5.0... -tvierling
EXTRACT_ENV+= UNPACK200_FLAGS=-Htrue
NO_MTREE= yes # since we change PREFIX
FETCH_MESSAGE= "The file ${DISTNAME}${EXTRACT_SUFX} containing"
FETCH_MESSAGE+= "${DOWNLOAD_NAME} must be fetched into:"
FETCH_MESSAGE+= " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"
FETCH_MESSAGE+= "from:"
FETCH_MESSAGE+= " ${DOWNLOAD}"
FETCH_MESSAGE+= ""
FETCH_MESSAGE+= "Click ${SHORT_NAME} in the ${OPSYS}/${MACHINE_ARCH} row for version ${DIST_VER:S/_/./g:S/-bin-/-/},"
FETCH_MESSAGE+= "then read and accept the license to start the download."
do-build: # nothing
do-install:
${INSTALL_PROGRAM_DIR} ${JAVA_HOME}
cd ${WRKSRC} && ${PAX} -rwp ma . ${JAVA_HOME}
.include "../../mk/java-env.mk"
.include "../../mk/bsd.pkg.mk"
|