summaryrefslogtreecommitdiff
path: root/java/jdk11-doc/Makefile
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2001-05-31 06:09:27 +0000
committerDoug Barton <dougb@FreeBSD.org>2001-05-31 06:09:27 +0000
commit81a3ccf57bb8845484e051f3c13fe25b4c26ab73 (patch)
tree9db16593ab5351107dff38078adbe0d5c1749bd9 /java/jdk11-doc/Makefile
parentFix for the latest -current. (sys/lock.h -> sys/mutex.h) (diff)
Update to jdk-1_1_8_003-doc and clean up the port some.
PR: ports/27784 Submitted by: Ernst de Haan ernst@jollem.com
Notes
Notes: svn path=/head/; revision=43337
Diffstat (limited to 'java/jdk11-doc/Makefile')
-rw-r--r--java/jdk11-doc/Makefile34
1 files changed, 17 insertions, 17 deletions
diff --git a/java/jdk11-doc/Makefile b/java/jdk11-doc/Makefile
index 244a3c5cb952..f18463c022ee 100644
--- a/java/jdk11-doc/Makefile
+++ b/java/jdk11-doc/Makefile
@@ -8,36 +8,36 @@
PORTNAME= jdk-doc
PORTVERSION= 1.1.8
CATEGORIES= java
+MASTER_SITES= #
DISTNAME= jdk-1_1_8_003-doc
-MAINTAINER= ports@freebsd.org
+MAINTAINER= ernst@jollem.com
+NO_CDROM= "License does not allow distribution with fee."
RESTRICTED= "This software is under license and export control."
-IS_INTERACTIVE= "Requires manual fetch"
+
+.if defined(BATCH) || defined(PACKAGE_BUILDING)
+IGNORE= "You can not legally distribute packages"
+.endif
+
+PLIST_SUB+= JDK_HOME=${JDK_HOME:S/^${PREFIX}\///}
+JDK_HOME?= ${PREFIX}/jdk${PORTVERSION}
+
WRKSRC= ${WRKDIR}/jdk${PORTVERSION}
+
NO_BUILD= yes
-PLIST_SUB+= VERSION=${PORTVERSION}
.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}
+.for file in ${DISTFILES}
+.if !exists(${DISTDIR}/${file})
+IGNORE=You must manually fetch ${file} from http://java.sun.com/jdk/1.1/docs.html, place it in ${DISTDIR} and then run make again.
.endif
+.endfor
do-install:
${MKDIR} ${PREFIX}/jdk${PORTVERSION}
${CP} -R ${WRKSRC}/docs ${PREFIX}/jdk${PORTVERSION}/
- @${SED} 's+\$${PREFIX}+${PREFIX}+g' ${PKGMESSAGE}
+ @${SED} "/%%JDK_HOME%%/s//${JDK_HOME:S/\//\\\//g}/" < ${PKGMESSAGE}
.include <bsd.port.post.mk>