freebsd-ports/textproc/saxon/Makefile
Greg Lewis b387cb1a4e . Register CONFLICTS with the saxon-devel port. [1]
. Use %%JAVAJARDIR%% in PLIST_FILES now that bsd.java.mk sets it.

PR:		68637 [1]
Submitted by:	Herve Quiroz <herve.quiroz@esil.univ-mrs.fr> [1]
2004-07-07 20:38:10 +00:00

69 lines
2 KiB
Makefile

# New ports collection makefile for: saxon
# Date created: 30 January 2002
# Whom: Kimura Fuyuki <fuyuki@mj.0038.net>
#
# $FreeBSD$
#
PORTNAME= saxon
PORTVERSION= 6.5.3
PORTREVISION= 1
CATEGORIES= textproc java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= saxon
DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/g}
MAINTAINER= ports@FreeBSD.org
COMMENT= An XSLT processor for Java
RUN_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.1+
NO_WRKSUBDIR= yes
NO_BUILD= yes
CONFLICTS= saxon-devel-8.*
JARFILES= saxon-jdom.jar saxon.jar
PLIST_FILES+= ${JARFILES:S,^,%%JAVAJARDIR%%/,} bin/saxon
.if !defined(NOPORTDOCS)
PORTDOCS= api api-guide.html changes.html changes5.html conditions.html conformance.html dtdgen.html expressions.html extensibility.html extensions.html history.html index.html instant.html patterns.html samples.html saxon-style.css using-xsl.html xsl-elements.html
.endif
post-extract:
@${RMDIR} ${WRKSRC}/samples/ot
do-configure:
@${SED} 's|%%PREFIX%%|${PREFIX}|g ; s|%%JAVAJARDIR%%|${JAVAJARDIR}|g' \
${FILESDIR}/saxon.sh >${WRKSRC}/saxon
do-install:
@${ECHO_MSG} -n ">> Installing JARs in ${JAVAJARDIR}..."
@${MKDIR} ${JAVAJARDIR}
.for JARFILE in ${JARFILES}
@${ECHO_MSG} -n " ${JARFILE}"
@${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${JAVAJARDIR}/
.endfor
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}..."
@${MKDIR} ${EXAMPLESDIR}
@${CP} -R ${WRKSRC}/samples/* ${EXAMPLESDIR}/
@${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
@${ECHO_MSG} " [ DONE ]"
.if !defined(NOPORTDOCS)
@${ECHO_MSG} -n ">> Installing documentation..."
@${MKDIR} ${DOCSDIR}
.for DOCFILE in ${PORTDOCS}
@${ECHO_MSG} -n " ${DOCFILE}"
@${CP} -R ${WRKSRC}/doc/${DOCFILE} ${DOCSDIR}/
.endfor
@${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@${ECHO_MSG} " [ DONE ]"
.endif
@${ECHO_MSG} -n ">> Installing script in ${PREFIX}/bin..."
@${INSTALL_SCRIPT} ${WRKSRC}/saxon ${PREFIX}/bin/
@${ECHO_MSG} " [ DONE ]"
.include <bsd.port.mk>