mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
76df8d4b8c
PR: 26793 Submitted by: Chang, Hye-Shik <perky@python.or.kr>
65 lines
1.8 KiB
Makefile
65 lines
1.8 KiB
Makefile
# 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>
|