1999-03-18 06:16:45 +01:00
|
|
|
# New ports collection makefile for: JDK documentation
|
|
|
|
# Date created: Mon Mar 8 10:10:42 EET 1999
|
|
|
|
# Whom: Martti Kuparinen <martti.kuparinen@ericsson.com>
|
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1999-03-18 06:16:45 +01:00
|
|
|
#
|
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= jdk-doc
|
2001-10-08 11:17:17 +02:00
|
|
|
PORTVERSION= ${JDK_VERSION:S/_/./g}
|
1999-06-28 04:24:57 +02:00
|
|
|
CATEGORIES= java
|
2001-05-31 08:09:27 +02:00
|
|
|
MASTER_SITES= #
|
2001-10-08 11:17:17 +02:00
|
|
|
DISTNAME= jdk-${JDK_VERSION:S/./_/g}-doc
|
1999-03-18 06:16:45 +01:00
|
|
|
|
2001-05-31 08:09:27 +02:00
|
|
|
MAINTAINER= ernst@jollem.com
|
1999-03-18 06:16:45 +01:00
|
|
|
|
2001-05-31 08:09:27 +02:00
|
|
|
NO_CDROM= "License does not allow distribution with fee."
|
1999-03-18 06:16:45 +01:00
|
|
|
RESTRICTED= "This software is under license and export control."
|
2001-05-31 08:09:27 +02:00
|
|
|
|
|
|
|
.if defined(BATCH) || defined(PACKAGE_BUILDING)
|
2001-05-31 11:19:23 +02:00
|
|
|
IGNORE= "You cannot legally distribute packages"
|
2001-05-31 08:09:27 +02:00
|
|
|
.endif
|
|
|
|
|
2001-10-08 11:17:17 +02:00
|
|
|
PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
|
|
|
|
TARGET_DIR?= ${PREFIX}/share/doc/jdk${JDK_MAJOR_VER}
|
2001-05-31 08:09:27 +02:00
|
|
|
|
2001-10-08 11:17:17 +02:00
|
|
|
WRKSRC= ${WRKDIR}/jdk${JDK_VERSION:C/_.*\$//g}/docs
|
|
|
|
JDK_VERSION= 1.1.8_003
|
|
|
|
JDK_MAJOR_VER= ${JDK_VERSION:R}
|
2001-10-08 14:45:29 +02:00
|
|
|
DOWNLOAD_URL= http://java.sun.com/jdk/${JDK_MAJOR_VER}/docs.html
|
2001-05-31 08:09:27 +02:00
|
|
|
|
1999-03-18 06:16:45 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-05-31 11:19:23 +02:00
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
2001-10-08 11:17:17 +02:00
|
|
|
IGNORE=You must manually fetch ${DISTNAME}${EXTRACT_SUFX} from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
|
1999-03-18 06:16:45 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2001-10-08 11:17:17 +02:00
|
|
|
${MKDIR} ${TARGET_DIR}
|
|
|
|
${CP} -r ${WRKSRC}/* ${TARGET_DIR}
|
1999-03-22 03:21:30 +01:00
|
|
|
|
1999-05-06 02:14:04 +02:00
|
|
|
.include <bsd.port.post.mk>
|