forked from Lainports/freebsd-ports
-added support for different Ghostscript output devices (-dev) -updated Xpdf to 2.02 (security fix) -a couple of fixes and tweaks for better output -ported duplicate lines elimination from pdftotext (does not affect complex mode) -fixed bug which caused bold to spread from one sentence to the entire document -support for document outlines (patch by Nicolas Pitre)
31 lines
709 B
Makefile
31 lines
709 B
Makefile
# ex:ts=8
|
|
# New ports collection makefile for: pdftohtml
|
|
# Date created: 1 Jun 2001
|
|
# Whom: Soeren Boll Overgaard <boll@tolkien.dk>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pdftohtml
|
|
PORTVERSION= 0.36
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= erwin@FreeBSD.org
|
|
COMMENT= A command-line tool for converting pdf-files into html
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/gs:${PORTSDIR}/print/ghostscript-gnu
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
USE_REINPLACE= yes
|
|
|
|
pre-patch:
|
|
.for file in goo/Makefile xpdf/Makefile
|
|
${REINPLACE_CMD} -e "s|-O2||; s|-g||" ${WRKSRC}/${file}
|
|
.endfor
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/pdftohtml ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|