aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/xincluder/Makefile
blob: 9dccd80f2e57b82f634f4052debb253884a64623 (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
# Created by: Ernst de Haan <znerd@FreeBSD.org>
# $FreeBSD$

PORTNAME=   xincluder
PORTVERSION=    1.0.d11
PORTREVISION=   5
CATEGORIES= textproc java
MASTER_SITES=   ftp://ftp.ibiblio.org/pub/languages/java/javafaq/
DISTNAME=   ${PORTNAME}-1.0d11

MAINTAINER= ports@FreeBSD.org
COMMENT=    Java-based XInclude processors

RUN_DEPENDS=    ${JAVALIBDIR}/jdom.jar:${PORTSDIR}/java/jdom \
        ${JAVALIBDIR}/xercesImpl.jar:${PORTSDIR}/textproc/xerces-j

USE_JAVA=   yes
JAVA_VERSION=   1.6+
NO_BUILD=   yes

WRKSRC=     ${WRKDIR}/${PORTNAME}

OPTIONS_DEFINE= DOCS

SUFFIXES=   -sax -dom -jdom
PLIST_FILES=    %%JAVAJARDIR%%/${PORTNAME}.jar bin/xincluder ${SUFFIXES:S,^,bin/xincluder,}
PORTDOCS=   apidoc index.html
SUB_FILES=  xincluder.sh

do-install:
    @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
    @${MKDIR} ${STAGEDIR}${JAVAJARDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/
    @${ECHO_MSG} " [ DONE ]"
    @${ECHO_MSG} -n ">> Installing scripts in ${PREFIX}/bin..."
    @${ECHO_MSG} -n " xincluder"
    ${INSTALL_SCRIPT} ${WRKDIR}/xincluder.sh ${STAGEDIR}${PREFIX}/bin/xincluder
.for suffix in ${SUFFIXES}
    @${ECHO_MSG} -n " xincluder${suffix}"
    ${LN} -s xincluder ${STAGEDIR}${PREFIX}/bin/xincluder${suffix}
.endfor
    @${ECHO_MSG} " [ DONE ]"
    @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
    cd ${WRKSRC} \
      && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
      && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
    @${ECHO_MSG} " [ DONE ]"

.include <bsd.port.mk>