pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/ghostscript-agpl Changes 9.14:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/000698c46b87
branches:  trunk
changeset: 632709:000698c46b87
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Apr 04 08:48:43 2014 +0000

description:
Changes 9.14:
pdfwrite now uses the same color management engine as Ghostscript rendering devices (by default LCMS2). This provides much better control over color conversion and color management generally, but 
will result in some small color differences when compared to the old system.

It is no longer necessary to specify UseCIEColor (and we very much encourage you not to do this) or the ProcessColorModel if you want to convert a PDF file to a specific color space, simply set the 
ColorConversionStrategy appropriately.

We do not expect any major problems to arise with this new code, but for the duration of this release a new switch -dPDFUseOldCMS is available which will restore the old color management. See: Color 
Conversion and Management

Please note that due to constraints of the PDF/A-1 specification, the new color management does not yet apply when producing PDF/A files.

A new device 'eps2write' has been added which allows for the creation of EPS files using the ps2write device instead of the old (deprecated and removed) pswrite device. This produces considerably 
better quality EPS files than the old epswrite device which is now also deprecated and will be removed in a future release.

ps2write now has a feature to allow customisation of the output for specific devices. Please see PSDocOptions and PSPageOptions described in ps2ps2.htm Additional Distiller Params

Ghostscript now reduces memory usage when processing PDF files that use transparency and output is to display devices such as Windows display or x11 (i.e. devices that are strictly full framebuffer 
devices), and to high level vector devices that cannot reproduce the PDF transparency model, such as the ps2write device or pdfwrite when 'flattening' to PDF 1.3 or earlier 
(-dCompatibilityLevel=1.3). This uses banding (clist) files to render the transparent areas in bands to reduce memory use, and unlike the existing page level banding, this is hidden from the target 
device.

Ghostscript can now collect information for pages in temp files (in Ghostscript's clist format), then render and output pages for the job in arbitrary order, including normal, reverse, odd, even, or 
any order or subset of the pages. This is controlled with the --saved-page=___ option. (Note that this only applies to rendering devices, and not high level devices such as pdfwrite and ps2write.) 
See: Deferred Page Rendering

The Ghostscript device architecture has been extended so that, when rendering bands into multiple threads, it is now possible to perform post-processing in multiple threads, such as downscale, 
post-render halftoning, or compression. Previously, post processing was only possible in the single main thread. This can improve performance significantly.

Ghostscript has a new "pwgraster" output device for PWG Raster output

The CUPS device now has improved support for PPD-less printing

Plus the usual round of bug fixes, compatibility changes, and incremental improvements.

diffstat:

 print/ghostscript-agpl/Makefile                                        |   4 +-
 print/ghostscript-agpl/Makefile.common                                 |   4 +-
 print/ghostscript-agpl/PLIST                                           |   3 +-
 print/ghostscript-agpl/distinfo                                        |  13 +++---
 print/ghostscript-agpl/patches/patch-af                                |   8 +---
 print/ghostscript-agpl/patches/patch-devices_devs.mak                  |  15 +++++++
 print/ghostscript-agpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h |  20 ++++------
 7 files changed, 36 insertions(+), 31 deletions(-)

diffs (145 lines):

diff -r 79576d4edb43 -r 000698c46b87 print/ghostscript-agpl/Makefile
--- a/print/ghostscript-agpl/Makefile   Fri Apr 04 07:30:30 2014 +0000
+++ b/print/ghostscript-agpl/Makefile   Fri Apr 04 08:48:43 2014 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2014/02/12 23:18:29 tron Exp $
+# $NetBSD: Makefile,v 1.9 2014/04/04 08:48:43 adam Exp $
 
 DISTNAME=      ghostscript-${GS_VERSION}
 PKGNAME=       ${DISTNAME:S/ghostscript/ghostscript-agpl/}
-PKGREVISION=   1
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=ghostscript/} \
                http://downloads.ghostscript.com/public/
@@ -94,6 +93,7 @@
        ${RM} -rf ${WRKSRC}/jpeg
        ${RM} -rf ${WRKSRC}/lcms2
        ${RM} -rf ${WRKSRC}/libpng
+       ${RM} -rf ${WRKSRC}/tiff
        ${RM} -rf ${WRKSRC}/zlib
 
 #  To allow outside customization, rename cidfmap
