2001-11-27 13:30:46 +01:00
|
|
|
# New ports collection makefile for: xalan-j
|
2001-03-16 04:48:25 +01:00
|
|
|
# Date created: 21 February 2001
|
2001-11-27 13:30:46 +01:00
|
|
|
# Whom: znerd@FreeBSD.org
|
2001-03-16 04:48:25 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xalan-j
|
2004-08-17 15:49:27 +02:00
|
|
|
PORTVERSION= 2.6.0
|
2004-01-22 18:59:27 +01:00
|
|
|
CATEGORIES= textproc java
|
2004-04-03 13:54:10 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE_XML}
|
2004-08-17 15:49:27 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/source
|
2002-10-18 23:25:45 +02:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g}-src
|
2001-03-16 04:48:25 +01:00
|
|
|
|
2004-12-03 02:01:33 +01:00
|
|
|
MAINTAINER= hq@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Apache XSLT processor for transforming XML documents
|
2001-03-16 04:48:25 +01:00
|
|
|
|
2004-08-17 15:49:27 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper \
|
|
|
|
${JAVAJARDIR:S,^${PREFIX},${LOCALBASE},}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j
|
2002-10-18 23:25:45 +02:00
|
|
|
|
2004-08-17 15:49:27 +02:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.2+
|
|
|
|
USE_ANT= yes
|
2001-03-16 04:48:25 +01:00
|
|
|
|
2002-10-18 23:25:45 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/g}
|
2004-08-17 15:49:27 +02:00
|
|
|
ALL_TARGET= jar
|
2004-04-03 13:54:10 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-08-17 15:49:27 +02:00
|
|
|
ALL_TARGET+= javadocs
|
|
|
|
PORTDOCS= apidocs design
|
2002-10-18 23:25:45 +02:00
|
|
|
.endif
|
|
|
|
JARFILE= xalan.jar
|
2004-08-17 15:49:27 +02:00
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} bin/xalan-j
|
2002-10-18 23:25:45 +02:00
|
|
|
|
2002-05-06 14:07:07 +02:00
|
|
|
do-configure:
|
2004-08-17 15:49:27 +02:00
|
|
|
@${SED} 's|%%LOCALBASE%%|${LOCALBASE}|g ; s|%%JAVAJARDIR%%|${JAVAJARDIR}|g' ${FILESDIR}/xalan.sh >${WRKDIR}/xalan-j
|
2001-05-29 17:58:54 +02:00
|
|
|
|
2001-03-16 04:48:25 +01:00
|
|
|
do-install:
|
2004-08-17 15:49:27 +02:00
|
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..."
|
|
|
|
@${MKDIR} ${JAVAJARDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/build/${JARFILE} ${JAVAJARDIR}/
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2002-05-06 14:07:07 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-08-17 15:49:27 +02:00
|
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
2004-09-01 17:38:42 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-08-17 15:49:27 +02:00
|
|
|
@cd ${WRKSRC}/build/docs && ${FIND} ${PORTDOCS} \
|
|
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2002-05-06 14:07:07 +02:00
|
|
|
.endif
|
2004-08-17 15:49:27 +02:00
|
|
|
@${ECHO_MSG} -n ">> Installing script in ${PREFIX}/bin/..."
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/xalan-j ${PREFIX}/bin/
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2001-03-16 04:48:25 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|