summaryrefslogtreecommitdiff
path: root/textproc/tei-p3/Makefile
blob: 5f68682e88da0d4814e5cc52bdad16cdbe270fe1 (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
# New ports collection makefile for:	tei-p3
# Date created:				19 May 2002
# Whom:					Henrik Motakef <henrik.motakef@web.de>
#
# $FreeBSD$
#

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

MAINTAINER=	henrik.motakef@web.de
COMMENT=	DTD of the Text Encoding Initiative

RUN_DEPENDS=	${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog

NO_BUILD=	yes
NO_WRKSUBDIR=	yes
PLIST_SUB=	DTD_NAME=${PORTNAME} DTD_VERSION=${PORTVERSION} \
		MKCATALOG=${MKCATALOG}

SGMLDIR=	${PREFIX}/share/sgml
INSTDIR=	${SGMLDIR}/${PORTNAME}/${PORTVERSION}
MKCATALOG=	${PREFIX}/sbin/mkcatalog

do-install:
	@[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
	@${INSTALL_MAN} ${WRKSRC}/*.dtd ${INSTDIR}
	@${INSTALL_MAN} ${WRKSRC}/*.ent ${INSTDIR}
	@${SED} -e 's!%%INSTDIR%%!${INSTDIR}!' ${FILESDIR}/catalog \
	  > ${INSTDIR}/catalog

post-install:
	@${MKCATALOG} -q install ${PORTNAME}/${PORTVERSION}

.include <bsd.port.mk>