diff options
Diffstat (limited to 'textproc/xmlenc/Makefile')
-rw-r--r-- | textproc/xmlenc/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/textproc/xmlenc/Makefile b/textproc/xmlenc/Makefile index 4df5924b3265..beb50a6026ad 100644 --- a/textproc/xmlenc/Makefile +++ b/textproc/xmlenc/Makefile @@ -6,7 +6,7 @@ # PORTNAME= xmlenc -PORTVERSION= 0.44 +PORTVERSION= 0.46 CATEGORIES= textproc java MASTER_SITES= http://${PORTNAME}.sourceforge.net/ @@ -15,6 +15,7 @@ COMMENT= Light-weight XML encoding library for Java USE_JAVA= yes USE_ANT= yes +USE_REINPLACE= yes .if defined(NOPORTDOCS) ALL_TARGET= jar @@ -25,6 +26,16 @@ PORTDOCS= * JARFILE= ${PORTNAME}.jar PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} +.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.srcdir.j2se=${JDK_API} + +do-configure: + ${REINPLACE_CMD} -e 's,http://java.sun.com/j2se/1.3/docs/api,${JDK_API},' ${WRKSRC}/build.xml +.endif + do-install: @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..." @${MKDIR} ${JAVAJARDIR} @@ -39,4 +50,4 @@ do-install: @${ECHO_MSG} " [ DONE ]" .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |