2001-05-25 20:59:25 +02:00
# New ports collection makefile for: Sun Linux JDK 1.4.x
# Date created: 25 May 2001
2001-11-27 13:30:05 +01:00
# Whom: Ernst de Haan <znerd@FreeBSD.org>
2001-05-25 20:59:25 +02:00
#
# $FreeBSD$
#
PORTNAME = jdk
2001-06-17 20:08:03 +02:00
PORTVERSION = ${ INSTALL_JDK_VERSION }
2001-05-25 20:59:25 +02:00
CATEGORIES = java devel
MASTER_SITES = #
2002-08-10 12:47:25 +02:00
PKGNAMEPREFIX = linux-sun-
2002-06-06 15:00:29 +02:00
DISTNAME = j2sdk-${ DL_JDK_VERSION : S /./_/g } -linux-i586
2001-06-17 20:08:03 +02:00
EXTRACT_SUFX = .bin
2001-05-25 20:59:25 +02:00
2001-11-27 13:30:05 +01:00
MAINTAINER = znerd@FreeBSD.org
2001-05-25 20:59:25 +02:00
2001-08-29 17:45:29 +02:00
BUILD_DEPENDS = ${ LINUXBASE } /lib/libc.so.6:${ PORTSDIR } /emulators/linux_base
2001-05-25 20:59:25 +02:00
RUN_DEPENDS = javavm:${ PORTSDIR } /java/javavmwrapper
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 )
2001-05-29 14:33:01 +02:00
IGNORE = "You can not legally distribute binaries"
2001-05-25 20:59:25 +02:00
. e n d i f
EXTRACT_CMD = # empty
EXTRACT_BEFORE_ARGS = # empty
EXTRACT_AFTER_ARGS = # empty
2002-06-06 15:00:29 +02:00
WRKSRC = ${ WRKDIR } /j2sdk1.4.0_01
2002-08-10 12:54:06 +02:00
PLIST_SUB += T = ${ APP_HOME : S /^ ${ PREFIX } \/ // } PORTVERSION = ${ PORTVERSION }
2001-05-25 20:59:25 +02:00
NO_BUILD = yes
USE_LINUX = yes
2002-06-06 15:00:29 +02:00
DL_JDK_VERSION = 1.4.0_01
INSTALL_JDK_VERSION = ${ DL_JDK_VERSION : S /_/./g }
2001-05-25 20:59:25 +02:00
ONLY_FOR_ARCHS = i386
2002-06-06 15:00:29 +02:00
DOWNLOAD_URL ?= http://java.sun.com/Download6?url= /Download6& config-file= j2sdk-${ DL_JDK_VERSION : S /./_/g } .config& platform = linux-i586
2001-06-17 20:08:03 +02:00
PORTTITLE = Java 2 Development Kit ${ INSTALL_JDK_VERSION } for Linux
2002-08-10 12:54:06 +02:00
APP_HOME = ${ PREFIX } /${ PKGNAMEPREFIX } ${ PORTNAME } ${ INSTALL_JDK_VERSION : R }
2001-05-25 20:59:25 +02:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2002-08-31 09:04:00 +02:00
#.BEGIN:
# @${ECHO} "******** WARNING ********"
# @${ECHO} "This JDK is currently unstable, especially when run as a non-root user. You are advised to use either the Sun JDK 1.3 for Linux (${PORTSDIR}/java/linux-sun-jdk13) or the FreeBSD JDK 1.3 (${PORTSDIR}/java/jdk13) instead."
# @${ECHO}
2002-08-29 23:55:22 +02:00
2001-06-17 20:08:03 +02:00
. i f ! e x i s t s ( $ { D I S T D I R } / $ { D I S T N A M E } $ { E X T R A C T _ S U F X } )
2002-02-15 13:39:30 +01:00
IGNORE = You must manually fetch the J2SE v1.4 SDK Linux GNUZIP Tar shell script ( ${ DISTNAME } ${ EXTRACT_SUFX } ) from ${ DOWNLOAD_URL } , place it in ${ DISTDIR } and then run make again
2001-05-25 20:59:25 +02:00
. e n d i f
post-fetch :
@${ CHMOD } +x ${ DISTDIR } /${ DISTFILES }
post-patch :
find ${ WRKSRC } -name '*.orig' -print | xargs ${ RM } -f
do-install :
2002-08-10 12:54:06 +02:00
${ MKDIR } ${ APP_HOME }
${ TAR } -C ${ WRKSRC } -cf- . | ${ TAR } -C ${ APP_HOME } -xpf-
${ LOCALBASE } /bin/registervm " ${ APP_HOME } /bin/java # Linux-Sun-JDK ${ PORTVERSION } "
2001-05-25 20:59:25 +02:00
. i n c l u d e < b s d . p o r t . p o s t . m k >