diff -r 79576d4edb43 -r 000698c46b87 print/ghostscript-agpl/Makefile.common
--- a/print/ghostscript-agpl/Makefile.common    Fri Apr 04 07:30:30 2014 +0000
+++ b/print/ghostscript-agpl/Makefile.common    Fri Apr 04 08:48:43 2014 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile.common,v 1.3 2013/09/03 06:39:12 adam Exp $
+# $NetBSD: Makefile.common,v 1.4 2014/04/04 08:48:43 adam Exp $
 # used by print/ghostscript-agpl/Makefile
 # used by fonts/ghostscript-cidfonts/Makefile
 # used by fonts/ghostscript-cidfonts-ryumin/Makefile
 
-GS_VERSION=    9.10
+GS_VERSION=    9.14
diff -r 79576d4edb43 -r 000698c46b87 print/ghostscript-agpl/PLIST
--- a/print/ghostscript-agpl/PLIST      Fri Apr 04 07:30:30 2014 +0000
+++ b/print/ghostscript-agpl/PLIST      Fri Apr 04 08:48:43 2014 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2013/12/27 16:42:46 gdt Exp $
+@comment $NetBSD: PLIST,v 1.5 2014/04/04 08:48:43 adam Exp $
 bin/dvipdf
 bin/eps2eps
 bin/font2c
@@ -524,7 +524,6 @@
 share/ghostscript/${PKGVERSION}/lib/ghostpdf.ppd
 share/ghostscript/${PKGVERSION}/lib/gs_ce_e.ps
 share/ghostscript/${PKGVERSION}/lib/gs_cmdl.ps
-share/ghostscript/${PKGVERSION}/lib/gs_fform.ps
 share/ghostscript/${PKGVERSION}/lib/gs_il2_e.ps
 share/ghostscript/${PKGVERSION}/lib/gs_kanji.ps
 share/ghostscript/${PKGVERSION}/lib/gs_ksb_e.ps
diff -r 79576d4edb43 -r 000698c46b87 print/ghostscript-agpl/distinfo
--- a/print/ghostscript-agpl/distinfo   Fri Apr 04 07:30:30 2014 +0000
+++ b/print/ghostscript-agpl/distinfo   Fri Apr 04 08:48:43 2014 +0000
@@ -1,11 +1,12 @@
-$NetBSD: distinfo,v 1.3 2013/09/03 06:39:12 adam Exp $
+$NetBSD: distinfo,v 1.4 2014/04/04 08:48:43 adam Exp $
 
-SHA1 (ghostscript-9.10.tar.bz2) = 89527d45f97b6cf028ad8ca4bfa07c64462390e8
-RMD160 (ghostscript-9.10.tar.bz2) = c30b94918d5eeed8d8b50c6ee9e339541004ded8
-Size (ghostscript-9.10.tar.bz2) = 30983380 bytes
-SHA1 (patch-af) = a1cbc0b9724e3ca43e3cedb6c6e619adfed59068
+SHA1 (ghostscript-9.14.tar.bz2) = eab1c9e9850d8aedf02d16f3f7f8198ad9384068
+RMD160 (ghostscript-9.14.tar.bz2) = 4f3aad17f271b17bd890ac63af56c75e42e10945
+Size (ghostscript-9.14.tar.bz2) = 31080058 bytes
+SHA1 (patch-af) = 3dd65dbd9611c00d45997c86d16eada37511dca5
 SHA1 (patch-ah) = db74a482e22771414f223a97dd71df5215553d85
 SHA1 (patch-ai) = e83a732559094ea8b683a171219388d5087c816f
 SHA1 (patch-al) = b4d06da288a608d65cdb014b0f2384406089afe3
 SHA1 (patch-base_gserrors_h) = ce75cfb7528871842a3bd35e18a6d91c89823909
-SHA1 (patch-openjpeg_libopenjpeg_opj_malloc_h) = 207a22833f6e7026feea0bfc3f7411d228f03e6e
+SHA1 (patch-devices_devs.mak) = 574c50c1dcb4136a6f150bcfdebb9c7ee62c0ef0
+SHA1 (patch-openjpeg_libopenjpeg_opj_malloc_h) = f279a31ed796e73f6dc701fe63c16fa5b120f3f6
diff -r 79576d4edb43 -r 000698c46b87 print/ghostscript-agpl/patches/patch-af
--- a/print/ghostscript-agpl/patches/patch-af   Fri Apr 04 07:30:30 2014 +0000
+++ b/print/ghostscript-agpl/patches/patch-af   Fri Apr 04 08:48:43 2014 +0000
@@ -1,7 +1,5 @@
-$NetBSD: patch-af,v 1.2 2013/08/22 21:07:08 adam Exp $
+$NetBSD: patch-af,v 1.3 2014/04/04 08:48:43 adam Exp $
 
