aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/docbook-500/Makefile
blob: ba90c2e0c9bd97256536f179d72e5d9211c134a6 (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
# Created by: Gabor Kovesdan <gabor@kovesdan.org>
# $FreeBSD$

PORTNAME=   docbook
PORTVERSION=    5.0
PORTREVISION=   2
CATEGORIES= textproc
MASTER_SITES=   http://www.docbook.org/xml/5.0/
PKGNAMESUFFIX=  500
EXTRACT_SUFX=   .zip

MAINTAINER= gabor@FreeBSD.org
COMMENT=    DocBook 5.0, designed for technical documentation

RUN_DEPENDS=    ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr

NO_BUILD=   yes

DTDDIR=     share/xml/${PORTNAME}/${PORTVERSION}
DOCSDIR=    ${PREFIX}/share/doc/${PORTNAME}/${PORTVERSION}

PLIST_SUB+= XMLCATMGR=${XMLCATMGR} XMLCAT=${XMLCAT} \
        DTDDIR=${DTDDIR}

XMLCATMGR=  ${LOCALBASE}/bin/xmlcatmgr
XMLCAT=     ${PREFIX}/share/xml/catalog.ports

OPTIONS_DEFINE= DTD SCHEMA RELAX_NG SCHEMATRON NVDL TOOLS XMLCHARENT DOCS
OPTIONS_DEFAULT=    DTD SCHEMA RELAX_NG SCHEMATRON NVDL TOOLS XMLCHARENT
DTD_DESC=       XML DTD
SCHEMA_DESC=        W3C XML Schema
RELAX_NG_DESC=      RELAX NG Schema
SCHEMATRON_DESC=    Schematron constraints
NVDL_DESC=      NVDL description
TOOLS_DESC=     Tools for working with DocBook
XMLCHARENT_DESC=    Install ISO 8879 XML entites
OPTIONS_SUB=    yes

XMLCHARENT_RUN_DEPENDS+=    ${LOCALBASE}/share/xml/xmlcharent/catalog:${PORTSDIR}/textproc/xmlcharent

PORTDOCS=   *

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/${DTDDIR}
    ${INSTALL_DATA} ${WRKSRC}/catalog.xml ${STAGEDIR}${PREFIX}/${DTDDIR}
.for m in dtd xsd rng sch tools
    cd ${WRKSRC} && ${COPYTREE_SHARE} ${m} ${STAGEDIR}${PREFIX}/${DTDDIR}
.endfor
    @${MKDIR} ${STAGEDIR}${PREFIX}/${DTDDIR}/nvdl
    ${INSTALL_DATA} ${WRKSRC}/docbook.nvdl ${STAGEDIR}${PREFIX}/${DTDDIR}/nvdl
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog README VERSION ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>