summaryrefslogtreecommitdiff
path: root/textproc/dsssl-docbook-modular/Makefile
blob: e6ef1791af8d95948811ecc2b9d9260e537648b1 (plain)
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
# $NetBSD: Makefile,v 1.38 2014/05/29 23:37:33 wiz Exp $

DISTNAME=	docbook-dsssl-1.79
PKGNAME=	dsssl-docbook-modular-1.79
PKGREVISION=	7
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=docbook/}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} docbook-dsssl-doc-1.79${EXTRACT_SUFX}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://docbook.sourceforge.net/
COMMENT=	DSSSL stylesheets for the DocBook DTD

DEPENDS+=	docbook>=4.0:../../textproc/docbook

USE_LANGUAGES=	# empty
USE_TOOLS+=	perl:run

INSTDIR=	${PREFIX}/share/sgml/docbook/dsssl/modular

SGML_CATALOGS=	${PREFIX}/share/sgml/docbook/dsssl/modular/catalog

REPLACE_PERL+=	bin/collateindex.pl
REPLACE_PERL+=	common/cs-hack.pl
REPLACE_PERL+=	common/dbl10n.pl

do-build:
	@${RM} -rf ${WRKSRC}/docsrc

pre-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${INSTDIR}

do-install:
	@${CP} -rp ${WRKSRC}/* ${DESTDIR}${INSTDIR}
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${INSTDIR}
	${CHMOD} ${BINMODE} ${DESTDIR}${INSTDIR}/bin/collateindex.pl

.include "../../textproc/xmlcatmgr/catalogs.mk"
.include "../../mk/bsd.pkg.mk"