2000-12-07 04:29:32 +01:00
# New ports collection makefile for: linux jdk 1.3.0
# Date created: 06 December 2000
# Whom: Kevin Lo <kevlo@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME = jdk
PORTVERSION = ${ JDK_VERSION }
CATEGORIES = java devel
MASTER_SITES = #
PKGNAMEPREFIX = linux-
2001-03-05 04:03:37 +01:00
DISTFILES = j2sdk-1_3_0_02-linux.bin
2000-12-07 04:29:32 +01:00
MAINTAINER = kevlo@FreeBSD.org
RUN_DEPENDS = ${ LINUXBASE } /lib/libc.so.6:${ PORTSDIR } /emulators/linux_base
JDK_VERSION = 1.3.0
NO_CDROM = "License doesn\'t allow distribution with fee"
RESTRICTED = "Redistribution of repackaged binaries not permitted"
. i f d e f i n e d ( B A T C H ) | | d e f i n e d ( P A C K A G E _ B U I L D I N G )
IGNORE = "You can not legally distribute binaries"
. e n d i f
ONLY_FOR_ARCHS = i386
EXTRACT_CMD = # empty
EXTRACT_BEFORE_ARGS = # empty
EXTRACT_AFTER_ARGS = #empty
2001-03-05 04:03:37 +01:00
WRKSRC = ${ WRKDIR } /jdk1.3.0_02
2000-12-07 04:29:32 +01:00
NO_BUILD = yes
. i n c l u d e < b s d . p o r t . p r e . m k >
. f o r f i l e i n $ { D I S T F I L E S }
. i f ! e x i s t s ( $ { D I S T D I R } / $ { f i l e } )
2001-03-05 04:03:37 +01:00
IGNORE = You must manually fetch the Java SDK 1.3.0 for Linux archive ( j2sdk-1_3_0_02-linux.bin) from http://java.sun.com/j2se/1.3/download-linux.html, place it in ${ DISTDIR } and then run make again.
2000-12-07 04:29:32 +01:00
. e n d i f
. e n d f o r
2000-12-11 04:34:43 +01:00
post-fetch :
@${ CHMOD } +x ${ DISTDIR } /${ DISTFILES }
2000-12-07 04:29:32 +01:00
post-patch :
find ${ WRKSRC } -name '*.orig' -print | xargs ${ RM } -f
do-install :
${ MKDIR } ${ PREFIX } /${ PKGNAMEPREFIX } jdk${ JDK_VERSION }
${ TAR } -C ${ WRKSRC } -cf- . | ${ TAR } -C ${ PREFIX } /${ PKGNAMEPREFIX } jdk${ JDK_VERSION } -xpf-
. i n c l u d e < b s d . p o r t . p o s t . m k >