aboutsummaryrefslogtreecommitdiffstats
path: root/java/jdk/Makefile
blob: ae5ee09a7992716c455c897678185d1bc3b9ebe9 (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
# New ports collection makefile for:    jdk
# Date created:     Feb, 8, 1998
# Whom:         Nate Williams <nate@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   jdk
PORTVERSION=    ${JDK_VERSION}
CATEGORIES= java devel
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= nate/JDK1.1

MAINTAINER= nate@FreeBSD.org

RUN_DEPENDS=    javavm:${PORTSDIR}/java/javavmwrapper

NO_CDROM=   "License doesn't allow distribution with fee"

ONLY_FOR_ARCHS= i386
JDK_VERSION=    1.1.8
PLIST_SUB+= JDK_VERSION=${JDK_VERSION}

WRKSRC=     ${WRKDIR}/jdk${JDK_VERSION}
NO_BUILD=   yes

.include <bsd.port.pre.mk>

.if ${PORTOBJFORMAT} == "aout"
DISTFILES=  jdk${JDK_VERSION}_AOUT.V1999-11-9.tar.gz
.else
LIB_DEPENDS+=   c.3:${PORTSDIR}/misc/compat3x
DISTFILES=  jdk${JDK_VERSION}_ELF.V1999-11-9.tar.gz
.endif

do-install:
    @${RM} -f ${WRKSRC}/include/freebsd/typedefs_md.h.orig
    ${MKDIR} ${PREFIX}/jdk${JDK_VERSION}
    (cd ${WRKSRC} && ${TAR} -c -f - .) \
        | (cd ${PREFIX}/jdk${JDK_VERSION} && ${TAR} --unlink -x -f -)
    ${MKDIR} ${PREFIX}/share/java/classes
    ${MKDIR} ${PREFIX}/share/doc/java

post-install:
    ${LOCALBASE}/bin/registervm "${PREFIX}/jdk${JDK_VERSION}/bin/java # JDK${JDK_VERSION}"

.include <bsd.port.post.mk>