summaryrefslogtreecommitdiff
path: root/textproc/docbook-410/Makefile
blob: 7b5f1309a38a0d9da7514fc8daf64fd796f40d1b (plain)
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
56
# New ports collection makefile for:	docbook-410
# Date created:		26 June 2000
# Whom:			murray
#
# Based on nik's docbook-310 port
#
# $FreeBSD$
#

PORTNAME=	docbook
PORTVERSION=	4.1
PORTREVISION=	4
CATEGORIES=	textproc
MASTER_SITES=	http://www.docbook.org/sgml/4.1/
DISTNAME=	docbk41

MAINTAINER=	gabor@FreeBSD.org
COMMENT=	V4.1 of the DocBook DTD, designed for technical documentation

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

USE_ZIP=	yes
NO_MTREE=	yes
NO_BUILD=	yes
NO_WRKSUBDIR=	yes

DTDDIR=		share/sgml/docbook/4.1/dtd
PLIST_SUB+=	SGMLCAT_ADD="${SGMLCAT_ADD}" \
		SGMLCAT_RM="${SGMLCAT_RM}"

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

SGMLCAT_ADD=	${XMLCATMGR} -sc ${SGMLCAT} add CATALOG \
		    ${PREFIX}/${DTDDIR}/catalog
SGMLCAT_RM=	${XMLCATMGR} -sc ${SGMLCAT} remove \
		    ${PREFIX}/${DTDDIR}/catalog

LATEST_LINK=	docbook-410

do-install:
	@${MKDIR} ${PREFIX}/${DTDDIR}
	files=$$(${FIND} ${WRKSRC} -type f \! -name '.*'); \
	for i in $${files}; do \
		${INSTALL_DATA} $${i} ${PREFIX}/${DTDDIR}; \
	done
	${INSTALL_DATA} ${FILESDIR}/catalog ${PREFIX}/${DTDDIR}
	@${ECHO} "CATALOG \"${ISOCAT}\"" >> ${PREFIX}/${DTDDIR}/catalog

post-install:
	-${SGMLCAT_ADD}

.include <bsd.port.mk>