aboutsummaryrefslogtreecommitdiffstats
path: root/devel/itext/Makefile
blob: e8aad97c5e124d26182bffb260ce61f02b7b70fb (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
56
57
58
59
60
# ex:ts=8
# Ports collection makefile for:    itext
# Date created:         Apr 2, 2004
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   itext
PORTVERSION=    2.1.3
PORTREVISION=   1
PORTEPOCH=  1
CATEGORIES= devel java
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   iText-src-${PORTVERSION}

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

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

WRKSRC=     ${WRKDIR}/src
EXTRACT_AFTER_ARGS= | (${MKDIR} ${WRKDIR} && ${TAR} -xf - -C ${WRKDIR})
USE_JAVA=   yes
JAVA_VERSION=   1.4+
USE_ANT=    yes
ALL_TARGET= jar jar.rtf jar.rups
MAKE_ENV=   ANT_INCLUDE_SHARED_JARS=YES
.if !defined(NOPORTDOCS)
ALL_TARGET+=    javadoc
PORTDOCS=   *
.endif

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

do-install:
    @${INSTALL_DATA} ${WRKDIR}/lib/iText.jar \
        ${JAVAJARDIR}/${PORTNAME}.jar
    @${INSTALL_DATA} ${WRKDIR}/lib/iText-rtf.jar \
        ${JAVAJARDIR}/${PORTNAME}-rtf.jar
    @${INSTALL_DATA} ${WRKDIR}/lib/iText-rups.jar \
        ${JAVAJARDIR}/${PORTNAME}-rups.jar
    @${INSTALL_SCRIPT} ${FILESDIR}/${PORTNAME}-rups \
        ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}/apidocs
    @${CP} -R ${WRKDIR}/build/docs/* ${DOCSDIR}/apidocs
    @${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}/apidocs
.endif

.include <bsd.port.mk>