summaryrefslogtreecommitdiff
path: root/java/jdk-doc/Makefile
blob: a1c346ac60d8cb1ccb948e205f8ad075c2e89017 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:	JDK documentation
# Version required:	1.1.8
# Date created:		Mon Mar  8 10:10:42 EET 1999
# Whom:			Martti Kuparinen <martti.kuparinen@ericsson.com>
#
# $FreeBSD$
#

DISTNAME=	jdk118-doc
PKGNAME=	jdk-doc-1.1.8
CATEGORIES=	java

MAINTAINER=	martti.kuparinen@ericsson.com

RESTRICTED=	"This software is under license and export control."
IS_INTERACTIVE=	"Requires manual fetch"
VERSION=	1.1.8
WRKSRC=		${WRKDIR}/jdk${VERSION}
NO_BUILD=	yes
PLIST_SUB+=	VERSION=${VERSION}

.include <bsd.port.pre.mk>

do-fetch:
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
	@${ECHO_MSG} ''
	@${ECHO_MSG} 'You have to fetch the documentation from'
	@${ECHO_MSG} '    http://java.sun.com/products/jdk/1.1/docs.html'
	@${ECHO_MSG} ''
	@${ECHO_MSG} 'Put ${DISTNAME}${EXTRACT_SUFX} in in ${DISTDIR}/ and run make again.'
	@${ECHO_MSG} ''
	@${ECHO_MSG} 'All this hassle is because of the license and export restrictions'
	@${ECHO_MSG} 'as described in'
	@${ECHO_MSG} '    http://java.sun.com/feedback/faq/downloading.html'
	@${ECHO_MSG} ''
	@${FALSE}
.endif

do-install:
	${MKDIR} ${PREFIX}/jdk${VERSION}
	(cd ${WRKSRC} && ${TAR} -cf - docs) \
		| (cd ${PREFIX}/jdk${VERSION} && ${TAR} -xf -)
	@${CAT} ${PKGMESSAGE} | ${SED} s+!!PREFIX!!+${PREFIX}+g

.include <bsd.port.post.mk>