aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/linuxdoc/Makefile
blob: ee4cc7ac6bad937a3c35c538036edf3263913892 (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:    linuxdoc
# Date created:     July 8, 1997
# Whom:         jfieber
#
# $FreeBSD$
#

PORTNAME=   linuxdoc
PORTVERSION=    1.1
PORTREVISION=   1
CATEGORIES= textproc
MASTER_SITES=   http://fallout.campusview.indiana.edu/ports/distfiles/

MAINTAINER= kuriyama@FreeBSD.org
COMMENT=    The Linuxdoc SGML DTD

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

EXTRACT_ONLY=   # empty
NO_BUILD=   yes
NO_WRKSUBDIR=   yes

PLIST_SUB=  DTD_NAME=${PORTNAME} XMLCATMGR=${XMLCATMGR}
PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}

INSTDIR=    ${PREFIX}/share/sgml/linuxdoc
ISOCAT=     ${PREFIX}/share/sgml/iso8879/catalog
XMLCATMGR=  ${LOCALBASE}/bin/xmlcatmgr
CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports

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

do-install:
    @zcat ${DISTDIR}/${DISTFILES} |(cd ${INSTDIR}; ${PAX} -r)
    @${CHMOD} ${SHAREMODE} ${INSTDIR}/*
    @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}

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

.include <bsd.port.mk>