aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/xalan-j/Makefile
blob: 6011cf3e8ee35b697df88d5590c2bd5658190ed8 (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
52
53
# New ports collection makefile for:    xalan-j
# Date created:     21 February 2001
# Whom:         znerd@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   xalan-j
PORTVERSION=    2.6.0
CATEGORIES= textproc java
MASTER_SITES=   ${MASTER_SITE_APACHE_XML}
MASTER_SITE_SUBDIR= ${PORTNAME}/source
DISTNAME=   ${PORTNAME}_${PORTVERSION:S/./_/g}-src

MAINTAINER= hq@FreeBSD.org
COMMENT=    Apache XSLT processor for transforming XML documents

RUN_DEPENDS=    ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper \
        ${JAVAJARDIR:S,^${PREFIX},${LOCALBASE},}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j

USE_JAVA=   yes
JAVA_VERSION=   1.2+
USE_ANT=    yes

WRKSRC=     ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/g}
ALL_TARGET= jar
.if !defined(NOPORTDOCS)
ALL_TARGET+=    javadocs
PORTDOCS=   apidocs design
.endif
JARFILE=    xalan.jar
PLIST_FILES=    %%JAVAJARDIR%%/${JARFILE} bin/xalan-j

do-configure:
    @${SED} 's|%%LOCALBASE%%|${LOCALBASE}|g ; s|%%JAVAJARDIR%%|${JAVAJARDIR}|g' ${FILESDIR}/xalan.sh >${WRKDIR}/xalan-j

do-install:
    @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..."
    @${MKDIR} ${JAVAJARDIR}
    @${INSTALL_DATA} ${WRKSRC}/build/${JARFILE} ${JAVAJARDIR}/
    @${ECHO_MSG} " [ DONE ]"
.if !defined(NOPORTDOCS)
    @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
    @${MKDIR} ${DOCSDIR}
    @cd ${WRKSRC}/build/docs && ${FIND} ${PORTDOCS} \
      | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
    @${ECHO_MSG} " [ DONE ]"
.endif
    @${ECHO_MSG} -n ">> Installing script in ${PREFIX}/bin/..."
    @${INSTALL_SCRIPT} ${WRKDIR}/xalan-j ${PREFIX}/bin/
    @${ECHO_MSG} " [ DONE ]"

.include <bsd.port.mk>