aboutsummaryrefslogtreecommitdiff
path: root/textproc/fop/Makefile
blob: 4f3ce1e29dfcd8160bb89582b9691a614c4f8550 (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
# New ports collection makefile for:	Print formatter driven by XSL formatting
# Date created:		19 December 2000
# Whom:			KIRIYAMA Kazuhiko <kiri@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	fop
PORTVERSION=	0.93
CATEGORIES=	textproc java
MASTER_SITES=	${MASTER_SITE_APACHE:S/$/:fop/} \
	${MASTER_SITE_SOURCEFORGE:S/$/:hyph/}
MASTER_SITE_SUBDIR=	xmlgraphics/fop/:fop offo/:hyph
DISTNAME=	${PORTNAME}-${PORTVERSION}-src
#DATADIR=	${JAVASHAREDIR}/${PORTNAME}
DISTFILES=	${DISTNAME}.tar.gz:fop offo-hyphenation.zip:hyph
EXTRACT_ONLY=	${DISTNAME}.tar.gz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Print formatter driven by XSL formatting

EXTRACT_DEPENDS+=	unzip:${PORTSDIR}/archivers/unzip

WRKSRC=		${WRKDIR}/${DISTNAME:S/-src//}

USE_JAVA=	yes
JAVA_VERSION=	1.2+
USE_ANT=	yes

post-extract:
	cd ${WRKDIR} && ${UNZIP_CMD} ${DISTDIR}/offo-hyphenation.zip
	${CP} ${WRKDIR}/offo-hyphenation/hyph/*.xml ${WRKSRC}/hyph

do-install:
	${MKDIR} ${DATADIR}
	cd ${WRKSRC}; \
	  ${INSTALL_DATA} LICENSE README known-issues.xml status.xml build.xml ${DATADIR}/
	${INSTALL_SCRIPT} ${WRKSRC}/fop ${DATADIR}
	${INSTALL_SCRIPT} ${WRKSRC}/fop ${DATADIR}/fop
	${LN} -s ${DATADIR}/fop ${PREFIX}/bin/fop
	cd ${WRKSRC} \
	  && ${FIND} conf lib hyph build -type d -exec ${MKDIR} ${DATADIR}/{} \; \
	  && ${FIND} conf lib hyph build -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;

.include <bsd.port.mk>