diff options
author | hq <hq@FreeBSD.org> | 2004-12-09 21:10:42 +0800 |
---|---|---|
committer | hq <hq@FreeBSD.org> | 2004-12-09 21:10:42 +0800 |
commit | a3abb9f6814e4bdba5f5f8552f6481ef18f35fe8 (patch) | |
tree | a5f18073240a57d18ff3403e2983d33277e0e7f0 /dns | |
parent | 41a92aa215e088a6d3f2a0565a7885b85d6590a0 (diff) | |
download | freebsd-ports-gnome-a3abb9f6814e4bdba5f5f8552f6481ef18f35fe8.tar.gz freebsd-ports-gnome-a3abb9f6814e4bdba5f5f8552f6481ef18f35fe8.tar.zst freebsd-ports-gnome-a3abb9f6814e4bdba5f5f8552f6481ef18f35fe8.zip |
- Fix build [1]
- Link API documentation with JDK Standard API documentation, if installed
Reported by: krion via pointyhat [1]
Diffstat (limited to 'dns')
-rw-r--r-- | dns/dnsjava/Makefile | 11 |
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} |