aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/cocoon/Makefile
blob: f5298bf5dec549845dd8c23cd3d115325582e11a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:    Cocoon
# Date created:     27 June 1999
# Whom:         Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   cocoon
PORTVERSION=    1.8.2
PORTREVISION=   3
CATEGORIES= textproc www java
MASTER_SITES=   ${MASTER_SITE_APACHE_HTTPD:S,httpd/%SUBDIR%,%SUBDIR%,}
MASTER_SITE_SUBDIR= cocoon/OLD

MAINTAINER= ports@FreeBSD.org
COMMENT=    100% pure Java publishing framework servlet

USE_JAVA=   1.1+
MAKE_ENV=   JAVA_HOME=${JAVA_HOME} CLASSPATH=${CLASSPATH}
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

CLASSPATH=  ${JAVA_CLASSES}
LIBS=       fop_0_15_0.jar xalan_1_2_D02.jar xerces_1_2.jar turbine-pool.jar
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}

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>