2012-10-20 07:43:38 +02:00
|
|
|
# Created by: Oliver Breuninger <ob@seicom.NET>
|
1999-12-29 08:26:56 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-09 19:50:59 +02:00
|
|
|
PORTNAME= pstotext
|
2008-09-02 21:06:45 +02:00
|
|
|
PORTVERSION= 1.9
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 3
|
1999-12-29 08:26:56 +01:00
|
|
|
CATEGORIES= print
|
2012-10-20 07:43:38 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
|
|
|
|
MASTER_SITE_SUBDIR= support/ghostscript/contrib
|
1999-12-29 08:26:56 +01:00
|
|
|
|
2010-07-31 15:22:14 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-10-20 07:43:38 +02:00
|
|
|
COMMENT= PostScript to Text converter
|
2012-09-21 12:07:33 +02:00
|
|
|
|
2004-01-20 17:30:09 +01:00
|
|
|
USE_GHOSTSCRIPT_RUN= yes
|
1999-12-29 08:26:56 +01:00
|
|
|
|
|
|
|
MAN1= pstotext.1
|
2004-02-06 14:12:53 +01:00
|
|
|
PLIST_FILES= bin/pstotext
|
2008-09-02 21:06:45 +02:00
|
|
|
PORTDOCS= copyright
|
|
|
|
|
2012-10-20 07:43:38 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2008-09-02 21:06:45 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's;%%LOCALBASE%%;${LOCALBASE};g' ${WRKSRC}/main.c
|
|
|
|
${REINPLACE_CMD} -e 's;%%PREFIX%%;${PREFIX};g' ${WRKSRC}/pstotext.1
|
1999-12-29 08:26:56 +01:00
|
|
|
|
2000-10-13 22:27:52 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pstotext ${PREFIX}/bin
|
2008-09-02 21:06:45 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/pstotext.1 ${MAN1PREFIX}/man/man1
|
2012-10-20 07:43:38 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2008-09-02 21:06:45 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/pstotext.txt ${DOCSDIR}/copyright
|
|
|
|
.endif
|
2000-10-13 22:27:52 +02:00
|
|
|
|
1999-12-29 08:26:56 +01:00
|
|
|
.include <bsd.port.mk>
|