diff options
-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} |