2001-03-19 12:36:36 +01:00
|
|
|
# New ports collection makefile for: Print formatter driven by XSL formatting
|
|
|
|
# Date created: 19 December 2000
|
|
|
|
# Whom: KIRIYAMA Kazuhiko <kiri@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= fop
|
2010-10-16 16:58:14 +02:00
|
|
|
PORTVERSION= 1.0
|
2001-03-19 12:36:36 +01:00
|
|
|
CATEGORIES= textproc java
|
2007-04-19 12:59:41 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:fop/} \
|
2009-08-22 02:37:17 +02:00
|
|
|
SF/offo/offo-hyphenation/1.0:hyph
|
|
|
|
MASTER_SITE_SUBDIR= xmlgraphics/fop/source/:fop
|
2002-04-03 14:39:45 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
2007-04-19 12:59:41 +02:00
|
|
|
DISTFILES= ${DISTNAME}.tar.gz:fop offo-hyphenation.zip:hyph
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}.tar.gz
|
2001-03-19 12:36:36 +01:00
|
|
|
|
2010-10-15 11:35:02 +02:00
|
|
|
MAINTAINER= geoff@sea-incorporated.com
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Print formatter driven by XSL formatting
|
2001-03-19 12:36:36 +01:00
|
|
|
|
2007-04-22 15:26:26 +02:00
|
|
|
EXTRACT_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
|
2002-04-03 14:39:45 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
|
2009-01-10 17:10:48 +01:00
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
2001-03-19 12:36:36 +01:00
|
|
|
|
2004-12-24 04:22:49 +01:00
|
|
|
USE_JAVA= yes
|
2011-07-21 07:03:02 +02:00
|
|
|
JAVA_VERSION= 1.5+
|
2007-04-19 12:59:41 +02:00
|
|
|
USE_ANT= yes
|
2002-08-10 14:41:31 +02:00
|
|
|
|
2010-12-25 15:02:01 +01:00
|
|
|
# Prevent out of memory error during build
|
|
|
|
MAKE_ENV+= "ANT_OPTS=-Xmx512m"
|
|
|
|
|
2007-04-19 12:59:41 +02:00
|
|
|
post-extract:
|
2009-01-10 17:10:48 +01:00
|
|
|
@cd ${WRKDIR} && ${UNZIP_CMD} ${DISTDIR}/offo-hyphenation.zip
|
|
|
|
@${CP} ${WRKDIR}/offo-hyphenation/hyph/*.xml ${WRKSRC}/hyph
|
2001-03-24 13:29:03 +01:00
|
|
|
|
|
|
|
do-install:
|
2009-01-10 17:10:48 +01:00
|
|
|
.for d in build conf lib
|
|
|
|
@${MKDIR} ${DATADIR}/${d}
|
|
|
|
.endfor
|
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${INSTALL_DATA} status.xml ${DATADIR}/ && \
|
|
|
|
${INSTALL_DATA} build/*.[jw]ar ${DATADIR}/build/ && \
|
|
|
|
${INSTALL_DATA} lib/*.jar lib/README.txt ${DATADIR}/lib/ && \
|
|
|
|
${INSTALL_DATA} conf/fop.xconf ${DATADIR}/conf/ && \
|
|
|
|
${COPYTREE_SHARE} hyph ${DATADIR}/
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${DATADIR}/
|
|
|
|
@${LN} -s ${DATADIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@cd ${WRKSRC} && ${INSTALL_MAN} LICENSE README NOTICE KEYS ${DOCSDIR}
|
|
|
|
.endif
|
2001-03-19 12:36:36 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|