2001-06-24 23:53:43 +02:00
# New ports collection makefile for: linux-ibm-jdk
# Date created: 22 April 2001
# Whom: Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$
#
PORTNAME = jdk
PORTVERSION = ${ JDK_VERSION }
2003-05-20 19:30:41 +02:00
PORTREVISION = 4 # SR4
2001-06-24 23:53:43 +02:00
CATEGORIES = java
MASTER_SITES = #
PKGNAMEPREFIX = linux-ibm-
2002-04-27 01:23:02 +02:00
DISTNAME = IBMJava2-SDK-131
2001-06-24 23:53:43 +02:00
EXTRACT_SUFX = .tgz
2002-04-27 01:23:02 +02:00
MAINTAINER = znerd@FreeBSD.org
2003-03-06 04:18:39 +01:00
COMMENT = IBM Java Development Kit 1.3 for Linux
2001-06-24 23:53:43 +02:00
2002-03-23 09:49:59 +01:00
BUILD_DEPENDS = ${ LOCALBASE } /bin/javavm:${ PORTSDIR } /java/javavmwrapper
RUN_DEPENDS = ${ LOCALBASE } /bin/javavm:${ PORTSDIR } /java/javavmwrapper
2001-06-24 23:53:43 +02:00
WRKSRC = ${ WRKDIR } /${ DISTNAME : S /-SDK// }
2002-04-27 01:25:53 +02:00
PLIST_SUB += T = ${ APP_HOME : S /^ ${ PREFIX } \/ // }
2001-06-24 23:53:43 +02:00
NO_BUILD = yes
USE_LINUX = yes
2002-04-27 01:23:02 +02:00
JDK_VERSION = 1.3.1
2001-06-24 23:53:43 +02:00
ONLY_FOR_ARCHS = i386
2002-04-27 01:25:53 +02:00
APP_HOME ?= ${ PREFIX } /${ PKGBASE } ${ PORTVERSION }
2001-06-24 23:53:43 +02:00
LINUX_SH ?= ${ LINUXBASE } /bin/sh
2002-10-10 10:38:39 +02:00
NO_CDROM = "License does not allow distribution with fee"
2001-06-24 23:53:43 +02:00
RESTRICTED = "Redistribution of repackaged binaries not permitted"
2003-03-06 04:18:39 +01:00
DOWNLOAD_URL = http://www6.software.ibm.com/dl/lxdk/lxdk-h?S_PKG= ia32ww& S_TACT = & S_CMP =
2001-06-24 23:53:43 +02:00
2002-03-23 09:49:59 +01:00
. i f d e f i n e d ( W I T H _ J A P A N E S E _ F O N T S )
PLIST_SUB += JAPANESE = ""
BUILD_DEPENDS += ${ X11BASE } /lib/X11/fonts/TrueType/wadalab-gothic.ttf:${ PORTSDIR } /japanese/truetypefonts
RUN_DEPENDS += ${ X11BASE } /lib/X11/fonts/TrueType/wadalab-gothic.ttf:${ PORTSDIR } /japanese/truetypefonts
. e l s e
PLIST_SUB += JAPANESE = "@comment "
. e n d i f
2003-03-06 04:18:39 +01:00
CPIO ?= /usr/bin/cpio
2001-06-24 23:53:43 +02:00
2002-10-10 10:38:39 +02:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2003-03-06 06:24:17 +01: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 } ) & & ! d e f i n e d ( P A C K A G E _ B U I L D I N G )
2003-03-06 04:18:39 +01:00
IGNORE = You must manually fetch the IBM Java SDK ${ JDK_VERSION } for Linux archive ( ${ DISTNAME } ${ EXTRACT_SUFX } ) from ${ DOWNLOAD_URL } , place it in ${ DISTDIR } and then run make again
. e n d i f
2001-06-24 23:53:43 +02:00
post-patch :
@for shfn in ` ${ GREP } -r '^#!/bin/sh' ${ WRKSRC } | ${ AWK } -F: '{print $$1}' ` ; do \
if [ ! -h $$ shfn ] ; then \
( ${ SED } -e 's:^#!/bin/sh:#!${LINUX_SH}:' $$ shfn \
> $$ shfn.tmp && ${ CAT } $$ shfn.tmp > $$ shfn \
&& ${ RM } -f $$ shfn.tmp) \
fi \
done
do-install :
2002-04-27 01:25:53 +02:00
${ MKDIR } ${ APP_HOME }
2003-03-06 04:18:39 +01:00
cd ${ WRKSRC } && ${ FIND } . \
| ${ CPIO } -pdmu -R ${ LIBOWN } :${ LIBGRP } ${ APP_HOME }
2002-04-27 01:25:53 +02:00
${ LOCALBASE } /bin/registervm " ${ APP_HOME } /bin/java # IBM-JDK ${ PORTVERSION } _ ${ PORTREVISION } "
2001-06-24 23:53:43 +02:00
post-install :
2002-03-23 09:49:59 +01:00
. i f d e f i n e d ( W I T H _ J A P A N E S E _ F O N T S )
2002-04-27 01:25:53 +02:00
${ LN } -sf ${ X11BASE } /lib/X11/fonts/TrueType/wa*ttf ${ APP_HOME } /jre/lib/fonts/
2002-03-23 09:49:59 +01:00
. e n d i f
2001-06-24 23:53:43 +02:00
@${ CAT } ${ PKGMESSAGE }
. i n c l u d e < b s d . p o r t . p o s t . m k >