ac44c6a737
- Rename generic-named patches to specific file names - Define LICENSE using file previously installed with the DOCS option - Remove DOCS option as it only installed aforementioned license file - Bump PORTREVISION since OPTIONS changed
39 lines
1 KiB
Makefile
39 lines
1 KiB
Makefile
# Created by: Oliver Breuninger <ob@seicom.NET>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pstotext
|
|
PORTVERSION= 1.9
|
|
PORTREVISION= 4
|
|
CATEGORIES= print
|
|
MASTER_SITES= http://ftp.gwdg.de/pub/%SUBDIR%/ \
|
|
http://ftp.sunet.se/pub/text-processing/postscript/interpreters/%SUBDIR%/ \
|
|
http://gd.tuwien.ac.at/pub/publishing/%SUBDIR%/ \
|
|
http://fossies.org/unix/misc/
|
|
MASTER_SITE_SUBDIR= ghostscript/contrib
|
|
|
|
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
|
|
|
|
USE_GHOSTSCRIPT_RUN= yes
|
|
|
|
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>
|