mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
27470e1676
* print/ghostscript{7,8,9,9-agpl}-base Installs Ghostscript binary, libgs, and related files. These ports do not depend on X11 libraries (i.e. x11* devices are not available). USES=ghostscript will set dependency on one of them depending on GHOSTSCRIPT_DEFAULT. The default device is set to "display" or "bbox". * print/ghostscript{7,8,9,9-agpl}-x11 Installs a shared library which provides X11 support to the installed Ghostscript binaries. x11* devices will be enabled when the library is available. This depends on *-base (RUN_DEPENDS). USES=ghostscript:x11 will set dependency on one of them. - Fix integer overflow reported as CVE-2015-3228. - Update Uses/ghostscript.mk: * Add x11 keyword. nox11 keyword is now obsolete. * Use packagename in *_DEPENDS line to prevent relationship between -base and -x11 packages from being broken. - Fix x11/nox11 keyword and bump PORTREVISION in ports using USES=ghostscript to update dependency of pre-compiled packages.
57 lines
1.7 KiB
Makefile
57 lines
1.7 KiB
Makefile
# Created by: bf <bf2006a@yahoo.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gsview
|
|
PORTVERSION= 4.9
|
|
PORTREVISION= 6
|
|
CATEGORIES= print
|
|
MASTER_SITES= LOCAL/bf
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= GUI to view, search, print, and convert PostScript and PDF documents
|
|
|
|
LICENSE= AFPL
|
|
LICENSE_NAME= Aladdin Free Public Licence
|
|
LICENSE_FILE= ${WRKSRC}/LICENCE
|
|
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
|
|
|
|
RUN_DEPENDS+= epstool:${PORTSDIR}/graphics/epstool \
|
|
pstotext:${PORTSDIR}/print/pstotext
|
|
|
|
USES= cpe ghostscript
|
|
USE_GNOME= gtk12
|
|
MAKE_JOBS_UNSAFE= yes
|
|
PLIST_FILES= bin/gsview \
|
|
bin/gsview-help \
|
|
etc/gsview/printer.ini \
|
|
man/man1/gsview.1.gz
|
|
PORTDOCS= gsview.css cdorder.txt regorder.txt Readme.htm LICENCE \
|
|
gvxct.htm gvxde.htm gvxen.htm gvxes.htm gvxfr.htm gvxgr.htm \
|
|
gvxit.htm gvxnl.htm gvxru.htm gvxse.htm gvxsk.htm
|
|
SUB_FILES= pkg-message
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
${CP} ${WRKSRC}/srcunx/unx.mak ${WRKSRC}/Makefile
|
|
${REINPLACE_CMD} -e 's;malloc\.h;stdlib\.h;g' \
|
|
${WRKSRC}/src/doc2html.c ${WRKSRC}/src/doc2ipf.c \
|
|
${WRKSRC}/src/doc2xml.c
|
|
${REINPLACE_CMD} -e 's;mozilla;firefox3;g' \
|
|
${WRKSRC}/srcunx/gvxhelp.txt
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/gsview ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/srcunx/gvxhelp.txt \
|
|
${STAGEDIR}${PREFIX}/bin/gsview-help
|
|
${INSTALL_MAN} ${WRKSRC}/srcunx/gsview.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/gsview/
|
|
${INSTALL_DATA} ${WRKSRC}/src/printer.ini \
|
|
${STAGEDIR}${PREFIX}/etc/gsview/
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_MAN} gsview.css cdorder.txt regorder.txt \
|
|
Readme.htm LICENCE ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/bin/*.htm ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|