1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-06 22:51:41 +00:00
freebsd-ports/www/cocoon/Makefile
Satoshi Asami 7acef1cd7a Change PKGDIR from pkg/ to . Also fix places where ${PKGDIR} is
spelled out (many of which are ${PKGDIR}/MESSAGE -> ${PKGMESSAGE} type
fixes that shouldn't have been necessary) and the string "/pkg/"
appear.
2000-10-08 10:23:48 +00:00

70 lines
1.7 KiB
Makefile

# New ports collection makefile for: Cocoon
# Date created: 27 June 1999
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= cocoon
PORTVERSION= 1.7.4
CATEGORIES= textproc www java
MASTER_SITES= http://xml.apache.org/cocoon/dist/
DISTNAME= Cocoon-${PORTVERSION}
MAINTAINER= kuriyama@FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/jdk${JDK_VERSION}/bin/javac:${PORTSDIR}/java/jdk
RUN_DEPENDS= ${LOCALBASE}/libexec/apache/mod_jserv.so:${PORTSDIR}/www/apache-jserv
MAKE_ENV= JAVA_HOME=${LOCALBASE}/jdk${JDK_VERSION} CLASSPATH=${CLASSPATH}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
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}
do-install:
@(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
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>