aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/sdocbook-xml/Makefile
blob: 33a579e38d94194bd2cd4e657b8c5aec6d637205 (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
# Created by: KIRIYAMA Kazuhiko <kiri@FreeBSD.org>
# $FreeBSD$

PORTNAME=   sdocbook-xml
PORTVERSION=    1.1
PORTREVISION=   1
PORTEPOCH=  2
CATEGORIES= textproc
MASTER_SITES=   http://www.oasis-open.org/docbook/xml/simple/${PORTVERSION}/
DISTNAME=   docbook-simple-${PORTVERSION}

MAINTAINER= gabor@FreeBSD.org
COMMENT=    "Simplified" DocBook XML DTD

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

USES=       zip
NO_MTREE=   yes
NO_BUILD=   yes

XMLCATMGR=  bin/xmlcatmgr
XMLCAT=     share/xml/catalog.ports
SGMLCAT=    share/sgml/catalog.ports
CATALOG_FILES=  catalog catalog.xml
DOCSDIR=    ${PREFIX}/share/doc/${PORTNAME}/${PORTVERSION}
DTD_NAME=   sdocbook
DTD_VERSION=    ${PORTVERSION}
DTD_SUBDIR= /dtd
DTDDIR=     share/xml/${DTD_NAME}/${DTD_VERSION}${DTD_SUBDIR}
PLIST_SUB+= XMLCATMGR=${XMLCATMGR} SGMLCAT=${SGMLCAT} XMLCAT=${XMLCAT} \
        DTDDIR=${DTDDIR}
SUB_FILES=  ${CATALOG_FILES}
SUB_LIST+=  DTDDIR=${PREFIX}/${DTDDIR}
WRKSRC=     ${WRKDIR}

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/${DTDDIR}
    cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${DTDDIR}
.for f in ${CATALOG_FILES}
    ${INSTALL_DATA} ${WRKDIR}/${f} ${STAGEDIR}${PREFIX}/${DTDDIR}
.endfor
    @${ECHO_CMD} "@dirrm share/xml/${DTD_NAME}/${DTD_VERSION}" >> ${TMPPLIST}
    @${ECHO_CMD} "@unexec rmdir %D/share/xml/${DTD_NAME} 2>/dev/null || :" >> ${TMPPLIST}

.include <bsd.port.mk>