1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/textproc/xalan-j/Makefile

63 lines
1.6 KiB
Makefile
Raw Normal View History

# Created by: znerd@FreeBSD.org
# $FreeBSD$
PORTNAME= xalan-j
PORTVERSION= 2.7.2
CATEGORIES= textproc java
MASTER_SITES= APACHE/xalan/xalan-j/binaries
DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g}-bin
MAINTAINER= ale@FreeBSD.org
COMMENT= Apache XSLT processor for transforming XML documents
2014-05-13 12:39:17 +00:00
LICENSE= APACHE20
RUN_DEPENDS= ${JAVALIBDIR}/xml-apis.jar:textproc/xerces-j
2014-05-13 12:39:17 +00:00
OPTIONS_DEFINE= DOCS EXAMPLES
USES= cpe
CPE_PRODUCT= xalan-java
CPE_VENDOR= apache
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/g}
PORTDOCS= *
PORTEXAMPLES= *
JARFILES= xalan.jar serializer.jar
PLIST_FILES= ${JARFILES:S|^|%%JAVAJARDIR%%/|} bin/xalan-j
SUB_FILES= xalan-j.sh
2014-05-13 12:39:17 +00:00
.include <bsd.port.options.mk>
do-install:
@${ECHO_MSG} -n ">> Installing JAR files in ${JAVAJARDIR}..."
.for jarfile in ${JARFILES}
2014-05-13 12:39:17 +00:00
@${INSTALL_DATA} ${WRKSRC}/${jarfile} ${STAGEDIR}${JAVAJARDIR}/
@${ECHO_MSG} -n " ${jarfile}"
.endfor
@${ECHO_MSG} " [ DONE ]"
2014-05-13 12:39:17 +00:00
.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
2014-05-13 12:39:17 +00:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
@${ECHO_MSG} " [ DONE ]"
.endif
2014-05-13 12:39:17 +00:00
.if ${PORT_OPTIONS:MEXAMPLES}
@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}..."
2014-05-13 12:39:17 +00:00
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/samples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
@${ECHO_MSG} " [ DONE ]"
2002-05-06 12:07:07 +00:00
.endif
@${ECHO_MSG} -n ">> Installing script in ${PREFIX}/bin/..."
2014-05-13 12:39:17 +00:00
@${INSTALL_SCRIPT} ${WRKDIR}/xalan-j.sh ${STAGEDIR}${PREFIX}/bin/xalan-j
@${ECHO_MSG} " [ DONE ]"
.include <bsd.port.mk>