2004-04-07 10:32:09 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: itext
|
|
|
|
# Date created: Apr 2, 2004
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= itext
|
2008-04-09 11:40:17 +02:00
|
|
|
PORTVERSION= 2.1.0
|
2004-12-04 19:36:59 +01:00
|
|
|
PORTEPOCH= 1
|
2005-05-27 19:46:21 +02:00
|
|
|
CATEGORIES= devel java
|
2005-08-30 15:41:24 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
2004-04-07 10:32:09 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2007-12-22 13:04:25 +01:00
|
|
|
DISTNAME= iText-src-${PORTVERSION}
|
2004-04-07 10:32:09 +02:00
|
|
|
|
2006-05-07 15:32:13 +02:00
|
|
|
MAINTAINER= stefan@FreeBSD.org
|
2004-04-07 10:32:09 +02:00
|
|
|
COMMENT= A Java-PDF Library
|
|
|
|
|
2007-03-18 17:53:19 +01:00
|
|
|
BUILD_DEPENDS= ${JAVAJARDIR}/bcmail.jar:${PORTSDIR}/java/bouncycastle
|
|
|
|
RUN_DEPENDS= ${JAVAJARDIR}/bcmail.jar:${PORTSDIR}/java/bouncycastle
|
|
|
|
|
2005-10-03 15:35:23 +02:00
|
|
|
WRKSRC= ${WRKDIR}/src
|
|
|
|
EXTRACT_AFTER_ARGS= | (${MKDIR} ${WRKSRC} && ${TAR} -xf - -C ${WRKSRC})
|
2005-01-29 00:36:08 +01:00
|
|
|
USE_JAVA= yes
|
2007-03-18 17:53:19 +01:00
|
|
|
JAVA_VERSION= 1.4+
|
2005-10-03 15:35:23 +02:00
|
|
|
USE_ANT= yes
|
2008-04-09 11:40:17 +02:00
|
|
|
ALL_TARGET= jar jar.rtf
|
2007-03-18 17:53:19 +01:00
|
|
|
MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES
|
2005-10-03 15:35:23 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
ALL_TARGET+= javadoc
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
2004-04-07 10:32:09 +02:00
|
|
|
|
2008-04-09 11:40:17 +02:00
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar \
|
|
|
|
%%JAVAJARDIR%%/${PORTNAME}-rtf.jar
|
2004-04-07 10:32:09 +02:00
|
|
|
|
|
|
|
do-install:
|
2007-06-09 11:29:57 +02:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/lib/iText.jar \
|
2005-10-03 15:35:23 +02:00
|
|
|
${JAVAJARDIR}/${PORTNAME}.jar
|
2008-04-09 11:40:17 +02:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/lib/iText-rtf.jar \
|
|
|
|
${JAVAJARDIR}/${PORTNAME}-rtf.jar
|
2005-10-03 15:35:23 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}/apidocs
|
|
|
|
@${CP} -R ${WRKDIR}/build/docs/* ${DOCSDIR}/apidocs
|
|
|
|
@${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}/apidocs
|
|
|
|
.endif
|
2004-04-07 10:32:09 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|