aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/xhtml-11/Makefile
blob: e66f459b8fc5edc8588c91209d3b6b4908cb31dc (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
54
55
56
# New ports collection makefile for:    XHTML 1.1 DTD
# Date created:             18 April 2003
# Whom:                 Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD$
#

PORTNAME=   xhtml
PORTVERSION=    1.1.${RECDATE}
CATEGORIES= textproc
MASTER_SITES=   http://www.w3.org/TR/2007/WD-xhtml11-${RECDATE}/
DISTNAME=   xhtml11
EXTRACT_SUFX=   .tgz

MAINTAINER= gabor@FreeBSD.org
COMMENT=    W3C's XHTML 1.1 DTD

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

RECDATE=    20070216

LATEST_LINK=    xhtml-11
WRKSRC=     ${WRKDIR}/xhtml11-20070216
NO_BUILD=   yes
PLIST_SUB+= XMLCAT_ADD="${XMLCAT_ADD}" \
        XMLCAT_RM="${XMLCAT_RM}" \
        SGMLCAT_ADD="${SGMLCAT_ADD}" \
        SGMLCAT_RM="${SGMLCAT_RM}"

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

XMLCAT_ADD= ${XMLCATMGR} -c ${XMLCAT} add nextCatalog \
            ${PREFIX}/${DTDDIR}/catalog.xml
XMLCAT_RM=  ${XMLCATMGR} -c ${XMLCAT} remove \
            ${PREFIX}/${DTDDIR}/catalog.xml
SGMLCAT_ADD=    ${XMLCATMGR} -sc ${SGMLCAT} add CATALOG \
            ${PREFIX}/${DTDDIR}/xhtml11.cat
SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove \
            ${PREFIX}/${DTDDIR}/xhtml11.cat

DTDDIR=     share/xml/${PORTNAME}/1.1/dtd
XSDDIR=     share/xml/${PORTNAME}/1.1/xsd

do-install:
    ${MKDIR} ${PREFIX}/${DTDDIR}
    ${INSTALL_DATA} ${WRKSRC}/DTD/* ${PREFIX}/${DTDDIR}
    ${MKDIR} ${PREFIX}/${XSDDIR}
    ${INSTALL_DATA} ${WRKSRC}/SCHEMA/* ${PREFIX}/${XSDDIR}

post-install:
#   ${XMLCAT_ADD}
    ${SGMLCAT_ADD}

.include <bsd.port.mk>