# Created by: Ernst de Haan # $FreeBSD$ PORTNAME= xmlenc PORTVERSION= 0.52 PORTREVISION= 2 CATEGORIES= textproc java MASTER_SITES= SF EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= Light-weight XML encoding library for Java USE_JAVA= yes USE_ANT= yes OPTIONS_DEFINE= DOCS ALL_TARGET= jar DOCS_ALL_TARGET=javadoc PORTDOCS= * JARFILE= ${PORTNAME}.jar PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} .include JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.? -maxdepth 1 -name api -type d 2>/dev/null || ${ECHO_CMD}) | ${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}..." @${INSTALL_DATA} ${WRKSRC}/build/${JARFILE} ${STAGEDIR}${JAVAJARDIR}/ @${ECHO_MSG} " [ DONE ]" .if ${PORT_OPTIONS:MDOCS} @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..." @cd ${WRKSRC}/build/javadoc/ \ && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \ && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \; @${ECHO_MSG} " [ DONE ]" .endif .include