aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ant-xinclude-task/Makefile
blob: 25f4d9de6181959325d27ea1c913bdff68ca0f61 (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
# Created by: Ernst de Haan <znerd@FreeBSD.org>
# $FreeBSD$

PORTNAME=   xinclude-task
PORTVERSION=    0.2
PORTREVISION=   2
CATEGORIES= textproc java
MASTER_SITES=   http://people.freebsd.org/~znerd/xinclude-task/
PKGNAMEPREFIX=  ant-

MAINTAINER= ports@FreeBSD.org
COMMENT=    XInclude task for Jakarta Ant

BUILD_DEPENDS=  ${JAVAJARDIR}/xincluder.jar:${PORTSDIR}/textproc/xincluder

USE_JAVA=   yes
JAVA_VERSION=   1.6+
USE_ANT=    yes

ALL_TARGET= jar
.if !defined(NOPORTDOCS)
ALL_TARGET+=    apidocs
PORTDOCS=   *
.endif
MAKE_ENV+=  CLASSPATH=${JAVAJARDIR}/xincluder.jar

PLIST_FILES+=   %%JAVAJARDIR%%/${PORTNAME}.jar

do-install:
    @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
    @${MKDIR} ${JAVAJARDIR}
    @${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}.jar ${JAVAJARDIR}/
    @${ECHO_MSG} " [ DONE ]"

.if !defined(NOPORTDOCS)
    @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
    @cd ${WRKSRC}/build/apidocs && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} ";"
    @cd ${WRKSRC}/build/apidocs && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} ";"
    @${ECHO_MSG} " [ DONE ]"
.endif

.include <bsd.port.mk>