aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/docbook-420/Makefile
blob: c98b682f302d1e19f01ac3c0ecfbf97161517811 (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
# New ports collection makefile for:    docbook-420
# Date created:     29 Oct 2003
# Whom:         kutulu
#
# Based on murray's docbook-410 port
#     which is based on niks' docbook-310 port
#
# $FreeBSD$
#

PORTNAME=   docbook
PORTVERSION=    4.2
CATEGORIES= textproc
MASTER_SITES=   http://www.docbook.org/sgml/4.2/
EXTRACT_ONLY=   # empty

MAINTAINER= kutulu@kutulu.org
COMMENT=    V4.2 of the DocBook DTD, designed for technical documentation

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

BUILD_DEPENDS=  unzip:${PORTSDIR}/archivers/unzip
USE_ZIP=    yes
NO_MTREE=   yes
NO_BUILD=   yes
NO_WRKSUBDIR=   yes
PLIST_SUB=  DTD_NAME=${PORTNAME}
PLIST_SUB+= DTD_VERSION=${PORTVERSION}
PLIST_SUB+= XMLCATMGR=${XMLCATMGR}
PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}

INSTDIR=    ${PREFIX}/share/sgml/docbook
ISOCAT=     ${PREFIX}/share/sgml/iso8879/catalog
XMLCATMGR=  ${LOCALBASE}/bin/xmlcatmgr
CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports

LATEST_LINK=    docbook-420

pre-install:
    @[ -d ${INSTDIR}/${PORTVERSION} ] || ${MKDIR} ${INSTDIR}/${PORTVERSION}

do-install:
    @unzip -a -q -o ${DISTDIR}/${DISTFILES} -d ${INSTDIR}/${PORTVERSION}
    @${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/${PORTVERSION}/catalog
    @${ECHO_CMD} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/${PORTVERSION}/catalog
    @${CHMOD} ${SHAREMODE} ${INSTDIR}/${PORTVERSION}/*
    @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}

post-install:
    @-${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${PORTNAME}/${PORTVERSION}/catalog

.include <bsd.port.mk>