summaryrefslogtreecommitdiff
path: root/textproc/pdftohtml/Makefile
blob: a7104d8cbb889126e39a9324ffa5592de2990d1f (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
# 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.35
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=	${PORTNAME}_${PORTVERSION:S/./_/}

MAINTAINER=	erwin@lansing.dk
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>