head 1.9; access; symbols pkgsrc-2017Q1:1.8.0.4 pkgsrc-2017Q1-base:1.8 pkgsrc-2016Q4:1.8.0.2 pkgsrc-2016Q4-base:1.8 pkgsrc-2016Q3:1.6.0.4 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.2 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.5.0.4 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.2 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.3.0.12 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.10 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.8 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.6 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.4 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.2 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.2.0.6 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.4 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.2 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.1.0.4 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.2 pkgsrc-2013Q1-base:1.1; locks; strict; comment @# @; 1.9 date 2017.03.31.07.26.23; author adam; state dead; branches; next 1.8; commitid 6GxPo7C4ma4xNFLz; 1.8 date 2016.10.09.17.15.11; author adam; state Exp; branches; next 1.7; commitid vboqji2asrwqCupz; 1.7 date 2016.09.30.12.37.31; author wiz; state Exp; branches; next 1.6; commitid EBNlV662InoYmjoz; 1.6 date 2016.04.07.08.52.06; author adam; state Exp; branches; next 1.5; commitid AaXpOWZDbKPhMF1z; 1.5 date 2015.12.10.11.58.58; author markd; state Exp; branches; next 1.4; commitid EL2LmHJuPaswDoMy; 1.4 date 2015.10.10.11.55.19; author adam; state Exp; branches; next 1.3; commitid X6cIdkh9wg13AyEy; 1.3 date 2014.04.04.08.48.43; author adam; state Exp; branches; next 1.2; commitid U3FN4jy2Lm1Zllvx; 1.2 date 2013.08.22.21.07.08; author adam; state Exp; branches; next 1.1; commitid TTxgJJJ56CZCFu2x; 1.1 date 2013.03.16.22.25.21; author dholland; state Exp; branches; next ; desc @@ 1.9 log @Version 9.21 (2017-03-16) This is the fifteenth full release in the stable 9.x series. Highlights in this release include: * pdfwrite now preserves annotations from input PDFs (where possible). * The GhostXPS interpreter now provides the pdfwrite device with the data it requires to emit a ToUnicode CMap: thus allowing fully searchable PDFs to be created from XPS input (in the vast majority of cases). * Ghostscript now allows the default color space for PDF transparency blends. * The Ghostscript/GhostPDL configure script now has much better/fuller support for cross compiling. * The tiffscaled and tiffscaled4 devices can now use ETS (Even Tone Screening) * The toolbin/pdf_info.ps utility can now emit the PDF XML metadata. * Ghostscript has a new scan converter available (currently optional, but will become the default in a near future release). It can be enabled by using the command line option: '-dSCANCONVERTERTYPE=2'. This new implementation provides vastly improved performance with large and complex paths. * The usual round of bug fixes, compatibility changes, and incremental improvements. @ text @$NetBSD: patch-af,v 1.8 2016/10/09 17:15:11 adam Exp $ Use correct shared library naming on Darwin. Add some rpaths. --- base/unix-dll.mak.orig 2016-09-26 10:41:28.000000000 +0000 +++ base/unix-dll.mak @@@@ -91,10 +91,10 @@@@ GPDL_SONAME_MAJOR_MINOR=$(GPDL_SONAME_BA # MacOS X -#GS_SOEXT=dylib -#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) -#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) -#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) +#Darwin#GS_SOEXT=dylib +#Darwin#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) +#Darwin#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) +#Darwin#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) #LDFLAGS_SO=-dynamiclib -flat_namespace #LDFLAGS_SO_MAC=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR) #LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME) @@@@ -171,11 +171,11 @@@@ gpdl-so-links-subtarget: $(GPDL_SO) $(UN # Build the small Ghostscript loaders, with Gtk+ and without $(GSSOC_XE): gs-so-links-subtarget $(PSSRC)$(SOC_LOADER) $(UNIX_DLL_MAK) $(MAKEDIRS) $(GLCC) -g -o $(GSSOC_XE) $(PSSRC)dxmainc.c \ - -L$(BINDIR) -l$(GS_SO_BASE) + -L$(BINDIR) -Wl,-R$(PREFIX)/lib -l$(GS_SO_BASE) $(GSSOX_XE): gs-so-links-subtarget $(PSSRC)$(SOC_LOADER) $(UNIX_DLL_MAK) $(MAKEDIRS) $(GLCC) -g $(SOC_CFLAGS) -o $(GSSOX_XE) $(PSSRC)$(SOC_LOADER) \ - -L$(BINDIR) -l$(GS_SO_BASE) $(SOC_LIBS) + -L$(BINDIR) -Wl,-R$(PREFIX)/lib -l$(GS_SO_BASE) $(SOC_LIBS) $(PCLSOC_XE): gpcl6-so-links-subtarget $(PLSRC)$(REALMAIN_SRC).c $(UNIX_DLL_MAK) $(MAKEDIRS) $(GLCC) -g -o $(PCLSOC_XE) $(PLSRC)$(REALMAIN_SRC).c -L$(BINDIR) -l$(PCL_SO_BASE) @ 1.8 log @Restore linking on Darwin. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.7 2016/09/30 12:37:31 wiz Exp $ @ 1.7 log @Updated ghostscript-agpl to 9.20. Remove Makefile.common that is not used by anything, despite a comment to the contrary. Highlights in this release include: The usual round of bug fixes, compatibility changes, and incremental improvements. For a list of open issues, or to report problems, please visit bugs.ghostscript.com. Incompatible changes The planned device API tidy did not happen for this release, due to time pressures, but we still intend to undertake the following: We plan to somewhat tidy up the device API. We intend to remove deprecated device procs (methods/function pointers) and change the device API so every device proc takes a graphics state parameter (rather than the current scheme where only a very few procs take an imager state parameter). This should serve as notice to anyone maintaining a Ghostscript device outside the canonical source tree that you may (probably will) need to update your device(s) when these changes happen. Devices using only the non-deprecated procs should be trivial to update. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.6 2016/04/07 08:52:06 adam Exp $ d3 1 d8 15 @ 1.6 log @Changes 9.19: * New custom PJL (near) equivalents for pdfmark and setdistillerparams. * Metadata pdfmark is now implemented. * An experimental, rudimentary raster trapping implementation implementation has been added to the Ghostscript graphics library. * The halftone threshold array generation tools (part of toolbin/halftone) have been improved with thresh_remap which allows folding the transfer function (AKA toner response curve (TRC)) into the threshold array so that highlights are improved. Further, gen_stochastic has improved support for minimum dot size and shape. * Plus the usual round of bug fixes, compatibility changes, and incremental improvements. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.5 2015/12/10 11:58:58 markd Exp $ d3 1 a3 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 as an extension). d5 1 a5 4 You need to manually reconfigure unix-dll.mak to make it work, so do it in hacks.mk. --- base/unix-dll.mak.orig 2016-03-23 08:22:48.000000000 +0000 d7 1 a7 18 @@@@ -66,11 +66,11 @@@@ GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE)$ # MacOS X -#GS_SOEXT=dylib -#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) -#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) -#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) -#LDFLAGS_SO=-dynamiclib -flat_namespace +#Darwin#GS_SOEXT=dylib +#Darwin#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) +#Darwin#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) +#Darwin#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) +#Darwin#LDFLAGS_SO=-dynamiclib -install_name $(DESTDIR)$(libdir)/$(GS_SONAME_MAJOR) #LDFLAGS_SO_MAC=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR) #LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME) @@@@ -96,11 +96,11 @@@@ so-links-subtarget: $(GS_SO) $(UNIX_DLL_ d9 1 a9 1 $(GSSOC_XE): so-links-subtarget $(PSSRC)$(SOC_LOADER) $(UNIX_DLL_MAK) $(MAKEDIRS) d14 1 a14 1 $(GSSOX_XE): so-links-subtarget $(PSSRC)$(SOC_LOADER) $(UNIX_DLL_MAK) $(MAKEDIRS) d19 2 a20 2 # ------------------------- Recursive make targets ------------------------- # @ 1.5 log @Add gserrors.h to the installed files (upstream Bug 696301) @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.4 2015/10/10 11:55:19 adam Exp $ d11 1 a11 3 Add gserrors.h to the installed files (Bug 696301) --- base/unix-dll.mak.orig 2015-10-05 08:21:11.000000000 +0000 d13 1 a13 1 @@@@ -64,11 +64,11 @@@@ GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE)$ d30 1 a30 1 @@@@ -94,11 +94,11 @@@@ so-links-subtarget: $(GS_SO) d32 1 a32 1 $(GSSOC_XE): so-links-subtarget $(PSSRC)$(SOC_LOADER) d37 1 a37 1 $(GSSOX_XE): so-links-subtarget $(PSSRC)$(SOC_LOADER) a43 8 @@@@ -184,6 +184,7 @@@@ install-so-subtarget: so-subtarget ln -s $(GS_SONAME_MAJOR_MINOR) $(DESTDIR)$(libdir)/$(GS_SONAME_MAJOR) $(INSTALL_DATA) $(PSSRC)iapi.h $(DESTDIR)$(gsincludedir)iapi.h $(INSTALL_DATA) $(PSSRC)ierrors.h $(DESTDIR)$(gsincludedir)ierrors.h + $(INSTALL_DATA) $(GLSRC)gserrors.h $(DESTDIR)$(gsincludedir)gserrors.h $(INSTALL_DATA) $(DEVSRC)gdevdsp.h $(DESTDIR)$(gsincludedir)gdevdsp.h soinstall: @ 1.4 log @Changes 9.18: A substantial revision of the build system and GhostPDL directory structure, meaning the GhostPCL and GhostXPS "products" are now built by the Ghostscript build system "proper" rather than having their own builds which called the Ghostscript build system for certain parts of the builds. Ghostscript-only users should not be affected by this change. For users of the PCL and XPS interpreters (collectively downloaded as "GhostPDL") there is a new, "flatter" directory structure and only one configure and one make invocation to build all the products. There are also some executable default name changes to bring the PCL and XPS binaries in line with the Ghostscript ones. All executables now end up in the "bin" directory (or build specific variant thereof, e.g. "debugbin"). The PCL executable, by default, is now "gpcl6" on Unix like systems and "gpcl6win??.exe" (where "??" is either "32" or "64"). The XPS executable remains "gxps" on Unix-like systems, but similarly becomes "gxpswin??.exe" on Windows. Those using scripts or other automated processes will need to take steps to cope with these changes. A new method of internally inserting devices into the device chain has been developed, named "device subclassing". This allows suitably written devices to be more easily and consistently as "filter" devices. The first fruit of this is a new implementation of the "-dFirstPage"/"-dLastPage" feature which functions a device filter in the Ghostscript graphics library, meaning it works consistently with all input languages. The "ghostpdl.inf" file, provided to simplify installing a Postscript printer configure to produce output to suit Ghostscript's "pdfwrite" device is now available as a digitally signed version: "ghostpdl.cat". Plus the usual round of bug fixes, compatibility changes, and incremental improvements. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.3 2014/04/04 08:48:43 adam Exp $ d11 2 d46 8 @ 1.3 log @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. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.2 2013/08/22 21:07:08 adam Exp $ d11 1 a11 1 --- base/unix-dll.mak.orig 2013-08-21 14:06:40.000000000 +0000 d30 1 a30 1 @@@@ -91,11 +91,11 @@@@ $(GS_SO_MAJOR): $(GS_SO_MAJOR_MINOR) d32 1 a32 1 $(GSSOC_XE): $(GS_SO) $(PSSRC)$(SOC_LOADER) d37 1 a37 1 $(GSSOX_XE): $(GS_SO) $(PSSRC)$(SOC_LOADER) @ 1.2 log @Changes 9.09: * Background printing (BGPrint) is a new feature allowing an accumulated page clist to be rendered by one or more rendering threads whilst the interpreter (in the "main" thread) continues to accumulate the subsequent page's clist. For certain classes of file this can result in a useful performance increase. * GrayDetection allows suitably written devices to detect "color" input in near neutral tones (i.e. near monochrome) and to convert "on-the-fly" to pure grayscale, whilst retaining the ability to print full color on demand. This is primarily aimed at workflows where saving ink (especially color inks) is required. * LittleCMS2 and libpng have both been updated to the latest versions. * Support has been added to build the Ghostscript DLL for WinRT for x86, x64 and ARM (Requires MS Visual Studio 2012 Pro). * Processing of Windows command line arguments into UTF8 (as presaged a few releases ago) has been enhanced and enabled by default. * The URW Postscript font set has been updated to the latest version, fixing many compatibility problems with the Adobe fonts. * Plus the usual round of bug fixes, compatibility changes, and incremental improvements. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.1 2013/03/16 22:25:21 dholland Exp $ a2 2 (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 a10 4 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.... @ 1.1 log @Add ghostscript-agpl package, the same as the current print/ghostscript. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.8 2012/10/10 02:18:25 mef Exp $ d17 3 a19 3 --- base/unix-dll.mak.orig 2012-08-08 17:01:36.000000000 +0900 +++ base/unix-dll.mak 2012-10-10 10:03:50.000000000 +0900 @@@@ -59,13 +59,12 @@@@ d27 1 a31 3 #LDFLAGS_SO=-dynamiclib -flat_namespace -LDFLAGS_SO_MAC=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR) -#LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME) d33 2 d36 1 a36 3 GS_SO=$(BINDIR)/$(GS_SONAME) GS_SO_MAJOR=$(BINDIR)/$(GS_SONAME_MAJOR) @@@@ -86,11 +85,11 @@@@ d40 2 a41 2 - -L$(BINDIR) -l$(GS) + -L$(BINDIR) -Wl,-R$(PREFIX)/lib -l$(GS) d45 2 a46 2 - -L$(BINDIR) -l$(GS) $(SOC_LIBS) + -L$(BINDIR) -l$(GS) -Wl,-R$(PREFIX)/lib -l$(GS) $(SOC_LIBS) @