blob: bfee785e0080e34543fe5983d485d12d66fbd261 (
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
54
55
|
# Created by: KIRIYAMA Kazuhiko <kiri@FreeBSD.org>
# $FreeBSD$
PORTNAME= fop
PORTVERSION= 2.2
CATEGORIES= textproc java
MASTER_SITES= APACHE/xmlgraphics/fop/source/:fop \
SF/offo/offo-hyphenation/${PORTVERSION}:hyph
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
DISTFILES= ${DISTNAME}.tar.gz:fop offo-hyphenation.zip:hyph
EXTRACT_ONLY= ${DISTNAME}.tar.gz
MAINTAINER= geoff@sea-incorporated.com
COMMENT= Print formatter driven by XSL formatting
LICENSE= APACHE20
LICENSE_FILE= ${LEGALDIR}/LICENSE
EXTRACT_DEPENDS+= ${UNZIP_CMD}:archivers/unzip
OPTIONS_DEFINE= DOCS
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}/fop
LEGALDIR= ${WRKDIR}/${DISTNAME:S/-src//}
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PORTDOCS= *
USE_JAVA= yes
JAVA_VERSION= 1.6+
USE_ANT= yes
NO_ARCH= yes
# Prevent out of memory error during build
MAKE_ENV+= "ANT_OPTS=-Xmx512m"
post-extract:
@cd ${WRKDIR} && ${UNZIP_CMD} ${DISTDIR}/offo-hyphenation.zip
@${CP} ${WRKDIR}/offo-hyphenation/hyph/*.xml ${WRKSRC}/hyph
do-install:
.for d in build conf lib
@${MKDIR} ${STAGEDIR}${DATADIR}/${d}
.endfor
@cd ${WRKSRC} && \
${INSTALL_DATA} build/*.[jw]ar ${STAGEDIR}${DATADIR}/build && \
${INSTALL_DATA} lib/*.jar lib/README.txt ${STAGEDIR}${DATADIR}/lib && \
${INSTALL_DATA} conf/fop.xconf ${STAGEDIR}${DATADIR}/conf && \
${COPYTREE_SHARE} hyph ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${DATADIR}
${LN} -s ${DATADIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${LEGALDIR} && ${INSTALL_MAN} LICENSE README NOTICE KEYS ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|