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

PORTNAME=   docbook
PORTVERSION=    4.5
PORTREVISION=   2
CATEGORIES= textproc
MASTER_SITES=   http://www.oasis-open.org/docbook/sgml/${PORTVERSION}/
PKGNAMESUFFIX=  450
EXTRACT_SUFX=   .zip

MAINTAINER= gabor@FreeBSD.org
COMMENT=    DocBook/SGML DTD V4.5, designed for technical documentation

RUN_DEPENDS=    ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
        ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr

NO_BUILD=   yes
EXTRACT_AFTER_ARGS= -s ,^,${DISTNAME}/,

DTDDIR=     ${PREFIX}/share/sgml/${PORTNAME}/${PORTVERSION}
SGMLCAT=    ${PREFIX}/share/sgml/catalog.ports
ISOCAT=     ${PREFIX}/share/sgml/iso8879/catalog
XMLCATMGR=  ${LOCALBASE}/bin/xmlcatmgr

PLIST_SUB+= XMLCATMGR=${XMLCATMGR} SGMLCAT=${SGMLCAT} \
        DTDDIR=${DTDDIR:S/${PREFIX}\///}

PORTDOCS=   README
DTD_FILES=  calstblx.dtd catalog.xml dbcentx.mod dbgenent.mod \
        dbhierx.mod dbnotnx.mod dbpoolx.mod docbook.cat docbook.dcl \
        docbook.dtd docbookx.dtd htmltblx.mod soextblx.dtd catalog
DOCSDIR=    ${PREFIX}/share/doc/${PORTNAME}/${PORTVERSION}

post-extract:
    ${CP} ${WRKSRC}/docbook.cat ${WRKSRC}/catalog

post-patch:
    ${ECHO_CMD} 'CATALOG "${LOCALBASE}/${ISOCAT}"' >> ${WRKSRC}/catalog

do-install:
    @${MKDIR} ${STAGEDIR}${DTDDIR}
    ${INSTALL_DATA} ${DTD_FILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DTDDIR}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>