blob: d397d2bcf2e146d1cc5809e96ab19bd1603510a2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# New ports collection makefile for: xalan-j
# Date created: 21 February 2001
# Whom: znerd@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= xalan-j
PORTVERSION= 2.4.1
CATEGORIES= java textproc
MASTER_SITES= http://xml.apache.org/dist/${PORTNAME}/
DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g}-src
MAINTAINER= znerd@FreeBSD.org
COMMENT= Apache XSLT processor for transforming XML documents
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/jakarta-ant
USE_JAVA= 1.2+
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/g}
ANT?= ${LOCALBASE}/bin/ant
ANT_OPTS= -Xmx16M
.if defined(NOPORTDOCS)
ANT_TARGET= jar
.else
ANT_TARGET= jar javadocs
.endif
JAVASHAREDIR= ${PREFIX}/share/java
JARDIR= ${JAVASHAREDIR}/classes
JARFILE= xalan.jar
do-configure:
${SED} 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/xalan.sh >${WRKDIR}/xalan
do-build:
@cd ${WRKSRC} && ${ANT} ${ANT_TARGET}
do-install:
@${ECHO} -n ">> Installing JAR as ${JARDIR}/${JARFILE}..."
@${CP} ${WRKSRC}/build/${JARFILE} ${JARDIR}/
@${ECHO} " [ DONE ]"
.if !defined(NOPORTDOCS)
@${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
@${CP} -r ${WRKSRC}/build/docs/apidocs/* ${DOCSDIR}
@${ECHO} " [ DONE ]"
.endif
.include <bsd.port.mk>
|