2001-06-24 21:53:43 +00: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 }
2004-06-28 18:43:41 +00:00
PORTREVISION = 8 # SR7
2001-06-24 21:53:43 +00:00
CATEGORIES = java
MASTER_SITES = #
PKGNAMEPREFIX = linux-ibm-
2002-04-26 23:23:02 +00:00
DISTNAME = IBMJava2-SDK-131
2001-06-24 21:53:43 +00:00
EXTRACT_SUFX = .tgz
2002-04-26 23:23:02 +00:00
MAINTAINER = znerd@FreeBSD.org
2003-03-06 03:18:39 +00:00
COMMENT = IBM Java Development Kit 1.3 for Linux
2001-06-24 21:53:43 +00:00
2002-03-23 08:49:59 +00:00
BUILD_DEPENDS = ${ LOCALBASE } /bin/javavm:${ PORTSDIR } /java/javavmwrapper
RUN_DEPENDS = ${ LOCALBASE } /bin/javavm:${ PORTSDIR } /java/javavmwrapper
2001-06-24 21:53:43 +00:00
WRKSRC = ${ WRKDIR } /${ DISTNAME : S /-SDK// }
2002-04-26 23:25:53 +00:00
PLIST_SUB += T = ${ APP_HOME : S /^ ${ PREFIX } \/ // }
2001-06-24 21:53:43 +00:00
NO_BUILD = yes
USE_LINUX = yes
2002-04-26 23:23:02 +00:00
JDK_VERSION = 1.3.1
2004-02-06 17:45:31 +00:00
LATEST_LINK = linux-ibm-jdk13
2001-06-24 21:53:43 +00:00
ONLY_FOR_ARCHS = i386
2002-04-26 23:25:53 +00:00
APP_HOME ?= ${ PREFIX } /${ PKGBASE } ${ PORTVERSION }
2001-06-24 21:53:43 +00:00
LINUX_SH ?= ${ LINUXBASE } /bin/sh
2002-10-10 08:38:39 +00:00
NO_CDROM = "License does not allow distribution with fee"
2001-06-24 21:53:43 +00:00
RESTRICTED = "Redistribution of repackaged binaries not permitted"
2003-07-23 08:20:42 +00:00
DOWNLOAD_URL = https://www6.software.ibm.com/dl/lxdk/lxdk-i?S_TACT= & S_CMP = & S_PKG = ia32ww& x = 50& y = 13
2001-06-24 21:53:43 +00:00
2002-03-23 08:49:59 +00: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
2002-10-10 08:38:39 +00:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2003-03-06 05:24:17 +00: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 03:18:39 +00: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 21:53:43 +00: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-26 23:25:53 +00:00
${ MKDIR } ${ APP_HOME }
2003-03-06 03:18:39 +00:00
cd ${ WRKSRC } && ${ FIND } . \
| ${ CPIO } -pdmu -R ${ LIBOWN } :${ LIBGRP } ${ APP_HOME }
2002-04-26 23:25:53 +00:00
${ LOCALBASE } /bin/registervm " ${ APP_HOME } /bin/java # IBM-JDK ${ PORTVERSION } _ ${ PORTREVISION } "
2001-06-24 21:53:43 +00:00
post-install :
2002-03-23 08:49:59 +00: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-26 23:25:53 +00:00
${ LN } -sf ${ X11BASE } /lib/X11/fonts/TrueType/wa*ttf ${ APP_HOME } /jre/lib/fonts/
2002-03-23 08:49:59 +00:00
. e n d i f
2001-06-24 21:53:43 +00:00
@${ CAT } ${ PKGMESSAGE }
. i n c l u d e < b s d . p o r t . p o s t . m k >