aboutsummaryrefslogtreecommitdiffstats
path: root/java/jdk12-doc/Makefile
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2001-05-31 14:09:27 +0800
committerdougb <dougb@FreeBSD.org>2001-05-31 14:09:27 +0800
commit66562dbb1c7df3ed44753f4f09b13c8de6e223e9 (patch)
tree147b01c0fec16633d99d38670114062b5989ed09 /java/jdk12-doc/Makefile
parentfae13701230faa981541edf1e74b6e97104ca4cd (diff)
downloadfreebsd-ports-gnome-66562dbb1c7df3ed44753f4f09b13c8de6e223e9.tar.gz
freebsd-ports-gnome-66562dbb1c7df3ed44753f4f09b13c8de6e223e9.tar.zst
freebsd-ports-gnome-66562dbb1c7df3ed44753f4f09b13c8de6e223e9.zip
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
Diffstat (limited to 'java/jdk12-doc/Makefile')
-rw-r--r--java/jdk12-doc/Makefile34
1 files changed, 17 insertions, 17 deletions
diff --git a/java/jdk12-doc/Makefile b/java/jdk12-doc/Makefile
index 244a3c5cb952..f18463c022ee 100644
--- a/java/jdk12-doc/Makefile
+++ b/java/jdk12-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>