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 }
2002-10-19 02:03:28 +02:00
PORTREVISION = 1
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
2002-10-10 10:38:39 +02:00
NO_CDROM = "License does not allow distribution with fee"
2001-05-25 20:59:25 +02:00
RESTRICTED = "Redistribution of repackaged binaries not permitted"
EXTRACT_CMD = # empty
EXTRACT_BEFORE_ARGS = # empty
EXTRACT_AFTER_ARGS = # empty
2002-10-19 01:56:00 +02:00
WRKSRC = ${ WRKDIR } /j2sdk${ DL_JDK_VERSION }
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-10-19 01:56:00 +02:00
DL_JDK_VERSION = 1.4.1_01
2002-10-19 02:03:28 +02:00
INSTALL_JDK_VERSION = 1.4.1
2001-05-25 20:59:25 +02:00
ONLY_FOR_ARCHS = i386
2002-10-19 01:56:00 +02:00
DOWNLOAD_URL ?= http://java.sun.com/webapps/download/Display?BundleId= 7143
2001-06-17 20:08:03 +02:00
PORTTITLE = Java 2 Development Kit ${ INSTALL_JDK_VERSION } for Linux
2002-09-17 11:43:43 +02:00
APP_HOME = ${ PREFIX } /${ PKGNAMEPREFIX } ${ PORTNAME } ${ INSTALL_JDK_VERSION }
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 >
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
2002-09-14 00:49:38 +02:00
pre-everything :
@${ CAT } ${ PKGMESSAGE }
2001-05-25 20:59:25 +02:00
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 >