aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/tei-p4/Makefile
blob: 9dcaa7086f8a098fe7d7b41ffa781e2f74dce0f4 (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
# New ports collection makefile for:    tei-p4
# Date created:             29 April 2002
# Whom:                 Henrik Motakef
#
# $FreeBSD$
#

PORTNAME=   tei
PORTVERSION=    p4
CATEGORIES= textproc
MASTER_SITES=   http://www.tei-c.org/P4X/DTD/
DISTNAME=   dtd

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

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

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

DTD=        dtd.zip
SGMLDIR=    ${PREFIX}/share/sgml
INSTDIR=    ${SGMLDIR}/${PORTNAME}/${PORTVERSION}
MKCATALOG=  ${PREFIX}/sbin/mkcatalog

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

do-install:
    ${INSTALL_DATA} ${WRKSRC}/*.dtd ${INSTDIR}
    ${INSTALL_DATA} ${WRKSRC}/*.ent ${INSTDIR}
    ${INSTALL_DATA} ${WRKSRC}/*.dec ${INSTDIR}
    ${INSTALL_DATA} ${WRKSRC}/teicatalog.xml ${INSTDIR}
    ${SED} -e "s!&DTDpath;!${INSTDIR}/!" ${WRKSRC}/catalog.tei > ${INSTDIR}/catalog

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

.include <bsd.port.mk>