freebsd-ports/textproc/saxon/Makefile

60 lines
1.8 KiB
Makefile
Raw Normal View History

# Created by: Kimura Fuyuki <fuyuki@mj.0038.net>
# $FreeBSD$
PORTNAME= saxon
PORTVERSION= 6.5.5
CATEGORIES= textproc java
MASTER_SITES= SF/${PORTNAME}/saxon6/${PORTVERSION}
DISTNAME= ${PORTNAME}${PORTVERSION:S/./-/g}
MAINTAINER= ports@FreeBSD.org
COMMENT= XSLT 1.0 processor for Java
LICENSE= MPL
RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
2014-03-10 18:25:25 +01:00
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_WRKSUBDIR= yes
NO_BUILD= yes
CONFLICTS= saxon-devel-8.*
OPTIONS_DEFINE= DOCS EXAMPLES
2014-07-05 00:50:40 +02:00
JARFILES= saxon-jdom.jar saxon.jar
PLIST_FILES+= ${JARFILES:S,^,%%JAVAJARDIR%%/,} bin/saxon
PORTDOCS= api api-guide.html changes.html conditions.html \
conformance.html dtdgen.html expressions.html \
extensibility.html extensions.html index.html \
instant.html limitations.html patterns.html samples.html \
saxon-style.css using-xsl.html xsl-elements.html
SUB_LIST= SAXON_JARS="${JARFILES:S,^,${JAVAJARDIR}/,}"
SUB_FILES= saxon.sh
do-install:
@${ECHO_MSG} -n ">> Installing JARs in ${JAVAJARDIR}..."
.for JARFILE in ${JARFILES}
@${ECHO_MSG} -n " ${JARFILE}"
2014-07-05 00:50:40 +02:00
${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${STAGEDIR}${JAVAJARDIR}/
.endfor
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}..."
(cd ${WRKSRC}/samples/ && \
2014-06-11 11:57:12 +02:00
${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/{} \; && \
${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} \;)
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
(cd ${WRKSRC}/doc/ && \
2014-06-11 11:57:12 +02:00
${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; && \
${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;)
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing script in ${PREFIX}/bin..."
2014-07-05 00:50:40 +02:00
${INSTALL_SCRIPT} ${WRKDIR}/saxon.sh ${STAGEDIR}${PREFIX}/bin/saxon
@${ECHO_MSG} " [ DONE ]"
.include <bsd.port.mk>