ports/print/ghostscript9-base/files/Makefile.pcl3
Hiroki Sato 27470e1676 - Split ghostscript into X11-independent and -dependent parts:
* 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.
2015-08-22 17:48:35 +00:00

35 lines
1.2 KiB
Text

# $FreeBSD$
PORTDOCS+= pcl3
PORTDOC_FILES+= pcl3/NEWS pcl3/BUGS pcl3/README pcl3/gs-pcl3.html \
pcl3/how-to-report.txt pcl3/pcl3opts.html
post-build-pcl3:
cd ${WRKSRC} && \
${CC} ${CFLAGS} -I./obj -I./soobj -I./base \
-I./contrib/pcl3/eprn -o bin/pcl3opts \
contrib/pcl3/src/pcl3opts.c contrib/pcl3/src/pclscan.c \
contrib/pcl3/eprn/mediasize.c contrib/pcl3/src/pclsize.c
post-install-pcl3:
${INSTALL_PROGRAM} ${WRKSRC}/bin/pcl3opts ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}/pcl3
cd ${WRKSRC}/contrib/pcl3 && \
${INSTALL_DATA} lib/example.mcf lib/if-pcl3 \
ps/calign.ps ps/dumppdd.ps ps/levels-test.ps \
ps/margins-A4.ps ps/margins-A4Rotated.ps \
ps/margins-Env10Rotated.ps \
ps/margins-EnvDLRotated.ps \
ps/margins-Letter.ps \
ps/margins-LetterRotated.ps \
${STAGEDIR}${DATADIR}/pcl3
cd ${WRKSRC}/contrib/pcl3/doc && \
${INSTALL_MAN} gs-pcl3.1 pcl3opts.1 ${STAGEDIR}${MANPREFIX}/man/man1
post-install-docs-pcl3:
${MKDIR} ${WRKSRC}/contrib/pcl3
${INSTALL_DATA} ${WRKSRC}/contrib/pcl3/doc/* ${WRKSRC}/contrib/pcl3
post-build: post-build-pcl3
post-install: post-install-pcl3
post-install-docs: post-install-docs-pcl3