aboutsummaryrefslogtreecommitdiff
path: root/java/jre/Makefile
blob: b1f8db0e93b5ca15f3742048640e74965adad09f (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
61
62
63
64
65
66
67
68
69
70
# New ports collection makefile for:	jre
# Date created:				8 May 2000
# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	jre
PORTVERSION=	${JRE_VERSION}
CATEGORIES=	java devel
MASTER_SITES=	ftp://ftp.se.freebsd.org/pub/FreeBSD/JDK/ \
		${MASTER_SITE_LOCAL} \
		ftp://ftp.sc.sri.com/pub/FreeBSD/JDK/ \
		http://www.freebsd.org/java/
MASTER_SITE_SUBDIR=	patrick

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Standard Java Platform for running Java programs

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

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

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

WRKSRC=		${WRKDIR}/jre

STRIPFILES=	bin/i386/green_threads/jre \
		bin/i386/green_threads/jre_X \
		lib/i386/green_threads/libawt.so \
		lib/i386/green_threads/libjava.so \
		lib/i386/green_threads/libjpeg.so \
		lib/i386/green_threads/libmath.so \
		lib/i386/green_threads/libmmedia.so \
		lib/i386/green_threads/libnet.so \
		lib/i386/green_threads/libsysresource.so \
		lib/i386/green_threads/libzip.so

.include <bsd.port.pre.mk>

.if ${PORTOBJFORMAT} == "aout"
DISTFILES=	jre${JRE_VERSION}i_AOUT.V1999-11-9.tar.gz
.else
LIB_DEPENDS+=	c.3:${PORTSDIR}/misc/compat3x
DISTFILES=	jre${JRE_VERSION}i_ELF.V1999-11-9.tar.gz
.endif

do-build:
	@for file in ${STRIPFILES}; do \
		${STRIP_CMD} ${WRKSRC}/$$file; \
	done

do-install:
	${MKDIR} ${PREFIX}/jre${JRE_VERSION}
	${MKDIR} ${PREFIX}/share/java/classes
	${MKDIR} ${PREFIX}/share/doc/java
	cd ${WRKSRC} && ${FIND} . \
		| ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jre${JRE_VERSION}
	cd ${PREFIX}/jre${JRE_VERSION}/bin && \
		${LN} -sf .java_wrapper java && \
		cd i386/green_threads && \
			${LN} -sf jre java && \
			${LN} -sf jre_X java_X

post-install:
	${LOCALBASE}/bin/registervm "${PREFIX}/jre${JRE_VERSION}/bin/java # JRE${JRE_VERSION}"

.include <bsd.port.post.mk>