blob: 74af60a5e733553a83a9e69bf06c0c8af45c8075 (
plain) (
blame)
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
|
# New ports collection makefile for: Sun Linux JDK 1.2.x
# Date created: 27 April 2002
# Whom: Ernst de Haan <znerd@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= jdk
PORTVERSION= ${JDK_VERSION}
PORTREVISION= 1
CATEGORIES= java
MASTER_SITES= #
PKGNAMEPREFIX= linux-sun-
DISTNAME= ${PORTNAME}-${JDK_VERSION:S/./_/g}-linux-i586
MAINTAINER= java@FreeBSD.org
COMMENT= Sun Java Development Kit 1.2 for Linux
RUN_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION:R}
PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///}
LATEST_LINK= linux-sun-jdk12
NO_BUILD= yes
USE_LINUX= yes
JDK_VERSION= 1.2.2.017
ONLY_FOR_ARCHS= i386 amd64
NO_CDROM= "License does not allow distribution with fee"
RESTRICTED= "Redistribution of repackaged binaries not permitted"
APP_HOME= ${PREFIX}/${PKGNAMEPREFIX}jdk1.2.2
DOWNLOAD_URL?= http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=7740-j2sdk-1.2.2_017-oth-JPR&SiteId=JSC&TransactionId=noreg
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
IGNORE=You must manually fetch the Sun Java 2 Standard Edition SDK ${JDK_VERSION} for Linux archive (${DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again.
.endif
post-patch:
@${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f
do-install:
@${ECHO_CMD} -n ">> Creating destination directory ${APP_HOME}..."
@${MKDIR} ${APP_HOME}
@${ECHO_CMD} " [ DONE ]"
@${ECHO_CMD} -n ">> Copying files..."
@${CP} -R ${WRKSRC}/* ${APP_HOME}
@${INSTALL_DATA} ${FILESDIR}/cacerts ${APP_HOME}/jre/lib/security/cacerts
@${CHOWN} -h -R ${LIBOWN}:${LIBGRP} ${APP_HOME}
@${ECHO_CMD} " [ DONE ]"
@${ECHO_CMD} -n ">> Registering with javavm..."
@${LOCALBASE}/bin/registervm "${APP_HOME}/bin/java # Linux-Sun-JDK${PORTVERSION}_${PORTREVISION}"
@${ECHO_CMD} " [ DONE ]"
.include <bsd.port.post.mk>
|