2001-08-06 12:15:55 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: pdftohtml
|
|
|
|
# Date created: 1 Jun 2001
|
|
|
|
# Whom: Soeren Boll Overgaard <boll@tolkien.dk>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pdftohtml
|
2006-08-25 11:05:56 +00:00
|
|
|
PORTVERSION= 0.39
|
2001-08-06 12:15:55 +00:00
|
|
|
CATEGORIES= textproc
|
2002-06-18 08:15:26 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2002-04-01 02:25:02 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2001-08-06 12:15:55 +00:00
|
|
|
|
2003-06-12 16:41:16 +00:00
|
|
|
MAINTAINER= erwin@FreeBSD.org
|
2003-02-21 13:42:50 +00:00
|
|
|
COMMENT= A command-line tool for converting pdf-files into html
|
2001-08-06 12:15:55 +00:00
|
|
|
|
2003-08-08 13:57:07 +00:00
|
|
|
.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
|
|
|
|
GSPORT?= print/ghostscript-afpl
|
|
|
|
.else
|
|
|
|
GSPORT?= print/ghostscript-gnu
|
|
|
|
.endif
|
|
|
|
|
2006-03-27 22:16:34 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/gs:${PORTSDIR}/${GSPORT}
|
2002-06-19 12:53:40 +00:00
|
|
|
|
2006-04-20 10:34:53 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_MOTIF= yes
|
|
|
|
|
2004-01-30 23:06:52 +00:00
|
|
|
PLIST_FILES= bin/pdftohtml
|
2006-03-27 22:16:34 +00:00
|
|
|
|
2002-06-22 18:10:18 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
2001-08-06 12:15:55 +00:00
|
|
|
|
2003-08-08 13:57:07 +00:00
|
|
|
pre-fetch:
|
|
|
|
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " Define WITH_GHOSTSCRIPT_AFPL=yes to use"
|
|
|
|
@${ECHO} " AFPL Postscript interpreter instead of GNU one"
|
|
|
|
@${ECHO} ""
|
|
|
|
.endif
|
|
|
|
|
2002-06-18 08:15:26 +00:00
|
|
|
pre-patch:
|
2006-03-27 22:16:34 +00:00
|
|
|
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e "s|-O[0-9]||" -e "s|-g||"
|
2002-06-18 08:15:26 +00:00
|
|
|
|
2001-08-06 12:15:55 +00:00
|
|
|
do-install:
|
2006-04-20 10:34:53 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/pdftohtml ${PREFIX}/bin
|
2001-08-06 12:15:55 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|