-(From the log for revision 1.4 of print/ghostscript/patches/patch-af)
-date: 2008/11/13 17:36:54;  author: chuck;  state: Exp;  lines: +22 -4
 ghostscript has hand-rolled shared lib handling in src/unix-dll.mak
 that does not do the right thing on Darwin (where shared libs are
 created with different linking flags and use dylib rather than so
@@ -10,10 +8,6 @@
 You need to manually reconfigure unix-dll.mak to make it work, so
 do it in hacks.mk.
 
-XXX: this still leaves the issue of libgs.so (et al.) being hardwired
-in PLIST, instead of using libgs.dylib (et al.).   i'm not sure of
-the best way to fix that.   at least it compiles now....
-
 --- base/unix-dll.mak.orig     2013-08-21 14:06:40.000000000 +0000
 +++ base/unix-dll.mak
 @@ -64,11 +64,11 @@ GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE)$
diff -r 79576d4edb43 -r 000698c46b87 print/ghostscript-agpl/patches/patch-devices_devs.mak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/ghostscript-agpl/patches/patch-devices_devs.mak     Fri Apr 04 08:48:43 2014 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-devices_devs.mak,v 1.1 2014/04/04 08:48:43 adam Exp $
+
+Don't explicitly depend on zlib.h header file.
+
+--- devices/devs.mak.orig      2014-04-03 16:42:54.000000000 +0000
++++ devices/devs.mak
+@@ -1597,7 +1597,7 @@ $(DD)pngalpha.dev : $(DEVS_MAK) $(libpng
+ fpng_=$(DEVOBJ)gdevfpng.$(OBJ) $(DEVOBJ)gdevpccm.$(OBJ)
+ 
+ $(DEVOBJ)gdevfpng.$(OBJ) : $(DEVSRC)gdevfpng.c\
+- $(gdevprn_h) $(gdevpccm_h) $(gscdefs_h) $(zlib_h)
++ $(gdevprn_h) $(gdevpccm_h) $(gscdefs_h)
+       $(CC_) $(I_)$(DEVI_) $(II)$(PI_)$(_I) $(PCF_) $(GLF_) $(DEVO_)gdevfpng.$(OBJ) $(C_) $(DEVSRC)gdevfpng.c
+ 
+ $(DD)fpng.dev : $(DEVS_MAK) $(fpng_) $(GLD)page.dev $(GDEV)
diff -r 79576d4edb43 -r 000698c46b87 print/ghostscript-agpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h
--- a/print/ghostscript-agpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h    Fri Apr 04 07:30:30 2014 +0000
+++ b/print/ghostscript-agpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h    Fri Apr 04 08:48:43 2014 +0000
@@ -1,19 +1,15 @@
-$NetBSD: patch-openjpeg_libopenjpeg_opj_malloc_h,v 1.1 2013/03/16 22:25:21 dholland Exp $
+$NetBSD: patch-openjpeg_libopenjpeg_opj_malloc_h,v 1.2 2014/04/04 08:48:43 adam Exp $
 
-To avoid following problem:
-| gcc .. (omitted).. g -o ./sobin/gsc ./psi/dxmainc.c \
-| -L./sobin -Wl,-R/usr/pkg/lib -lgs
-| ./sobin/libgs.so: undefined reference to `memalign'
-| gmake[2]: *** [sobin/gsc] Error 1
+Work around undefined 'memalign' issue.
 
---- openjpeg/libopenjpeg/opj_malloc.h.orig     2013-02-14 07:58:13.000000000 +0000
+--- openjpeg/libopenjpeg/opj_malloc.h.orig     2014-03-26 12:53:47.000000000 +0000
 +++ openjpeg/libopenjpeg/opj_malloc.h
-@@ -84,7 +84,7 @@ Allocate memory aligned to a 16 byte bou
-       #if defined(__sun)
-               #define HAVE_MEMALIGN
+@@ -88,7 +88,7 @@ Allocate memory aligned to a 16 byte bou
+   #elif defined(__FreeBSD__)
+     #define HAVE_POSIX_MEMALIGN
        /* Linux x86_64 and OSX always align allocations to 16 bytes */
--      #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX) && !defined(__FreeBSD__)
-+      #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__OpenBSD__)
+-      #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX)
++      #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX) && !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__OpenBSD__)
                #define HAVE_MEMALIGN
                #include <malloc.h>                     
        #endif



Home | Main Index | Thread Index | Old Index