2017-12-24 10:45:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.27 2017/12/24 09:45:03 wiz Exp $
|
2001-05-14 16:03:20 +02:00
|
|
|
|
|
|
|
DISTNAME= doc2html
|
2001-10-09 17:49:39 +02:00
|
|
|
PKGNAME= doc2html-3.0
|
2016-07-09 08:37:46 +02:00
|
|
|
PKGREVISION= 9
|
2001-05-14 16:03:20 +02:00
|
|
|
CATEGORIES= converters
|
2017-12-24 10:45:03 +01:00
|
|
|
#MASTER_SITES= http://www.htdig.org/files/contrib/parsers/
|
2001-05-14 16:03:20 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2017-12-24 10:45:03 +01:00
|
|
|
#HOMEPAGE= http://www.htdig.org/
|
2001-05-14 16:03:20 +02:00
|
|
|
COMMENT= PERL external filter for htdig to convert numerous doc formats to HTML
|
|
|
|
|
2002-11-12 14:48:58 +01:00
|
|
|
DEPENDS+= xlhtml-[0-9]*:../../converters/xlhtml
|
2001-09-28 01:17:41 +02:00
|
|
|
DEPENDS+= rtf2html-[0-9]*:../../converters/rtf2html
|
2001-10-04 14:00:45 +02:00
|
|
|
DEPENDS+= xpdf-[0-9]*:../../print/xpdf
|
2001-09-28 01:17:41 +02:00
|
|
|
DEPENDS+= catdoc-[0-9]*:../../textproc/catdoc
|
2001-05-14 16:03:20 +02:00
|
|
|
|
2005-11-28 07:41:20 +01:00
|
|
|
USE_TOOLS+= gs:run perl:run
|
2001-05-14 16:03:20 +02:00
|
|
|
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2001-05-14 16:03:20 +02:00
|
|
|
do-build:
|
2013-04-06 15:24:18 +02:00
|
|
|
.for cvtr in doc2html pdf2html
|
2001-05-14 16:03:20 +02:00
|
|
|
${SED} -e "s%@@LOCALBASE@@%${LOCALBASE}%g" \
|
|
|
|
-e "s%/usr/bin/perl%${PERL5}%g" \
|
|
|
|
-e "s%/bin/sed%${SED}%g" \
|
2013-04-06 15:24:18 +02:00
|
|
|
-e "s%@@X11BASE@@%${X11BASE}%g" < ${WRKSRC}/${cvtr}.pl \
|
|
|
|
> ${WRKSRC}/${cvtr}
|
2001-10-09 17:49:39 +02:00
|
|
|
.endfor
|
2001-05-14 16:03:20 +02:00
|
|
|
|
|
|
|
do-install:
|
2008-03-03 06:51:07 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/doc2html ${DESTDIR}${PREFIX}/bin/doc2html
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pdf2html ${DESTDIR}${PREFIX}/bin/pdf2html
|
2001-05-14 16:03:20 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|