summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2004-12-09 13:10:42 +0000
committerHerve Quiroz <hq@FreeBSD.org>2004-12-09 13:10:42 +0000
commit4ec3691edf1256b6b25e6c8ba60313c05cfa7f85 (patch)
treed5469e47c6236d3701f4d2e04a669dd73bb04fff /dns
parent- File on master site is Forbidden, use Gentoo mirrors for now. (diff)
- Fix build [1]
- Link API documentation with JDK Standard API documentation, if installed Reported by: krion via pointyhat [1]
Notes
Notes: svn path=/head/; revision=123559
Diffstat (limited to 'dns')
-rw-r--r--dns/dnsjava/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/dns/dnsjava/Makefile b/dns/dnsjava/Makefile
index 1cb36af0d58e..3db3a129ecd6 100644
--- a/dns/dnsjava/Makefile
+++ b/dns/dnsjava/Makefile
@@ -20,7 +20,7 @@ JAVA_VERSION= 1.2+
USE_ANT= yes
ALL_TARGET= jar
.if !defined(NOPORTDOCS)
-ALL_TARGET+= docsclean docs
+ALL_TARGET+= docs
.endif
SAMPLE_FILES= examples.html USAGE dig.java jnamed.java lookup.java update.java
@@ -33,6 +33,15 @@ PORTDOCS= apidocs ${OTHERDOCS}
.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+= -Dj2se.javadoc="${JDK_API}"
+.endif
+
+post-extract:
+ @${RM} -rf ${WRKSRC}/doc
+ @${MKDIR} ${WRKSRC}/doc
+
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${MKDIR} ${JAVAJARDIR}