aboutsummaryrefslogtreecommitdiffstats
path: root/java/jdk12-doc/Makefile
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-10-08 17:17:17 +0800
committersobomax <sobomax@FreeBSD.org>2001-10-08 17:17:17 +0800
commitebaa012616d2aaa86630092a71462af4dc5c0058 (patch)
tree2789b5f92a6a5a57079518aa1438d2628dc4679d /java/jdk12-doc/Makefile
parent894a9e20f220257a0871995c76444b2c7108623d (diff)
downloadfreebsd-ports-gnome-ebaa012616d2aaa86630092a71462af4dc5c0058.tar.gz
freebsd-ports-gnome-ebaa012616d2aaa86630092a71462af4dc5c0058.tar.zst
freebsd-ports-gnome-ebaa012616d2aaa86630092a71462af4dc5c0058.zip
Move jdk-doc into jdk11-doc and add new jdk{12,13,14}-doc ports.
PR: 28183 Submitted by: Ernst de Haan <ernst@jollem.com> Repo-copy by: jdp
Diffstat (limited to 'java/jdk12-doc/Makefile')
-rw-r--r--java/jdk12-doc/Makefile26
1 files changed, 14 insertions, 12 deletions
diff --git a/java/jdk12-doc/Makefile b/java/jdk12-doc/Makefile
index ec8a09c78a12..89ae07c88966 100644
--- a/java/jdk12-doc/Makefile
+++ b/java/jdk12-doc/Makefile
@@ -1,15 +1,15 @@
-# New ports collection makefile for: JDK documentation
-# Date created: Mon Mar 8 10:10:42 EET 1999
-# Whom: Martti Kuparinen <martti.kuparinen@ericsson.com>
+# New ports collection makefile for: jdk-doc-1.2
+# Date created: June 1, 2001
+# Whom: Ernst de Haan <ernst@jollem.com>
#
# $FreeBSD$
#
PORTNAME= jdk-doc
-PORTVERSION= 1.1.8
+PORTVERSION= ${JDK_VERSION:S/_/./g}
CATEGORIES= java
MASTER_SITES= #
-DISTNAME= jdk-1_1_8_003-doc
+DISTNAME= jdk-${JDK_VERSION:S/./_/g}-doc
MAINTAINER= ernst@jollem.com
@@ -20,22 +20,24 @@ RESTRICTED= "This software is under license and export control."
IGNORE= "You cannot legally distribute packages"
.endif
-PLIST_SUB+= JDK_HOME=${JDK_HOME:S/^${PREFIX}\///}
-JDK_HOME?= ${PREFIX}/jdk${PORTVERSION}
+PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
+TARGET_DIR?= ${PREFIX}/share/doc/jdk${JDK_MAJOR_VER}
-WRKSRC= ${WRKDIR}/jdk${PORTVERSION}
+WRKSRC= ${WRKDIR}/jdk${JDK_VERSION:C/_.*\$//g}/docs
+JDK_VERSION= 1.2.2_006
+JDK_MAJOR_VER= ${JDK_VERSION:R}
+DOWNLOAD_URL= http://java.sun.com/jdk/${JDK_MAJOR_VER}/download-docs.html
NO_BUILD= yes
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
-IGNORE=You must manually fetch ${DISTNAME}${EXTRACT_SUFX} from http://java.sun.com/jdk/1.1/docs.html, place it in ${DISTDIR} and then run make again
+IGNORE=You must manually fetch ${DISTNAME}${EXTRACT_SUFX} from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
.endif
do-install:
- ${MKDIR} ${PREFIX}/jdk${PORTVERSION}
- ${CP} -R ${WRKSRC}/docs ${PREFIX}/jdk${PORTVERSION}/
- @${SED} "/%%JDK_HOME%%/s//${JDK_HOME:S/\//\\\//g}/" < ${PKGMESSAGE}
+ ${MKDIR} ${TARGET_DIR}
+ ${CP} -r ${WRKSRC}/* ${TARGET_DIR}
.include <bsd.port.post.mk>