summaryrefslogtreecommitdiff
path: root/textproc/tei-p3/Makefile
blob: 31b42fed17703525c9108cb9af0acae4f1d37fc2 (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
# Created by: Henrik Motakef <henrik.motakef@web.de>
# $FreeBSD$

PORTNAME=	tei
PORTVERSION=	p3
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	http://www.tei-c.org/Vault/GL/
DISTNAME=	teip3dtd

MAINTAINER=	ports@FreeBSD.org
COMMENT=	DTD of the Text Encoding Initiative

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

LATEST_LINK=	tei-p3
NO_BUILD=	yes
NO_WRKSUBDIR=	yes
PLIST_SUB=	XMLCATMGR=${XMLCATMGR} \
		DTDDIR=${DTDDIR} \
		CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}

SGMLDIR=	${PREFIX}/share/sgml
INSTDIR=	${SGMLDIR}/${PORTNAME}/${PORTVERSION}
DTDDIR=		${PORTNAME}/${PORTVERSION}
XMLCATMGR=	${LOCALBASE}/bin/xmlcatmgr
CATALOG_PORTS_SGML=	${PREFIX}/share/sgml/catalog.ports

NO_STAGE=	yes
do-install:
	@[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
	@${INSTALL_MAN} ${WRKSRC}/*.dtd ${INSTDIR}
	@${INSTALL_MAN} ${WRKSRC}/*.ent ${INSTDIR}
	@${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}

post-install:
	${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${DTDDIR}/catalog

.include <bsd.port.mk>