2013-03-16 03:56:29 +01:00
# Created by: Greg Lewis <glewis@FreeBSD.org>
2007-08-19 22:22:13 +02:00
# $FreeBSD$
2013-10-18 16:17:16 +02:00
PORTNAME = jdk
2009-03-25 13:28:56 +01:00
PORTVERSION = ${ JDK_VERSION } .${ JDK_UPDATE_VER }
2007-08-19 22:22:13 +02:00
CATEGORIES = java
MASTER_SITES = #
2013-10-18 16:17:16 +02:00
PKGNAMESUFFIX = ${ JDK_CONCAT_VER } -doc
2012-12-30 07:50:10 +01:00
DISTNAME = jdk-6u30-apidocs
2007-08-19 22:22:13 +02:00
MAINTAINER = java@FreeBSD.org
COMMENT = Java Development Kit ${ JDK_MAJOR_VER } Documentation
DOCSDIR ?= ${ PREFIX } /share/doc/jdk${ JDK_MAJOR_VER }
2009-03-25 22:30:21 +01:00
NO_CDROM = License does not allow distribution with fee.
RESTRICTED = This documentation is under license and export control.
. i f d e f i n e d ( N O P O R T D O C S )
IGNORE = port only installs documentation
. e n d i f
2007-08-19 22:22:13 +02:00
WRKSRC = ${ WRKDIR } /docs
JDK_VERSION = 1.6.0
JDK_MAJOR_VER = ${ JDK_VERSION : R }
JDK_CONCAT_VER = ${ JDK_MAJOR_VER : S /.//g }
2012-12-30 07:50:10 +01:00
JDK_UPDATE_VER = 30
2010-10-02 05:47:29 +02:00
DOWNLOAD_URL = http://www.oracle.com/technetwork/java/javase/downloads/index.html
2007-08-19 22:22:13 +02:00
NO_BUILD = yes
2014-03-10 16:21:21 +01:00
USES = zip
2007-08-19 22:22:13 +02:00
PORTDOCS = *
2013-09-20 21:48:32 +02:00
NO_STAGE = yes
2007-08-19 22:22:13 +02:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2013-08-29 16:16:03 +02:00
. i f ! e x i s t s ( $ { D I S T D I R } / $ { D I S T N A M E } $ { E X T R A C T _ S U F X } )
2013-03-16 03:56:29 +01:00
IGNORE = you must manually fetch ${ DISTNAME } ${ EXTRACT_SUFX } from ${ DOWNLOAD_URL } by selecting the "Download" link for the "Java SE 6 Documentation" , place it in ${ DISTDIR } and then run make again
2007-08-19 22:22:13 +02:00
. e n d i f
do-install :
@${ ECHO } -n " >> Installing documentation in ${ DOCSDIR } ... "
@${ MKDIR } ${ DOCSDIR }
@( cd ${ WRKSRC } / && ${ COPYTREE_SHARE } \* ${ DOCSDIR } /)
@${ ECHO } " [ DONE ]"
. i n c l u d e < b s d . p o r t . p o s t . m k >