summaryrefslogtreecommitdiff
path: root/devel/itext/Makefile
blob: f1a1ef62eb5be3f8250b25cf224bb146afcb73b6 (plain)
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
56
57
58
59
60
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$

PORTNAME=	itext
PORTVERSION=	4.2.0
PORTREVISION=	4
PORTEPOCH=	1
CATEGORIES=	devel java
MASTER_SITES=	LOCAL/ale

MAINTAINER=	ale@FreeBSD.org
COMMENT=	Java-PDF Library

LICENSE=	MPL LGPL20
LICENSE_COMB=	dual

BUILD_DEPENDS=	${JAVAJARDIR}/bcmail.jar:java/bouncycastle \
		${JAVAJARDIR}/dom4j.jar:textproc/dom4j \
		${JAVAJARDIR}/pdf-renderer.jar:print/pdf-renderer
RUN_DEPENDS=	${JAVAJARDIR}/bcmail.jar:java/bouncycastle \
		${JAVAJARDIR}/dom4j.jar:textproc/dom4j \
		${JAVAJARDIR}/pdf-renderer.jar:print/pdf-renderer

OPTIONS_DEFINE=	DOCS

USES=		tar:bzip2
USE_JAVA=	yes
JAVA_VERSION=	1.6+
USE_ANT=	yes
ALL_TARGET=	jar jar.rtf jar.rups
MAKE_ENV=	ANT_INCLUDE_SHARED_JARS=YES

PLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}.jar \
		%%JAVAJARDIR%%/${PORTNAME}-rtf.jar \
		%%JAVAJARDIR%%/${PORTNAME}-rups.jar \
		bin/${PORTNAME}-rups

PORTDOCS=	*

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET+=	javadoc
.endif

do-install:
	@${INSTALL_DATA} ${WRKDIR}/lib/iText.jar \
		${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
	@${INSTALL_DATA} ${WRKDIR}/lib/iText-rtf.jar \
		${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-rtf.jar
	@${INSTALL_DATA} ${WRKDIR}/lib/iText-rups.jar \
		${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-rups.jar
	@${INSTALL_SCRIPT} ${FILESDIR}/${PORTNAME}-rups \
		${STAGEDIR}${PREFIX}/bin/
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/apidocs
	(cd ${WRKDIR}/build/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/apidocs)
.endif

.include <bsd.port.mk>