aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/crimson/Makefile
blob: a5f7c1f169edcd5a033de5987fb3dda6ee423173 (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
# New ports collection makefile for:    crimson
# Date created:     2000-03-21
# Whom:         Palle Girgensohn
#
# $FreeBSD$
#

PORTNAME=   crimson
PORTVERSION=    1.1
CATEGORIES= textproc java
MASTER_SITES=   http://xml.apache.org/dist/crimson/

MAINTAINER= girgen@partitur.se

RUN_DEPENDS=    ${JAVAVM}:${PORTSDIR}/java/javavmwrapper

USE_ZIP=    YES
NO_BUILD=   yes
RESTRICTED= "uncertain about the license of jaxp.jar"

JAVAVM?=    ${LOCALBASE}/bin/javavm

FIND?=      /usr/bin/find

JARS=       jaxp.jar crimson.jar
READMES=    README.txt
CRIMSON_SUBDIR= ${DISTNAME}
PORTDESTDIR=    ${PREFIX}/share/java/${CRIMSON_SUBDIR}
PLIST_SUB=  CRIMSON_SUBDIR=${CRIMSON_SUBDIR}

post-extract:
    cd ${WRKDIR}; \
        ${FIND} ${DISTNAME} -type d -exec ${CHMOD} +x \{} \;

do-install:
    ${MKDIR} ${PREFIX}/share/java/classes
    cd ${INSTALL_WRKSRC}; \
        ${INSTALL_DATA} ${JARS} ${PREFIX}/share/java/classes
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PORTDESTDIR}
    cd ${INSTALL_WRKSRC}; \
        ${INSTALL_DATA} ${READMES} ${PORTDESTDIR}; \
        pax -rw docs examples ${PORTDESTDIR}
.endif

post-install:
.if defined(NOPORTDOCS)
    cd ${INSTALL_WRKSRC}; \
        ${CP} ${TMPPLIST} ${TMPPLIST}.nodoc ; \
    ${GREP} -v share/java/${CRIMSON_SUBDIR} ${TMPPLIST}.nodoc > ${TMPPLIST}; \
    ${RM} ${TMPPLIST}.nodoc
.endif
    @ ${SED} "s|%%PREFIX%%|${PREFIX}|g" ${PKGMESSAGE}

.include <bsd.port.mk>