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

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

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

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

PLIST_FILES=    %%JAVAJARDIR%%/${PORTNAME}.jar

do-install:
    @${INSTALL_DATA} ${WRKDIR}/build/bin/iText.jar \
        ${JAVAJARDIR}/${PORTNAME}.jar
.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>