aboutsummaryrefslogtreecommitdiff
path: root/textproc/docbook-utils/Makefile
blob: 48a5a3215cecfd28e80175a4092f8596dce160af (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
57
58
59
60
61
62
63
64
# New ports collection makefile for:	docbook-utils
# Date created:				3 May 2004
# Whom:					Brian Candler <B.Candler@pobox.com>
#
# $FreeBSD$
#

PORTNAME=	docbook-utils
PORTVERSION=	0.6.14
PORTREVISION=	9
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_SOURCEWARE}
MASTER_SITE_SUBDIR=	docbook-tools/new-trials/SOURCES

MAINTAINER=	gabor@FreeBSD.org
COMMENT=	Generates various output formats from DocBook SGML documents

BUILD_DEPENDS+=	${LOCALBASE}/share/sgml/docbook/3.1:${PORTSDIR}/textproc/docbook-310 \
		${LOCALBASE}/share/sgml/docbook/dsssl:${PORTSDIR}/textproc/dsssl-docbook-modular \
		nsgmls:${PORTSDIR}/textproc/jade
RUN_DEPENDS+=	${LOCALBASE}/share/sgml/docbook/dsssl:${PORTSDIR}/textproc/dsssl-docbook-modular \
		${LOCALBASE}/share/texmf/tex/jadetex/dsssl.def:${PORTSDIR}/print/jadetex \
		nsgmls:${PORTSDIR}/textproc/jade \
		sgmlspl:${PORTSDIR}/textproc/p5-SGMLSpm \
		lynx:${PORTSDIR}/www/lynx

CONFLICTS=	docbook2X-*

USE_PERL5_RUN=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
MAKE_ARGS+=	docdir="${DOCSDIR}" htmldir="${DOCSDIR}/html"

MAN1=		jw.1 sgmldiff.1 docbook2man-spec.pl.1 docbook2texi-spec.pl.1
MAN7=		backend-spec.7 frontend-spec.7
MLINKS=		jw.1 docbook2dvi.1 \
		jw.1 docbook2html.1 \
		jw.1 docbook2man.1 \
		jw.1 docbook2pdf.1 \
		jw.1 docbook2ps.1 \
		jw.1 docbook2rtf.1 \
		jw.1 docbook2tex.1 \
		jw.1 docbook2texi.1 \
		jw.1 docbook2txt.1
.if !defined(NOPORTDOCS)
PORTDOCS=	*
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|/etc/sgml/catalog|${PREFIX}/share/sgml/catalog|g' \
		${WRKSRC}/doc/HTML/Makefile.in
	@${REINPLACE_CMD} -e 's|/etc/sgml|${LOCALBASE}/share/sgml|g' \
			-e 's|/usr/bin/|${LOCALBASE}/bin/|g' \
			${WRKSRC}/doc/refentry/*.sgml \
			${WRKSRC}/backends/txt
.if defined(NOPORTDOCS)
	@${REINPLACE_CMD} -e 's|SUBDIRS = refentry man HTML|SUBDIRS = refentry man|' \
			${WRKSRC}/doc/Makefile.in
.endif

pre-configure:
	${RM} -f ${WRKSRC}/config.cache

.include <bsd.port.mk>