mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
db0b3aa954
- No longer install saxon8-jdom.jar ; it will be back soon but as an OPTIONal component PR: 86093 Submitted by: Rene Ladan <r.c.ladan@student.tue.nl>
75 lines
2.2 KiB
Makefile
75 lines
2.2 KiB
Makefile
# New ports collection makefile for: saxon-devel
|
|
# Date created: 03 July 2004
|
|
# Whom: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= saxon
|
|
PORTVERSION= 8.5.1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= textproc java
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= saxon
|
|
PKGNAMESUFFIX= -devel
|
|
DISTNAME= ${PORTNAME}b${PORTVERSION:S,.,-,g}
|
|
|
|
MAINTAINER= hq@FreeBSD.org
|
|
COMMENT= An XSLT 2.0 / XPath 2.0 / XQuery 1.0 processor for Java
|
|
|
|
RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
|
|
|
|
USE_ZIP= yes
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.4+
|
|
NO_WRKSUBDIR= yes
|
|
NO_BUILD= yes
|
|
|
|
CONFLICTS= saxon-6.*
|
|
|
|
JARFILES= saxon8-sql.jar saxon8.jar
|
|
PLIST_FILES+= ${JARFILES:S,^,%%JAVAJARDIR%%/,} bin/saxon bin/saxon-xquery
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= background documentation img index.html
|
|
.endif
|
|
|
|
SUB_FILES= saxon.sh
|
|
SUB_LIST= SAXON_JARS="${JARFILES:S,^,${JAVAJARDIR}/,}"
|
|
|
|
do-install:
|
|
@${ECHO_MSG} -n ">> Installing JARs in ${JAVAJARDIR}/..."
|
|
@${MKDIR} ${JAVAJARDIR}
|
|
.for file in ${JARFILES}
|
|
@${ECHO_MSG} -n " ${file}"
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${JAVAJARDIR}/
|
|
.endfor
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}/..."
|
|
@cd ${WRKSRC}/samples/ \
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
|
|
@cd ${WRKSRC}/doc/ \
|
|
&& ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
|
|
&& ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${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} ${WRKSRC}/saxon.sh ${PREFIX}/bin/${scriptfile}
|
|
.endfor
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-install:
|
|
@${FIND} -s ${WRKSRC}/samples -not -type d | \
|
|
${SED} -ne 's,^${WRKSRC}/samples,${EXAMPLESDIR:S,${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
@${FIND} -s -d ${WRKSRC}/samples -type d | \
|
|
${SED} -ne 's,^${WRKSRC}/samples,@dirrm ${EXAMPLESDIR:S,${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|