summaryrefslogtreecommitdiff
path: root/converters/doc2html/Makefile
blob: d29ddf1591ef28e36038dc0556b2d1a2784c80e3 (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
# $NetBSD: Makefile,v 1.18 2008/03/03 05:51:08 jlam Exp $
#

DISTNAME=	doc2html
PKGNAME=	doc2html-3.0
PKGREVISION=	3
CATEGORIES=	converters
MASTER_SITES=	http://www.htdig.org/files/contrib/parsers/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.htdig.org/
COMMENT=	PERL external filter for htdig to convert numerous doc formats to HTML

DEPENDS+=	xlhtml-[0-9]*:../../converters/xlhtml
DEPENDS+=	rtf2html-[0-9]*:../../converters/rtf2html
DEPENDS+=	xpdf-[0-9]*:../../print/xpdf
DEPENDS+=	catdoc-[0-9]*:../../textproc/catdoc

PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=	gs:run perl:run

INSTALLATION_DIRS=	bin

do-build:
.for CVTR in doc2html pdf2html
	${SED} -e "s%@@LOCALBASE@@%${LOCALBASE}%g" \
		-e "s%/usr/bin/perl%${PERL5}%g" \
		-e "s%/bin/sed%${SED}%g" \
		-e "s%@@X11BASE@@%${X11BASE}%g" < ${WRKSRC}/${CVTR}.pl \
		> ${WRKSRC}/${CVTR}
.endfor

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/doc2html ${DESTDIR}${PREFIX}/bin/doc2html
	${INSTALL_SCRIPT} ${WRKSRC}/pdf2html ${DESTDIR}${PREFIX}/bin/pdf2html

.include "../../mk/bsd.pkg.mk"