# Created by: Herve Quiroz # $FreeBSD: head/textproc/saxon-devel/Makefile 518482 2019-11-26 21:46:12Z jkim $ PORTNAME= saxon PORTVERSION= 9.1.0.8 PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= textproc java MASTER_SITES= SF/${PORTNAME}/Saxon-B/${PORTVERSION}:binary \ SF/${PORTNAME}/Saxon-B/9.1.0.7:resources PKGNAMESUFFIX= -devel DISTFILES= ${PORTNAME}b${PORTVERSION:S,.,-,g}j.zip:binary \ ${PORTNAME}-resources9-1-0-1.zip:resources MAINTAINER= ports@FreeBSD.org COMMENT= XSLT 2.0 / XPath 2.0 / XQuery 1.0 processor for Java OPTIONS_DEFINE= JDOM DOM4J XOM DOCS JDOM_DESC= Jdom support DOM4J_DESC= dom4j support XOM_DESC= XOM support USES= zip USE_JAVA= yes NO_WRKSUBDIR= yes NO_BUILD= yes CONFLICTS= saxon-6.* JARFILES= saxon9-sql.jar saxon9.jar saxon9-xpath.jar saxon9-dom.jar \ saxon9-xqj.jar saxon9-s9api.jar PLIST_FILES+= ${JARFILES:S,^,%%JAVAJARDIR%%/,} bin/saxon bin/saxon-xquery PORTDOCS= * .include .if ${PORT_OPTIONS:MJDOM} JARFILES+= saxon9-jdom.jar RUN_DEPENDS+= ${JAVALIBDIR}/jdom.jar:java/jdom .endif .if ${PORT_OPTIONS:MDOM4J} JARFILES+= saxon9-dom4j.jar RUN_DEPENDS+= ${JAVALIBDIR}/dom4j.jar:textproc/dom4j .endif .if ${PORT_OPTIONS:MXOM} JARFILES+= saxon9-xom.jar RUN_DEPENDS+= ${JAVALIBDIR}/xom.jar:textproc/xom .endif SUB_FILES= saxon.sh SUB_LIST= SAXON_JARS="${JARFILES:S,^,${JAVAJARDIR}/,}" do-install: @${ECHO_MSG} -n ">> Installing JARs in ${JAVAJARDIR}/..." @${MKDIR} ${STAGEDIR}${JAVAJARDIR} .for file in ${JARFILES} @${ECHO_MSG} -n " ${file}" ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${JAVAJARDIR}/ .endfor @${ECHO_MSG} " [ DONE ]" .if ${PORT_OPTIONS:MDOCS} @${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}/..." cd ${WRKSRC}/samples/ \ && ${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/ \ && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \ && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \; @${ECHO_MSG} " [ DONE ]" .endif @${ECHO_MSG} -n ">> Installing scripts in ${PREFIX}/bin..." .for scriptfile in saxon saxon-xquery @${ECHO_MSG} -n " ${scriptfile}" ${INSTALL_SCRIPT} ${WRKDIR}/saxon.sh ${STAGEDIR}${PREFIX}/bin/${scriptfile} .endfor @${ECHO_MSG} " [ DONE ]" post-install-DOCS-on: ${FIND} -s ${WRKSRC}/samples -not -type d | \ ${SED} -ne 's|^${WRKSRC}/samples|${EXAMPLESDIR:S,${PREFIX}/,,}|p' >> ${TMPPLIST} .include