freebsd-ports/java/jdk12-doc/Makefile
Doug Barton 81a3ccf57b Update to jdk-1_1_8_003-doc and clean up the port some.
PR:		ports/27784
Submitted by:	Ernst de Haan ernst@jollem.com
2001-05-31 06:09:27 +00:00

43 lines
1.1 KiB
Makefile

# New ports collection makefile for: JDK documentation
# Date created: Mon Mar 8 10:10:42 EET 1999
# Whom: Martti Kuparinen <martti.kuparinen@ericsson.com>
#
# $FreeBSD$
#
PORTNAME= jdk-doc
PORTVERSION= 1.1.8
CATEGORIES= java
MASTER_SITES= #
DISTNAME= jdk-1_1_8_003-doc
MAINTAINER= ernst@jollem.com
NO_CDROM= "License does not allow distribution with fee."
RESTRICTED= "This software is under license and export control."
.if defined(BATCH) || defined(PACKAGE_BUILDING)
IGNORE= "You can not legally distribute packages"
.endif
PLIST_SUB+= JDK_HOME=${JDK_HOME:S/^${PREFIX}\///}
JDK_HOME?= ${PREFIX}/jdk${PORTVERSION}
WRKSRC= ${WRKDIR}/jdk${PORTVERSION}
NO_BUILD= yes
.include <bsd.port.pre.mk>
.for file in ${DISTFILES}
.if !exists(${DISTDIR}/${file})
IGNORE=You must manually fetch ${file} from http://java.sun.com/jdk/1.1/docs.html, place it in ${DISTDIR} and then run make again.
.endif
.endfor
do-install:
${MKDIR} ${PREFIX}/jdk${PORTVERSION}
${CP} -R ${WRKSRC}/docs ${PREFIX}/jdk${PORTVERSION}/
@${SED} "/%%JDK_HOME%%/s//${JDK_HOME:S/\//\\\//g}/" < ${PKGMESSAGE}
.include <bsd.port.post.mk>