freebsd-ports/print/pstotext/Makefile
Edwin Groothuis 7cd52c6f6c [PATCH] print/pstotext: enable choose of ghostscript interpreter
This patch allows the admin of the machine to choose either
	print/ghostscript-gnu or print/ghostscript-afp1

PR:		ports/54955
Submitted by:	Jens Rehsack <rehsack@liwing.de>
2003-08-31 01:28:00 +00:00

40 lines
957 B
Makefile

# New ports collection makefile for: pstotext
# Date created: December 6, 1999
# Whom: Oliver Breuninger <ob@seicom.NET>
#
# $FreeBSD$
#
PORTNAME= pstotext
PORTVERSION= 1.8g
CATEGORIES= print
MASTER_SITES= http://www.breuninger.org/files/distfiles/
DISTNAME= ${PORTNAME}
EXTRACT_SUFX= .tar.Z
MAINTAINER= ob@breuninger.org
COMMENT= A PostScript to Text converter
.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
GSPORT?= print/ghostscript-afpl
.else
GSPORT?= print/ghostscript-gnu
.endif
RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT}
MAN1= pstotext.1
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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pstotext ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pstotext.1 ${PREFIX}/man/man1
.include <bsd.port.mk>