2001-01-29 12:34:21 +01:00
|
|
|
# $NetBSD: Makefile,v 1.5 2001/01/29 11:34:45 wiz Exp $
|
2000-05-31 23:55:15 +02:00
|
|
|
|
2000-10-20 01:23:34 +02:00
|
|
|
DISTNAME= Cocoon-1.8
|
|
|
|
PKGNAME= cocoon-1.8
|
2000-05-31 23:55:15 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://xml.apache.org/dist/cocoon/
|
|
|
|
|
|
|
|
MAINTAINER= jwise@netbsd.org
|
|
|
|
HOMEPAGE= http://xml.apache.org/cocoon/
|
|
|
|
|
2000-10-20 01:23:34 +02:00
|
|
|
# These are exact version requirements intentionally, and will need to remain
|
|
|
|
# so until the interfaces stabilize more. Until then, new versions of these
|
|
|
|
# libraries will be tested heavily with cocoon, and if not usable will be
|
|
|
|
# imported as -current packages.
|
|
|
|
DEPENDS+= xalan-j-1.2:../../textproc/xalan-j
|
|
|
|
DEPENDS+= fop-0.13.0:../../textproc/fop
|
2000-05-31 23:55:15 +02:00
|
|
|
DEPENDS+= jakarta-tomcat-*:../../www/jakarta-tomcat
|
|
|
|
|
|
|
|
# In addition to the above requirements, cocoon will build in support for the
|
|
|
|
# following if they are in ${CLASSPATH}
|
|
|
|
#
|
|
|
|
# org.apache.cocoon.transformer.XTTransformer ===> pkgsrc/textproc/xt
|
|
|
|
#
|
|
|
|
# org.apache.cocoon.processor.ldap.LdapProcessor ===>
|
|
|
|
# Sun JNDI API 1.2.1+ (http://java.sun.com/products/jndi/index.html)
|
|
|
|
#
|
|
|
|
# org.apache.cocoon.processor.dcp.DCPProcessor ===>
|
|
|
|
# FESI 1.21+ (http://home.worldcom.ch/jmlugrin/fesi/download.html)
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
|
|
|
NO_CONFIGURE=
|
|
|
|
|
|
|
|
USE_JAVA= yes
|
|
|
|
|
|
|
|
post-extract:
|
2000-10-20 01:23:34 +02:00
|
|
|
${RM} ${WRKSRC}/lib/fop_0_13_0.jar ${WRKSRC}/lib/servlet_2_2.jar \
|
|
|
|
${WRKSRC}/lib/xalan_1_2_D02.jar ${WRKSRC}/lib/xerces_1_2.jar \
|
|
|
|
${WRKSRC}/lib/bsf.jar ${WRKSRC}/lib/bsfengines.jar
|
2000-05-31 23:55:15 +02:00
|
|
|
|
|
|
|
# Yes -- you have to run build.sh _twice_. The first time triggers a bug in JDK-1.1 javac,
|
|
|
|
# and the second time completes successfully. While we're at it, note that we can't
|
|
|
|
# rebuild the javadoc documentation, and have to use that which it shipped with, as the
|
|
|
|
# javadoc target requires StyleBook, which uses features of JDK 1.2
|
|
|
|
do-build:
|
|
|
|
@${ECHO} "------------------------------------------------------------------------"
|
|
|
|
@${ECHO} " Please ignore any compiler errors during this build. They are"
|
|
|
|
@${ECHO} " handled properly by the build process"
|
|
|
|
@${ECHO} "------------------------------------------------------------------------"
|
|
|
|
-(cd ${WRKSRC} && ${SH} build.sh)
|
|
|
|
cd ${WRKSRC} && ${SH} build.sh
|
|
|
|
|
2000-10-20 01:23:34 +02:00
|
|
|
# For now, we install the turbine-pool.jar which ships with cocoon. When there is an actual
|
|
|
|
# release of Turbine, we will have a package for it, which cocoon will depend on.
|
2000-05-31 23:55:15 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/bin/cocoon.jar ${PREFIX}/lib/java
|
2000-10-20 01:23:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/turbine-pool.jar ${PREFIX}/lib/java
|
2000-05-31 23:55:15 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/java/cocoon
|
|
|
|
cd ${WRKSRC}/docs ; ${GTAR} pcf - . | ( cd ${PREFIX}/share/doc/java/cocoon ; ${GTAR} pvxf - )
|
2000-06-22 16:23:24 +02:00
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/java/cocoon
|
2000-05-31 23:55:15 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/java/cocoon/WEB-INF
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/web.xml ${PREFIX}/share/examples/java/cocoon/WEB-INF
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/cocoon.properties ${PREFIX}/share/examples/java/cocoon/WEB-INF
|
|
|
|
cd ${WRKSRC}/samples ; ${GTAR} pcf - . | ( cd ${PREFIX}/share/examples/java/cocoon ; ${GTAR} pvxf - )
|
2000-06-22 16:23:24 +02:00
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/java/cocoon
|
2000-05-31 23:55:15 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
|
2000-10-20 01:23:34 +02:00
|
|
|
CLASSPATH:=${CLASSPATH}:${LOCALBASE}/lib/java/fop.jar:${LOCALBASE}/lib/java/xalan.jar:${LOCALBASE}/lib/java/bsf.jar:${LOCALBASE}/lib/java/xerces.jar:${LOCALBASE}/jakarta/tomcat/lib/servlet.jar
|