aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/docbook-sk/Makefile
blob: dc1eed081c3c6f5b79352a226d6f7da49430ed4a (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
# New ports collection makefile for:    DocBook XML for ScrollKeeper
# Date created:     16 January 2003
# Whom:         marcus@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   docbook-sk
PORTVERSION=    4.1.2
CATEGORIES= textproc
MASTER_SITES=   http://www.docbook.org/xml/${PORTVERSION}/
DISTNAME=   docbkx${PORTVERSION:S/.//g}

MAINTAINER= gnome@FreeBSD.org
COMMENT=    XML version of the DocBook DTD version controlled for ScrollKeeper

USE_ZIP=    yes
NO_BUILD=   yes
NO_WRKSUBDIR=   yes
PLIST_SUB=  DTD_VERSION=${PORTVERSION}

DOCBOOKDIR= ${PREFIX}/share/sk/${PORTNAME:S/-sk//}/${PORTVERSION}

pre-install:
    @[ -d ${DOCBOOKDIR}/ent ] || ${MKDIR} ${DOCBOOKDIR}/ent

do-install:
    for file in `unzip -l ${DISTDIR}/${DISTFILES}|${AWK} '/:[0-9].*[^\/]$$/{print $$4}'`; do \
        ${INSTALL_DATA} ${WRKSRC}/$$file ${DOCBOOKDIR}/$$file; \
    done

.include <bsd.port.mk>