aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/batik/Makefile
blob: e855a1b30aa6e20c26dfc6223f27cb910271afcf (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
# ex:ts=8
# Ports collection makefile for:    batik
# Date created:         Feb 25, 2004
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   batik
PORTVERSION=    1.5.1
CATEGORIES= graphics java
MASTER_SITES=   ${MASTER_SITE_APACHE_XML}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}-src-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    SVG Toolkit

BUILD_DEPENDS=  ${ANT}:${PORTSDIR}/devel/apache-ant

USE_ZIP=    yes
USE_JAVA=   1.3+
NEED_JAVAC= yes
WRKSRC=     ${WRKDIR}/xml-${PORTNAME}
ANT?=       /usr/local/bin/ant
ANT_ALL_TARGET= jars
BATIK_HOME= ${PREFIX}/batik

.if !defined(NOPORTDOCS)
ANT_ALL_TARGET+=    html
.endif

do-build:
    @cd ${WRKSRC} && ${ANT} ${ANT_ALL_TARGET}

do-install:
    @${MKDIR} ${BATIK_HOME}
    @${CP} -R ${WRKSRC}/${PORTNAME}-${PORTVERSION} ${BATIK_HOME}
    @${FIND} ${BATIK_HOME} -type f | \
        ${SED} -e "s,^${PREFIX}/,," >> ${TMPPLIST}
    @${FIND} ${BATIK_HOME} -type d | ${SORT} -r | \
        ${SED} -e "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}

.include <bsd.port.mk>