freebsd-ports/print/pstotext/Makefile
Tijl Coosemans 77760fcb63 Make print/ghostscript9-agpl-base the default Ghostscript port. Upstream
changed the license to the AGPL 3 in version 9.07 so print/ghostscript9-base
is stuck at 9.06 which is almost 4 years old now.

Fix the logic in Uses/ghostscript.mk so "agpl" is treated as a real version
on its own instead of as a variant of other versions.

Fix print/ghostscript9-agpl-base to install eps2write.

Update math/asymptote to 2.37 to support newer Ghostscript.

PR:		208159
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2016-03-24 15:47:50 +00:00

38 lines
1 KiB
Makefile

# Created by: Oliver Breuninger <ob@seicom.NET>
# $FreeBSD$
PORTNAME= pstotext
PORTVERSION= 1.9
PORTREVISION= 6
CATEGORIES= print
MASTER_SITES= http://ftp.gwdg.de/pub/ghostscript/contrib/ \
http://ftp.sunet.se/pub/text-processing/postscript/interpreters/ghostscript/contrib/ \
http://gd.tuwien.ac.at/pub/publishing/ghostscript/contrib/ \
http://fossies.org/unix/misc/
MAINTAINER= ports@FreeBSD.org
COMMENT= PostScript to Text converter
LICENSE= EULA
LICENSE_NAME= End User License Agreement
LICENSE_FILE= ${WRKSRC}/pstotext.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= ghostscript:run
SUB_LIST= LICENSE=${LICENSE} \
LICENSE_DIR=${_LICENSE_DIR}
PLIST_FILES= bin/pstotext \
man/man1/pstotext.1.gz
post-patch:
@${REINPLACE_CMD} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${WRKSRC}/main.c \
${WRKSRC}/pstotext.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pstotext ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pstotext.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.include <bsd.port.mk>