summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2004-12-01 02:33:56 +0000
committerHerve Quiroz <hq@FreeBSD.org>2004-12-01 02:33:56 +0000
commita74cf3de63f1e40bed08f5616a44127830e3f9a1 (patch)
treedb6281ced9e18789cc2df99d0456ebf23ec07f3a /java
parent- relocate PKGMESSAGE and unbreak this port (diff)
Link API documentation with JDK API documentation, if installed.
Notes
Notes: svn path=/head/; revision=122859
Diffstat (limited to 'java')
-rw-r--r--java/jakarta-commons-collections/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/java/jakarta-commons-collections/Makefile b/java/jakarta-commons-collections/Makefile
index 1c95022a90d7..43ea6cc766b1 100644
--- a/java/jakarta-commons-collections/Makefile
+++ b/java/jakarta-commons-collections/Makefile
@@ -32,6 +32,13 @@ JARFILE= ${PORTNAME}-${PORTVERSION}.jar
DESTJARFILE= ${PORTNAME}.jar
PLIST_FILES+= %%JAVAJARDIR%%/${DESTJARFILE}
+.include <bsd.port.pre.mk>
+
+JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.? -maxdepth 1 -name api -type d 2>/dev/null || ${TRUE}) | ${TAIL} -n 1
+.if ${JDK_API} != ""
+MAKE_ARGS+= -Djavadoc.links=${JDK_API}
+.endif
+
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
@${MKDIR} ${JAVAJARDIR}
@@ -47,4 +54,4 @@ do-install:
@${ECHO_MSG} " [ DONE ]"
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>