aboutsummaryrefslogtreecommitdiff
path: root/print/pstotext/Makefile
blob: 114a94e261279619cbc2ff07c2b1b289705889df (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
33
34
35
# New ports collection makefile for:	pstotext
# Date created:		December 6, 1999
# Whom:			Oliver Breuninger <ob@seicom.NET>
#
# $FreeBSD$
#

PORTNAME=	pstotext
PORTVERSION=	1.9
PORTREVISION=	1
CATEGORIES=	print
MASTER_SITES=	http://mirror.cs.wisc.edu/pub/mirrors/ghost/contrib/

MAINTAINER=	ob@breuninger.org
COMMENT=	A PostScript to Text converter

USE_GHOSTSCRIPT_RUN=	yes

MAN1=		pstotext.1
PLIST_FILES=	bin/pstotext
PORTDOCS=	copyright

post-patch:
	${REINPLACE_CMD} -e 's;%%LOCALBASE%%;${LOCALBASE};g' ${WRKSRC}/main.c
	${REINPLACE_CMD} -e 's;%%PREFIX%%;${PREFIX};g' ${WRKSRC}/pstotext.1

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/pstotext ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/pstotext.1 ${MAN1PREFIX}/man/man1
.ifndef(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/pstotext.txt ${DOCSDIR}/copyright
.endif

.include <bsd.port.mk>