1996-04-08 16:49:13 -04:00
|
|
|
# New ports collection makefile for: jdk
|
1998-02-11 03:59:00 -05:00
|
|
|
# Date created: Feb, 8, 1998
|
1999-03-26 16:05:31 -05:00
|
|
|
# Whom: Nate Williams <nate@FreeBSD.org>
|
1996-04-08 16:49:13 -04:00
|
|
|
#
|
1999-08-25 02:16:32 -04:00
|
|
|
# $FreeBSD$
|
1996-04-08 16:49:13 -04:00
|
|
|
#
|
|
|
|
|
2000-04-12 02:21:15 -04:00
|
|
|
PORTNAME= jdk
|
|
|
|
PORTVERSION= ${JDK_VERSION}
|
1999-06-27 22:24:57 -04:00
|
|
|
CATEGORIES= java devel
|
2001-02-26 17:17:04 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= nate/JDK1.1
|
1996-04-08 16:49:13 -04:00
|
|
|
|
1999-11-09 19:18:26 -05:00
|
|
|
MAINTAINER= nate@FreeBSD.org
|
1996-04-08 16:49:13 -04:00
|
|
|
|
2000-06-12 08:55:46 -04:00
|
|
|
RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper
|
|
|
|
|
1998-02-11 03:59:00 -05:00
|
|
|
NO_CDROM= "License doesn't allow distribution with fee"
|
1997-05-30 10:16:32 -04:00
|
|
|
|
1999-09-17 14:19:30 -04:00
|
|
|
ONLY_FOR_ARCHS= i386
|
1999-06-08 17:57:50 -04:00
|
|
|
JDK_VERSION= 1.1.8
|
|
|
|
PLIST_SUB+= JDK_VERSION=${JDK_VERSION}
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/jdk${JDK_VERSION}
|
2001-01-16 12:33:20 -05:00
|
|
|
NO_BUILD= yes
|
1996-04-08 16:49:13 -04:00
|
|
|
|
1999-03-26 16:05:31 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PORTOBJFORMAT} == "aout"
|
1999-11-09 19:18:26 -05:00
|
|
|
DISTFILES= jdk${JDK_VERSION}_AOUT.V1999-11-9.tar.gz
|
1999-03-26 16:05:31 -05:00
|
|
|
.else
|
1999-11-09 19:18:26 -05:00
|
|
|
DISTFILES= jdk${JDK_VERSION}_ELF.V1999-11-9.tar.gz
|
1999-03-26 16:05:31 -05:00
|
|
|
.endif
|
|
|
|
|
1998-02-11 03:59:00 -05:00
|
|
|
do-install:
|
2000-07-24 04:05:49 -04:00
|
|
|
@${RM} -f ${WRKSRC}/include/freebsd/typedefs_md.h.orig
|
1999-06-08 17:57:50 -04:00
|
|
|
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}
|
2000-02-07 15:12:07 -05:00
|
|
|
(cd ${WRKSRC} && ${TAR} -c -f - .) \
|
|
|
|
| (cd ${PREFIX}/jdk${JDK_VERSION} && ${TAR} --unlink -x -f -)
|
2000-05-31 05:44:15 -04:00
|
|
|
${MKDIR} ${PREFIX}/share/java/classes
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/java
|
1996-04-08 16:49:13 -04:00
|
|
|
|
2000-06-12 08:55:46 -04:00
|
|
|
post-install:
|
|
|
|
${LOCALBASE}/bin/registervm "${PREFIX}/jdk${JDK_VERSION}/bin/java # JDK${JDK_VERSION}"
|
2001-03-06 10:41:02 -05:00
|
|
|
.if ${OSVERSION} > 400000
|
|
|
|
${ECHO} "You will need to install the compat3x libraries to use this port."
|
|
|
|
.endif
|
|
|
|
|
1999-03-26 16:05:31 -05:00
|
|
|
.include <bsd.port.post.mk>
|