aboutsummaryrefslogtreecommitdiff
path: root/java/java-tutorial/Makefile
blob: a3a9eec760fe09a28a8105cafa62aae487a440a8 (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
# New ports collection makefile for:	JDK tutorial
# Version required:	1.1.8
# Date created:		Tue Mar 23 10:18:20 EET 1999
# Whom:			Martti Kuparinen <martti.kuparinen@ericsson.com>
#
# $Id: Makefile,v 1.6 1999/06/28 23:25:49 cpiazza Exp $
#

DISTNAME=	tutorial
PKGNAME=	jdk-tutorial-1.1.8
CATEGORIES=	java
MASTER_SITES=	ftp://ftp.javasoft.com/docs/

MAINTAINER=	martti.kuparinen@ericsson.com

VERSION=	1.1.8
WRKSRC=		${WRKDIR}
RESTRICTED=	"This software is under license and export control."
NO_BUILD=	yes
PLIST_SUB+=	VERSION=${VERSION}
PKGMESSAGE= ${WRKDIR}/MESSAGE

.include <bsd.port.pre.mk>

post-extract:
	(cd ${WRKSRC} && ${CHOWN} -R root.wheel *)

do-install:
	${MKDIR} ${PREFIX}/jdk${VERSION}/docs/books/tutorial
	(cd ${WRKSRC} && ${TAR} -cf - * ) \
	    | (cd ${PREFIX}/jdk${VERSION}/docs/books/tutorial && ${TAR} -xf -)
	@${SED} s+!!PREFIX!!+${PREFIX}+g < ${PKGDIR}/MESSAGE > ${PKGMESSAGE}
	@${CAT} ${PKGMESSAGE}
	@${RM} ${PKGMESSAGE}

.include <bsd.port.post.mk>