2000-06-12 15:28:14 +02:00
|
|
|
# New ports collection makefile for: jre
|
2000-11-01 16:51:11 +01:00
|
|
|
# Date created: 8 May 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
2000-06-12 15:28:14 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= jre
|
|
|
|
PORTVERSION= ${JRE_VERSION}
|
|
|
|
CATEGORIES= java devel
|
2000-06-14 16:27:41 +02:00
|
|
|
MASTER_SITES= ftp://ftp.se.freebsd.org/pub/FreeBSD/JDK/ \
|
2000-06-30 03:23:22 +02:00
|
|
|
${MASTER_SITE_LOCAL} \
|
2000-06-14 16:27:41 +02:00
|
|
|
ftp://ftp.sc.sri.com/pub/FreeBSD/JDK/ \
|
2000-06-12 15:28:14 +02:00
|
|
|
http://www.freebsd.org/java/
|
2000-06-29 09:03:02 +02:00
|
|
|
MASTER_SITE_SUBDIR= patrick
|
2000-06-12 15:28:14 +02:00
|
|
|
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Standard Java Platform for running Java programs
|
2000-06-12 15:28:14 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2002-11-11 22:22:05 +01:00
|
|
|
CPIO?= /usr/bin/cpio
|
|
|
|
|
2000-06-12 15:28:14 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PORTOBJFORMAT} == "aout"
|
|
|
|
DISTFILES= jre${JRE_VERSION}i_AOUT.V1999-11-9.tar.gz
|
|
|
|
.else
|
2001-08-14 11:49:14 +02:00
|
|
|
LIB_DEPENDS+= c.3:${PORTSDIR}/misc/compat3x
|
2001-01-16 18:33:20 +01:00
|
|
|
DISTFILES= jre${JRE_VERSION}i_ELF.V1999-11-9.tar.gz
|
2000-06-12 15:28:14 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@for file in ${STRIPFILES}; do \
|
|
|
|
strip ${WRKSRC}/$$file; \
|
|
|
|
done
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/jre${JRE_VERSION}
|
2000-06-23 11:21:25 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/java/classes
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/java
|
2002-11-11 22:22:05 +01:00
|
|
|
cd ${WRKSRC} && ${FIND} . \
|
|
|
|
| ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jre${JRE_VERSION}
|
2000-06-12 15:28:14 +02:00
|
|
|
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>
|