summaryrefslogtreecommitdiffstats
path: root/java/xalan-j/Makefile
blob: c8e5f521a5b532d6bb2e87024bd60cfebce93f11 (plain)
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
# New ports collection makefile for:	xalan-j
# Date created:		21 February 2001
# Whom:			znerd@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	xalan-j
PORTVERSION=	2.3.1
CATEGORIES=	java textproc
MASTER_SITES=	http://xml.apache.org/dist/${PORTNAME}/
DISTNAME=	${PORTNAME}_${PORTVERSION:S/./_/g}
#DISTFILES=	${DISTNAME}-src${EXTRACT_SUFX}
DISTFILES=	${DISTNAME}-bin${EXTRACT_SUFX}

MAINTAINER=	znerd@FreeBSD.org

#BUILD_DEPENDS=	ant:${PORTSDIR}/devel/jakarta-ant
USE_JAVA=	1.2+

#
# We'd love to build Xalan rather than install a binary release, but
# the doc build doesn't seem to work... :(
#
NO_BUILD=	YES

do-configure:
	${SED} 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/xalan.sh >${WRKDIR}/xalan

#do-build:
#	(cd ${WRKSRC} && ant jar)
#.if !defined(NOPORTDOCS)
#	(cd ${WRKSRC} && env CLASSPATH=${WRKSRC}/build/xalan.jar:${CLASSPATH} \
#		ant docs javadocs)
#.endif

do-install:
	${INSTALL_DATA} ${WRKSRC}/bin/xalan.jar ${WRKSRC}/bin/xml-apis.jar \
		${PREFIX}/share/java/classes
	${INSTALL_SCRIPT} ${WRKDIR}/xalan ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	(cd ${WRKSRC}/docs && \
		${TAR} -cf - . | ${TAR} -xf - -C ${DOCSDIR})
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud