2000-08-31 06:48:05 -04:00
|
|
|
# New ports collection makefile for: Cocoon
|
1999-07-01 10:07:12 -04:00
|
|
|
# Date created: 27 June 1999
|
1999-08-31 02:53:31 -04:00
|
|
|
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
|
1999-07-01 10:07:12 -04:00
|
|
|
#
|
1999-08-30 22:11:56 -04:00
|
|
|
# $FreeBSD$
|
1999-07-01 10:07:12 -04:00
|
|
|
#
|
|
|
|
|
2000-04-09 17:54:47 -04:00
|
|
|
PORTNAME= cocoon
|
2001-02-05 11:35:26 -05:00
|
|
|
PORTVERSION= 1.8.2
|
2002-05-27 00:33:43 -04:00
|
|
|
PORTREVISION= 2
|
1999-07-01 10:07:12 -04:00
|
|
|
CATEGORIES= textproc www java
|
2002-04-04 18:41:58 -05:00
|
|
|
MASTER_SITES= http://xml.apache.org/cocoon/dist/cocoon1/ \
|
|
|
|
http://www.metaverse.nl/~ernst/ \
|
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= znerd
|
2000-08-31 06:48:05 -04:00
|
|
|
DISTNAME= Cocoon-${PORTVERSION}
|
1999-07-01 10:07:12 -04:00
|
|
|
|
2001-09-04 08:41:13 -04:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1999-07-01 10:07:12 -04:00
|
|
|
|
2002-04-04 18:41:58 -05:00
|
|
|
USE_JAVA= 1.1+
|
|
|
|
MAKE_ENV= JAVA_HOME=${JAVA_HOME} CLASSPATH=${CLASSPATH}
|
2000-08-31 06:48:05 -04:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
1999-07-01 10:07:12 -04:00
|
|
|
|
2002-04-04 18:41:58 -05:00
|
|
|
CLASSPATH= ${JAVA_CLASSES}
|
2001-02-01 03:18:47 -05:00
|
|
|
LIBS= fop_0_15_0.jar xalan_1_2_D02.jar xerces_1_2.jar
|
2000-08-31 06:48:05 -04:00
|
|
|
JDIR= ${PREFIX}/share/java/classes
|
|
|
|
CDIR= ${PREFIX}/etc/apache/cocoon
|
|
|
|
SDIR= ${PREFIX}/share/java/cocoon
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
${CHMOD} a+rx ${WRKSRC}/build.sh
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./build.sh
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${MKDIR} ${JDIR} ${CDIR} ${SDIR}
|
1999-07-01 10:07:12 -04:00
|
|
|
|
|
|
|
do-install:
|
2000-08-31 06:48:05 -04:00
|
|
|
@(cd ${WRKSRC}/build && \
|
|
|
|
${INSTALL_DATA} cocoon.jar ${JDIR})
|
|
|
|
@(cd ${WRKSRC}/lib; \
|
|
|
|
for i in ${LIBS}; do \
|
|
|
|
${INSTALL_DATA} $${i} ${JDIR} ; \
|
|
|
|
done)
|
|
|
|
@(cd ${WRKSRC}/conf; \
|
|
|
|
${INSTALL_DATA} cocoon.properties \
|
|
|
|
${CDIR}/cocoon.properties.default)
|
|
|
|
@if [ ! -f ${CDIR}/cocoon.properties ]; then \
|
|
|
|
${CP} ${CDIR}/cocoon.properties.default \
|
|
|
|
${CDIR}/cocoon.properties; \
|
|
|
|
fi
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
${INSTALL_DATA} LICENSE ${SDIR} ;\
|
|
|
|
${INSTALL_DATA} README ${SDIR} ;\
|
|
|
|
${CP} -r docs ${SDIR} ;\
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${SDIR} ;\
|
|
|
|
)
|
|
|
|
.endif
|
1999-07-01 10:07:12 -04:00
|
|
|
|
|
|
|
post-install:
|
2000-10-08 06:23:48 -04:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1999-07-01 10:07:12 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|