2000-08-31 10:48:05 +00:00
|
|
|
# New ports collection makefile for: Cocoon
|
1999-07-01 14:07:12 +00:00
|
|
|
# Date created: 27 June 1999
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
|
1999-07-01 14:07:12 +00:00
|
|
|
#
|
1999-08-31 02:11:56 +00:00
|
|
|
# $FreeBSD$
|
1999-07-01 14:07:12 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 21:54:47 +00:00
|
|
|
PORTNAME= cocoon
|
2000-08-31 10:48:05 +00:00
|
|
|
PORTVERSION= 1.7.4
|
1999-07-01 14:07:12 +00:00
|
|
|
CATEGORIES= textproc www java
|
2000-08-31 10:48:05 +00:00
|
|
|
MASTER_SITES= http://xml.apache.org/cocoon/dist/
|
|
|
|
DISTNAME= Cocoon-${PORTVERSION}
|
1999-07-01 14:07:12 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
1999-07-01 14:07:12 +00:00
|
|
|
|
2000-08-31 10:48:05 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/jdk${JDK_VERSION}/bin/javac:${PORTSDIR}/java/jdk
|
2000-03-21 08:10:48 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/apache/mod_jserv.so:${PORTSDIR}/www/apache-jserv
|
1999-07-01 14:07:12 +00:00
|
|
|
|
2000-08-31 10:48:05 +00:00
|
|
|
MAKE_ENV= JAVA_HOME=${LOCALBASE}/jdk${JDK_VERSION} CLASSPATH=${CLASSPATH}
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
1999-07-01 14:07:12 +00:00
|
|
|
|
2000-08-31 10:48:05 +00:00
|
|
|
JDK_VERSION= 1.1.8
|
|
|
|
CLASSPATH= ${LOCALBASE}/jdk${JDK_VERSION}/lib/classes.zip
|
|
|
|
LIBS= fop_0_12_1.jar xalan_1_0_1.jar xerces_1_0_3.jar
|
|
|
|
JDIR= ${PREFIX}/share/java/classes
|
|
|
|
CDIR= ${PREFIX}/etc/apache/cocoon
|
|
|
|
SDIR= ${PREFIX}/share/java/cocoon
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
PLIST_SUB= DOC="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB= DOC=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
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 14:07:12 +00:00
|
|
|
|
|
|
|
do-install:
|
2000-08-31 10:48:05 +00: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 14:07:12 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGDIR}/MESSAGE
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|