2001-11-27 12:30:46 +00:00
|
|
|
# New ports collection makefile for: xalan-j
|
2001-03-16 03:48:25 +00:00
|
|
|
# Date created: 21 February 2001
|
2001-11-27 12:30:46 +00:00
|
|
|
# Whom: znerd@FreeBSD.org
|
2001-03-16 03:48:25 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xalan-j
|
2002-10-18 21:25:45 +00:00
|
|
|
PORTVERSION= 2.4.0
|
2001-03-16 03:48:25 +00:00
|
|
|
CATEGORIES= java textproc
|
2002-05-06 12:07:07 +00:00
|
|
|
MASTER_SITES= http://xml.apache.org/dist/${PORTNAME}/
|
2002-10-18 21:25:45 +00:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g}-src
|
2001-03-16 03:48:25 +00:00
|
|
|
|
2001-11-27 12:30:46 +00:00
|
|
|
MAINTAINER= znerd@FreeBSD.org
|
2001-03-16 03:48:25 +00:00
|
|
|
|
2002-10-18 21:25:45 +00:00
|
|
|
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/jakarta-ant
|
|
|
|
|
2002-05-06 12:07:07 +00:00
|
|
|
USE_JAVA= 1.2+
|
2001-03-16 03:48:25 +00:00
|
|
|
|
2002-10-18 21:25:45 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/g}
|
|
|
|
ANT?= ${LOCALBASE}/bin/ant
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
ANT_TARGET= jar
|
|
|
|
.else
|
|
|
|
ANT_TARGET= jar javadocs
|
|
|
|
.endif
|
|
|
|
JAVASHAREDIR= ${PREFIX}/share/java
|
|
|
|
JARDIR= ${JAVASHAREDIR}/classes
|
|
|
|
JARFILE= xalan.jar
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC} && ${ANT} ${ANT_TARGET}
|
2001-03-16 03:48:25 +00:00
|
|
|
|
2002-05-06 12:07:07 +00:00
|
|
|
do-configure:
|
|
|
|
${SED} 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/xalan.sh >${WRKDIR}/xalan
|
|
|
|
|
2002-10-18 21:25:45 +00:00
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC} && ${ANT} ${ANT_TARGET}
|
2001-05-29 15:58:54 +00:00
|
|
|
|
2001-03-16 03:48:25 +00:00
|
|
|
do-install:
|
2002-10-18 21:25:45 +00:00
|
|
|
@${ECHO} -n ">> Installing JAR as ${JARDIR}/${JARFILE}..."
|
|
|
|
@${CP} ${WRKSRC}/build/${JARFILE} ${JARDIR}/
|
|
|
|
@${ECHO} " [ DONE ]"
|
|
|
|
|
2002-05-06 12:07:07 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-18 21:25:45 +00:00
|
|
|
@${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${CP} -r ${WRKSRC}/build/docs/apidocs/* ${DOCSDIR}
|
|
|
|
@${ECHO} " [ DONE ]"
|
2002-05-06 12:07:07 +00:00
|
|
|
.endif
|
2001-03-16 03:48:25 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|