diff options
author | jeh <jeh@FreeBSD.org> | 2001-06-25 05:53:43 +0800 |
---|---|---|
committer | jeh <jeh@FreeBSD.org> | 2001-06-25 05:53:43 +0800 |
commit | 7a9724b9bf553065fdbf80f5b65b51fe2f5b57fa (patch) | |
tree | e2e4757e12f0b7a0b0d665bee0938615770b6df3 /java/linux-ibm-jdk13/Makefile | |
parent | e1ef3472cd40fa47e8d08687bc4f5c3bc3887f16 (diff) | |
download | freebsd-ports-gnome-7a9724b9bf553065fdbf80f5b65b51fe2f5b57fa.tar.gz freebsd-ports-gnome-7a9724b9bf553065fdbf80f5b65b51fe2f5b57fa.tar.zst freebsd-ports-gnome-7a9724b9bf553065fdbf80f5b65b51fe2f5b57fa.zip |
IBM's Java Development Kit for Linux, version 1.3.
PR: 26793
Submitted by: Chang, Hye-Shik <perky@python.or.kr>
Diffstat (limited to 'java/linux-ibm-jdk13/Makefile')
-rw-r--r-- | java/linux-ibm-jdk13/Makefile | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/java/linux-ibm-jdk13/Makefile b/java/linux-ibm-jdk13/Makefile new file mode 100644 index 000000000000..cdb86ac29281 --- /dev/null +++ b/java/linux-ibm-jdk13/Makefile @@ -0,0 +1,64 @@ +# 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} +CATEGORIES= java +MASTER_SITES= # +PKGNAMEPREFIX= linux-ibm- +DISTNAME= IBMJava2-SDK-13 +EXTRACT_SUFX= .tgz + +MAINTAINER= perky@python.or.kr + +BUILD_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper +RUN_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper + +WRKSRC= ${WRKDIR}/${DISTNAME:S/-SDK//} +PLIST_SUB+= TARGET_PREFIX=${TARGET_PREFIX:S/^${PREFIX}\///} + +NO_BUILD= yes +USE_LINUX= yes +JDK_VERSION= 1.3.0 +ONLY_FOR_ARCHS= i386 +TARGET_PREFIX?= ${PREFIX}/${PKGBASE}${PORTVERSION} +LINUX_SH?= ${LINUXBASE}/bin/sh + +NO_CDROM= "License doesn\'t allow distribution with fee" +RESTRICTED= "Redistribution of repackaged binaries not permitted" + +XARGS= xargs +FIND= find + +.if defined(BATCH) || defined(PACKAGE_BUILDING) +IGNORE= "You can not legally distribute binaries" +.endif + +.include <bsd.port.pre.mk> + +.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) +IGNORE=You must manually fetch the IBM Java SDK ${JDK_VERSION} for Linux archive (${DISTNAME}${EXTRACT_SUFX}) from http://www6.software.ibm.com/dl/dklx130/dklx130-p or http://www.ibm.com/developerworks/java/jdk/linux130/, place it in ${DISTDIR} and then run make again. +.endif + +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: + ${MKDIR} ${TARGET_PREFIX} + ${TAR} -C ${WRKSRC} -cf- . | ${TAR} -C ${TARGET_PREFIX} -xpf- + ${LOCALBASE}/bin/registervm "${TARGET_PREFIX}/bin/java # IBM-JDK${PORTVERSION}" + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> |