PSARC/2015/272 Ghostscript 9.20
authorsaurabh.vyas@oracle.com
Thu, 30 Mar 2017 20:50:08 -0700
changeset 7819 b1bca76ec901
parent 7818 c93a988b3522
child 7820 a2b9a7de9e1a
PSARC/2015/272 Ghostscript 9.20 16354273 Upgrade ghostscript to 9.20 24808169 problem in UTILITY/GHOSTSCRIPT 24808123 problem in UTILITY/GHOSTSCRIPT 24807899 problem in UTILITY/GHOSTSCRIPT 24807607 problem in UTILITY/GHOSTSCRIPT 23148723 Regression caused due to -x04 optimisation with /usr/bin/amd64/gs on S12_97 25054202 ghostscript 9.20 build fails with restrict qualifier
components/ghostscript/Makefile
components/ghostscript/ghostscript-core.p5m
components/ghostscript/ghostscript.license
components/ghostscript/ghostscript.p5m
components/ghostscript/patches/02-4776996.patch
components/ghostscript/patches/03-4795491.patch
components/ghostscript/patches/05-5045800.patch
components/ghostscript/patches/07-unixinst.mak.patch
components/ghostscript/patches/09-ijs.automake.patch
components/ghostscript/patches/11-7041017.patch
components/ghostscript/patches/12-7076729.patch
components/ghostscript/patches/16730811.patch
components/ghostscript/patches/21516009.patch
components/ghostscript/patches/24807607_24808123.patch
components/ghostscript/patches/24807899.patch
components/ghostscript/patches/24808169.patch
components/ghostscript/patches/25054202.patch
components/ghostscript/patches/4732635,5033581.patch
components/ghostscript/patches/6886857,7068679.patch
components/ghostscript/patches/7003267.patch
components/ghostscript/patches/7103293.patch
components/ghostscript/patches/7152414.patch
components/ghostscript/patches/7201968.patch
--- a/components/ghostscript/Makefile	Thu Mar 30 13:00:52 2017 -0700
+++ b/components/ghostscript/Makefile	Thu Mar 30 20:50:08 2017 -0700
@@ -23,27 +23,24 @@
 #
 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
 #
-# parfait seems to spin when looking at the .bc files (13704877), so
-# for now disable it.
-export PARFAIT_BUILD=no
-
 # Prefer 32-bit due to ghostcript's hybrid build system.
 BUILD_BITS= 32_and_64
 include ../../make-rules/shared-macros.mk
 
 
 COMPONENT_NAME=         ghostscript
-COMPONENT_VERSION=      9.00
+COMPONENT_VERSION=      9.20
 COMPONENT_PROJECT_URL=	http://ghostscript.com/
+COMPONENT_DOWNLOAD_URL=	https://github.com/ArtifexSoftware/ghostpdl-downloads
 COMPONENT_ARCHIVE_HASH= \
-    sha256:9e754c315d68d91a65ef208b9a8bda1fb57e45a7be18aa9397acfcc5ff59de16
-COMPONENT_ARCHIVE_URL=  $(COMPONENT_PROJECT_URL)releases/$(COMPONENT_ARCHIVE)
-COMPONENT_ANITYA_ID=	1157
+    sha256:949b64b46ecf8906db54a94ecf83ab97534ebf946f770d3c3f283cb469cb6e14
+COMPONENT_ARCHIVE_URL=  $(COMPONENT_DOWNLOAD_URL)/releases/download/gs920/$(COMPONENT_ARCHIVE)
 
-TPNO=			3796
+TPNO=			33162
 
 COMMON_TARGETS= no
 include $(WS_MAKE_RULES)/common.mk
+studio_OPT= -xO2 
 
 PATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
 
@@ -107,9 +104,6 @@
 
 CONFIGURE_SCRIPT = ./configure
 
-# Adjust '#!/usr/bin/perl'
-PERL_SCRIPTS= $(PROTOUSRBINDIR)/fixmswrd.pl
-
 # ASLR disabled until sufficient testing can be performed.
 ASLR_MODE= $(ASLR_DISABLE)
 
@@ -129,7 +123,9 @@
 
 REQUIRED_PACKAGES += image/library/libjpeg
 REQUIRED_PACKAGES += image/library/libpng
-REQUIRED_PACKAGES += library/desktop/gtk2
+REQUIRED_PACKAGES += library/desktop/gtk3
+REQUIRED_PACKAGES += library/desktop/cairo
+REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
 REQUIRED_PACKAGES += library/glib2
 REQUIRED_PACKAGES += library/print/cups-libs
 REQUIRED_PACKAGES += library/zlib
--- a/components/ghostscript/ghostscript-core.p5m	Thu Mar 30 13:00:52 2017 -0700
+++ b/components/ghostscript/ghostscript-core.p5m	Thu Mar 30 20:50:08 2017 -0700
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
 #
 <transform file path=usr.*/man/.+ -> default mangler.man.stability volatile>
 set name=pkg.fmri \
@@ -32,15 +32,35 @@
 set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
 set name=org.opensolaris.arc-caseid value=PSARC/2016/442
 set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
-file path=etc/cups/pdftoraster.convs
-file path=etc/cups/pstoraster.convs
+file path=usr/bin/$(MACH64)/dvipdf
+file path=usr/bin/$(MACH64)/eps2eps
+file path=usr/bin/$(MACH64)/font2c
 file path=usr/bin/$(MACH64)/gs
+file path=usr/bin/$(MACH64)/gsbj
 file path=usr/bin/$(MACH64)/gsc
-file path=usr/bin/bdftops
-file path=usr/bin/dumphint
+file path=usr/bin/$(MACH64)/gsdj
+file path=usr/bin/$(MACH64)/gsdj500
+file path=usr/bin/$(MACH64)/gslj
+file path=usr/bin/$(MACH64)/gslp
+file path=usr/bin/$(MACH64)/gsnd
+file path=usr/bin/$(MACH64)/lprsetup.sh
+file path=usr/bin/$(MACH64)/pdf2dsc
+file path=usr/bin/$(MACH64)/pdf2ps
+file path=usr/bin/$(MACH64)/pf2afm
+file path=usr/bin/$(MACH64)/pfbtopfa
+file path=usr/bin/$(MACH64)/printafm
+file path=usr/bin/$(MACH64)/ps2ascii
+file path=usr/bin/$(MACH64)/ps2pdf
+file path=usr/bin/$(MACH64)/ps2pdf12
+file path=usr/bin/$(MACH64)/ps2pdf13
+file path=usr/bin/$(MACH64)/ps2pdf14
+file path=usr/bin/$(MACH64)/ps2pdfwr
+file path=usr/bin/$(MACH64)/ps2ps
+file path=usr/bin/$(MACH64)/ps2ps2
+file path=usr/bin/$(MACH64)/unix-lpr.sh
+file path=usr/bin/$(MACH64)/wftopfa
 file path=usr/bin/dvipdf
 file path=usr/bin/eps2eps
-file path=usr/bin/fixmswrd.pl
 file path=usr/bin/font2c
 file path=usr/bin/gs
 file path=usr/bin/gsbj
@@ -50,11 +70,9 @@
 file path=usr/bin/gslj
 file path=usr/bin/gslp
 file path=usr/bin/gsnd
-file path=usr/bin/ijs-config
 file path=usr/bin/lprsetup.sh
 file path=usr/bin/pdf2dsc
 file path=usr/bin/pdf2ps
-file path=usr/bin/pdfopt
 file path=usr/bin/pf2afm
 file path=usr/bin/pfbtopfa
 file path=usr/bin/printafm
@@ -80,22 +98,14 @@
 link path=usr/lib/$(MACH64)/libgs.so.8 target=libgs.so.9
 link path=usr/lib/$(MACH64)/libgs.so.9 target=libgs.so.$(COMPONENT_VERSION)
 file build/$(MACH64)/ijs/.libs/libijs.a path=usr/lib/$(MACH64)/libijs.a
-file build/$(MACH64)/bin/pdftoraster \
-    path=usr/lib/cups/filter/$(MACH64)/pdftoraster mode=0555
-file path=usr/lib/cups/filter/pdftoraster mode=0555
-file path=usr/lib/cups/filter/pstopxl mode=0555
-file path=usr/lib/cups/filter/pstoraster mode=0555
 link path=usr/lib/libgs.so target=libgs.so.$(COMPONENT_VERSION)
 file path=usr/lib/libgs.so.$(COMPONENT_VERSION)
 link path=usr/lib/libgs.so.8 target=libgs.so.9
 link path=usr/lib/libgs.so.9 target=libgs.so.$(COMPONENT_VERSION)
 file build/$(MACH32)/ijs/.libs/libijs.a path=usr/lib/libijs.a
 file path=usr/lib/pkgconfig/ijs.pc
-link path=usr/sfw/bin/bdftops target=../../bin/bdftops
-link path=usr/sfw/bin/dumphint target=../../bin/dumphint
 link path=usr/sfw/bin/dvipdf target=../../bin/dvipdf
 link path=usr/sfw/bin/eps2eps target=../../bin/eps2eps
-link path=usr/sfw/bin/fixmswrd.pl target=../../bin/fixmswrd.pl
 link path=usr/sfw/bin/font2c target=../../bin/font2c
 link path=usr/sfw/bin/gs target=../../bin/gs
 link path=usr/sfw/bin/gsbj target=../../bin/gsbj
@@ -107,7 +117,6 @@
 link path=usr/sfw/bin/lprsetup.sh target=../../bin/lprsetup.sh
 link path=usr/sfw/bin/pdf2dsc target=../../bin/pdf2dsc
 link path=usr/sfw/bin/pdf2ps target=../../bin/pdf2ps
-link path=usr/sfw/bin/pdfopt target=../../bin/pdfopt
 link path=usr/sfw/bin/pf2afm target=../../bin/pf2afm
 link path=usr/sfw/bin/pfbtopfa target=../../bin/pfbtopfa
 link path=usr/sfw/bin/printafm target=../../bin/printafm
@@ -121,8 +130,6 @@
 link path=usr/sfw/bin/ps2ps target=../../bin/ps2ps
 link path=usr/sfw/bin/unix-lpr.sh target=../../bin/unix-lpr.sh
 link path=usr/sfw/bin/wftopfa target=../../bin/wftopfa
-file path=usr/share/cups/model/pxlcolor.ppd
-file path=usr/share/cups/model/pxlmono.ppd
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/78-EUC-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/78-EUC-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/78-H
@@ -133,13 +140,10 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/78ms-RKSJ-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/83pv-RKSJ-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/90ms-RKSJ-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/90ms-RKSJ-UCS2
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/90ms-RKSJ-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/90msp-RKSJ-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/90msp-RKSJ-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/90pv-RKSJ-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/90pv-RKSJ-UCS2
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/90pv-RKSJ-UCS2C
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/90pv-RKSJ-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Add-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Add-RKSJ-H
@@ -152,24 +156,12 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-CNS1-4
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-CNS1-5
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-CNS1-6
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-CNS1-B5pc
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-CNS1-ETenms-B5
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-CNS1-H-CID
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-CNS1-H-Host
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-CNS1-H-Mac
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-CNS1-UCS2
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-GB1-0
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-GB1-1
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-GB1-2
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-GB1-3
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-GB1-4
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-GB1-5
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-GB1-GBK-EUC
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-GB1-GBpc-EUC
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-GB1-H-CID
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-GB1-H-Host
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-GB1-H-Mac
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-GB1-UCS2
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-0
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-1
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-2
@@ -177,48 +169,22 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-4
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-5
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-6
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-90ms-RKSJ
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-90pv-RKSJ
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-H-CID
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-H-Host
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-H-Mac
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-PS-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-PS-V
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan1-UCS2
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Japan2-0
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Korea1-0
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Korea1-1
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Korea1-2
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Korea1-H-CID
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Korea1-H-Host
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Korea1-H-Mac
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Korea1-KSCms-UHC
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Korea1-KSCpc-EUC
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Adobe-Korea1-UCS2
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/B5-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/B5-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/B5pc-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/B5pc-UCS2
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/B5pc-UCS2C
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/B5pc-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS-EUC-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS-EUC-V
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS01-RKSJ-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS02-RKSJ-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS03-RKSJ-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS04-RKSJ-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS05-RKSJ-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS06-RKSJ-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS07-RKSJ-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS1-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS1-V
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS15-RKSJ-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS2-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/CNS2-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/ETHK-B5-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/ETHK-B5-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/ETen-B5-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/ETen-B5-UCS2
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/ETen-B5-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/ETenms-B5-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/ETenms-B5-V
@@ -231,10 +197,8 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GB-EUC-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GB-EUC-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GB-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GB-RKSJ-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GB-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBK-EUC-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBK-EUC-UCS2
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBK-EUC-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBK2K-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBK2K-V
@@ -243,16 +207,12 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBT-EUC-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBT-EUC-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBT-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBT-RKSJ-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBT-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBTpc-EUC-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBTpc-EUC-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBpc-EUC-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBpc-EUC-UCS2
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBpc-EUC-UCS2C
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/GBpc-EUC-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/HK-RKSJ-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/HKdla-B5-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/HKdla-B5-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/HKdlb-B5-H
@@ -267,31 +227,20 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/HKscs-B5-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Hankaku
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Hiragana
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Hojo-EUC-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Hojo-EUC-V
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Hojo-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Hojo-RKSJ-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Hojo-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Identity-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Identity-UTF16-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Identity-UTF16-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Identity-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSC-EUC-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSC-EUC-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSC-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSC-Johab-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSC-Johab-V
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSC-RKSJ-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSC-V
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSC2-RKSJ-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSCms-UHC-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSCms-UHC-HW-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSCms-UHC-HW-V
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSCms-UHC-UCS2
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSCms-UHC-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSCpc-EUC-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSCpc-EUC-UCS2
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSCpc-EUC-UCS2C
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/KSCpc-EUC-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Katakana
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/NWP-H
@@ -299,15 +248,6 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/RKSJ-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/RKSJ-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/Roman
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/TCVN-RKSJ-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UCS2-90ms-RKSJ
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UCS2-90pv-RKSJ
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UCS2-B5pc
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UCS2-ETen-B5
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UCS2-GBK-EUC
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UCS2-GBpc-EUC
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UCS2-KSCms-UHC
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UCS2-KSCpc-EUC
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniCNS-UCS2-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniCNS-UCS2-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniCNS-UTF16-H
@@ -325,13 +265,6 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniGB-UTF8-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniGB-UTF8-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniHojo-UCS2-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniHojo-UCS2-V
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniHojo-UTF16-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniHojo-UTF16-V
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniHojo-UTF32-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniHojo-UTF32-V
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniHojo-UTF8-H
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniHojo-UTF8-V
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniJIS-UCS2-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniJIS-UCS2-HW-H
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/CMap/UniJIS-UCS2-HW-V
@@ -379,41 +312,6 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Decoding/StandardEncoding
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Decoding/Unicode
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Encoding/Wingdings
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/CenturySchL-Bold
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/CenturySchL-BoldItal
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/CenturySchL-Ital
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/CenturySchL-Roma
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/Dingbats
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusMonL-Bold
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusMonL-BoldObli
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusMonL-Regu
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusMonL-ReguObli
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusRomNo9L-Medi
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusRomNo9L-MediItal
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusRomNo9L-Regu
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusRomNo9L-ReguItal
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusSanL-Bold
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusSanL-BoldCond
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusSanL-BoldCondItal
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusSanL-BoldItal
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusSanL-Regu
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusSanL-ReguCond
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusSanL-ReguCondItal
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/NimbusSanL-ReguItal
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/StandardSymL
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/URWBookmanL-DemiBold
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/URWBookmanL-DemiBoldItal
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/URWBookmanL-Ligh
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/URWBookmanL-LighItal
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/URWChanceryL-MediItal
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/URWGothicL-Book
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/URWGothicL-BookObli
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/URWGothicL-Demi
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/URWGothicL-DemiObli
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/URWPalladioL-Bold
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/URWPalladioL-BoldItal
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/URWPalladioL-Ital
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font/URWPalladioL-Roma
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/FAPIcidfmap
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/FAPIconfig
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/FAPIfontmap
@@ -432,7 +330,6 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/gs_cidtt.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/gs_cmap.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/gs_cspace.ps
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/gs_css_e.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/gs_dbt_e.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/gs_diskf.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/gs_diskn.ps
@@ -470,9 +367,7 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/gs_typ42.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/gs_type1.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/gs_wan_e.ps
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/opdfread.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/pdf_base.ps
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/pdf_cslayer.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/pdf_draw.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/pdf_font.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Init/pdf_main.ps
@@ -516,7 +411,6 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/doc/Projects.htm
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/doc/Ps-style.htm
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/doc/Ps2epsi.htm
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/doc/Ps2pdf.htm
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/doc/Psfiles.htm
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/doc/Readme.htm
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/doc/Release.htm
@@ -530,7 +424,6 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/doc/index.html
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/examples/alphabet.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/examples/annots.pdf
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/examples/chess.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/examples/colorcir.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/examples/doretree.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/examples/escher.ps
@@ -573,7 +466,6 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/acctest.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/addxchar.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/align.ps
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/bdftops.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/bj8.rpd
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/bj8gc12f.upp
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/bj8hg12f.upp
@@ -612,14 +504,12 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/dnj750c.upp
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/dnj750m.upp
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/docie.ps
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/dumphint.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/escp_24.src
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/font2c.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/font2pcl.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/ghostpdf.ppd
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/gs_ce_e.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/gs_cmdl.ps
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/gs_fform.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/gs_il2_e.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/gs_kanji.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/gs_ksb_e.ps
@@ -659,12 +549,10 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/packfile.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/pcharstr.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/pdf2dsc.ps
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/pdfopt.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/pdfwrite.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/pf2afm.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/pfbtopfa.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/ppath.ps
-file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/pphs
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/pphs.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/prfont.ps
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/printafm.ps
@@ -736,18 +624,14 @@
 file path=usr/share/ghostscript/$(COMPONENT_VERSION)/lib/zeroline.ps
 file Solaris/GSinterface path=usr/share/ghostscript/interfaces/GSinterface
 file Solaris/GSinterface.1 path=usr/share/man/man1/GSinterface.1
-file Solaris/bdftops.1 path=usr/share/man/man1/bdftops.1
 file path=usr/share/man/man1/dvipdf.1
 link path=usr/share/man/man1/eps2eps.1 target=ps2ps.1
-file Solaris/fixmswrd.pl.1 path=usr/share/man/man1/fixmswrd.pl.1
 file path=usr/share/man/man1/font2c.1
 file path=usr/share/man/man1/gs.1
 file path=usr/share/man/man1/gslp.1
 file path=usr/share/man/man1/gsnd.1
-file path=usr/share/man/man1/ijs-config.1
 file path=usr/share/man/man1/pdf2dsc.1
 file path=usr/share/man/man1/pdf2ps.1
-file path=usr/share/man/man1/pdfopt.1
 file path=usr/share/man/man1/pf2afm.1
 file path=usr/share/man/man1/pfbtopfa.1
 file path=usr/share/man/man1/printafm.1
--- a/components/ghostscript/ghostscript.license	Thu Mar 30 13:00:52 2017 -0700
+++ b/components/ghostscript/ghostscript.license	Thu Mar 30 20:50:08 2017 -0700
@@ -1,64 +1,9 @@
-  Copyright (C) 1994-2008 Artifex Software, Inc.  All rights reserved.
-  Copyright (C) 1989-2002 Aladdin Enterprises, Menlo Park, CA.  All rights reserved.
-
-  The files in the src, lib, toolbin, examples, doc and man
-  directories (folders) and any subdirectories (sub-folders)
-  thereof are part of GPL Ghostscript.
-
-  The files in the Resource directory and any subdirectories thereof
-  are also part of GPL Ghostscript, with the explicit exception of
-  the files in the CMap subdirectory. The CMap files are copyright
-  Adobe Systems Incorporated and covered by a separate license
-  which permits only verbatim distribution.
-
-  GPL Ghostscript is free software; you can redistribute it and/or
-  modify it under the terms of version 2 of the GNU General Public
-  License as published by the Free Software Foundation.
-
-  GPL Ghostscript is distributed in the hope that it will be
-  useful, but WITHOUT ANY WARRANTY; without even the implied warranty
-  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-  General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program so you can know your rights and responsibilities.
-  It should be in a file named doc/COPYING. If not, write to the
-  Free Software Foundation, Inc., 59 Temple Place Suite 330, Boston, MA
-  02111-1307, USA.
-
-  ---
 
-  GPL Ghostscript contains an implementation of techniques covered
-  by US Patents 5,055,942 and 5,917,614, and corresponding
-  international patents. These patents are licensed for use with
-  GPL Ghostscript under the following grant:
+   Copyright (C) 1994-2008 Artifex Software, Inc.  All rights reserved.
+   Copyright (C) 1989-2002 Aladdin Enterprises, Menlo Park, CA.  All rights reserved.
 
-  Whereas, Raph Levien (hereinafter "Inventor") has obtained patent
-  protection for related technology (hereinafter "Patented
-  Technology"), Inventor wishes to aid the the GNU free software
-  project in achieving its goals, and Inventor also wishes to
-  increase public awareness of Patented Technology, Inventor hereby
-  grants a fully paid up, nonexclusive, royalty free license to
-  practice the patents listed below ("the Patents") if and only if
-  practiced in conjunction with software distributed under the
-  terms of any version of the GNU General Public License as
-  published by the Free Software Foundation, 59 Temple Place, Suite
-  330, Boston, MA 02111. Inventor reserves all other rights,
-  including without limitation, licensing for software not
-  distributed under the GNU General Public License.
-
-   5055942 Photographic image reproduction device using digital
-           halftoning to screen images allowing adjustable coarseness
-
-   5917614 Method and apparatus for error diffusion screening of
-           images with improved smoothness in highlight and shadow
-           regions
---------------------------------------------------------------------
-GPL Ghostscript 9.0 (including gs, gsc, gsx and libgs.so):
-
-
-GNU GENERAL PUBLIC LICENSE
-Version 3, 29 June 2007
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
 
  Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
  Everyone is permitted to copy and distribute verbatim copies
@@ -111,6 +56,7 @@
 can do so.  This is fundamentally incompatible with the aim of
 protecting users' freedom to change the software.  The systematic
 pattern of such abuse occurs in the area of products for individuals to
+
 use, which is precisely where it is most unacceptable.  Therefore, we
 have designed this version of the GPL to prohibit the practice for those
 products.  If such problems arise substantially in other domains, we
@@ -710,7 +656,6 @@
 
   If the program does terminal interaction, make it output a short
 notice like this when it starts in an interactive mode:
-
     <program>  Copyright (C) <year>  <name of author>
     This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
     This is free software, and you are welcome to redistribute it
@@ -731,143 +676,1107 @@
 the library.  If this is what you want to do, use the GNU Lesser General
 Public License instead of this License.  But first, please read
 <http://www.gnu.org/philosophy/why-not-lgpl.html>.
+============================================================================
+
+Copyrights listed in files in the base, psi, lib, toolbin, examples, doc, and man
+directories and any subdirectories thereof are part of GPL Ghostscript under
+GPLv3 license:
+
+  Copyright (C) 2000-2003 Artifex Software.  All rights reserved.
+  Copyright (C) 1989-2000 Aladdin Enterprises.  All rights reserved.
+  Copyright (URW)++,Copyright 1999 by (URW)++ Design & Development
+  (URW)++,Copyright 1999 by (URW)++ Design & Development
+  Copyright 2000, 2001, 2002 Gergely Sz\341sz (Gergely Sza'sz)
+  Copyright (C) 2000 Hewlett-Packard Company
+  Portions Copyright (C) 1996-1998  <Uli Wortmann [email protected]>.
+  Portions Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
+  Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.  All rights reserved.
+  Copyright 2000 by Daniel Gordini ([email protected])
+  Copyright (C) 1999,2000  Peter B. West <[email protected]>
+  Portions Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
+  Copyright (C)1998 Ivan Schreter
+  Copyright (c) International Business Machines Corp., 2000
+
+============================================================================
+Some files included in this package, or files which are part of the
+GPL Ghostscript distribution used to generate the files included in this
+package are covered by various license terms governing the applicable freely
+available software. These are listed below.
+ 
 --------------------------------------------------------------------------------
+Copyrights listed in files in Resource/CMap are copyright Adobe Systems
+Incorporated and are covered by a separate license which permits only
+verbatim distribution.
+
+Copyright 1990-2007 Adobe Systems Incorporated.
+
+%%Copyright: Copyright 1990-2007 Adobe Systems Incorporated.
+%%Copyright: All Rights Reserved.
+%%Copyright:
+%%Copyright: Patents Pending
+%%Copyright:
+%%Copyright: NOTICE: All information contained herein is the property
+%%Copyright: of Adobe Systems Incorporated.
+%%Copyright:
+%%Copyright: Permission is granted for redistribution of this file
+%%Copyright: provided this copyright notice is maintained intact and
+%%Copyright: that the contents of this file are not altered in any
+%%Copyright: way from its original form.
+%%Copyright:
+%%Copyright: PostScript and Display PostScript are trademarks of
+%%Copyright: Adobe Systems Incorporated which may be registered in
+%%Copyright: certain jurisdictions.
+
+--------------------------------------------------------------------------------
+Copyrights listed in defs.h in the contrib directory:
+Copyright (c) International Business Machines Corp., 2000
+
+ *   Copyright (c) International Business Machines Corp., 2000
+ *
+ *   This library is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU Lesser General Public License as published
+ *   by the Free Software Foundation; either version 2.1 of the License, or
+ *   (at your option) any later version.
+ *
+ *   This library is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
+ *   the GNU Lesser General Public License for more details.
+ *
+ *   You should have received a copy of the GNU Lesser General Public License
+ *   along with this library; if not, write to the Free Software
+ *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ *   Portions of this file are used with permission granted by Aladdin
+ *   Enterprises
+
+
 --------------------------------------------------------------------------------
-Additional notices for certain files and libraries included in Ghostscript:
--------
-contrib/opvp.h:
+Copyrights listed in the files in the contrib/eplaser directory:
+
+Copyright (C) EPSON SOFTWARE DEVELOPMENT LABORATORY, INC. 1999,2000.
+Copyright (C) SEIKO EPSON CORPORATION 2000-2006.
+
+   Copyright (C) EPSON SOFTWARE DEVELOPMENT LABORATORY, INC. 1999,2000.
+   Copyright (C) SEIKO EPSON CORPORATION 2000-2006.
+
+   Ghostscript printer driver for EPSON ESC/Page and ESC/Page-Color.
+
+   This software is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
+   to anyone for the consequences of using it or for whether it serves any
+   particular purpose or works at all, unless he says so in writing.  Refer
+   to the GNU General Public License for full details.
+
+   Everyone is granted permission to copy, modify and redistribute
+   this software, but only under the conditions described in the GNU
+   General Public License.  A copy of this license is supposed to have been
+   given to you along with this software so you can know your rights and
+   responsibilities.  It should be in a file named COPYING.  Among other
+   things, the copyright notice and this notice must be preserved on all
+   copies.
+
+--------------------------------------------------------------------------------
+Copyrights listed in the files
+ - gdevbjc_.c
+ - gdevbjc_.h
+ - gdevbjca.c
+in the contrib directory:
+
+Copyright 2000, 2001, 2002 Gergely Sz\341sz (Gergely Sza'sz)
+Copyright (C) 1989, 2000 Aladdin Enterprises.  All rights reserved.
+
+ * Copyright 2000, 2001, 2002 Gergely Sz\341sz (Gergely Sza'sz)
+ * mailto://[email protected] http://bjc250gs.sourceforge.net
+ *
+ *   This program may be distributed and/or modified under the terms of
+ *   the GNU General Public License as published by the Free Software
+ *   Foundation (the "GPL"); either version 2 of the GPL, or (at your option)
+ *   any later version.
+ *
+ *   When distributed under the terms of the GPL, this program is distributed
+ *   in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
+ *   even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ *   PURPOSE.  See the GPL for more details.
+ *
+ *   If this program is being distributed under the terms of the GPL, you
+ *   should have received a copy of the GPL along with this program, normally
+ *   in a plain ASCII text file named COPYING; if not, write to the Free
+ *   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111
+ *   U.S.A.
+
+/* Copyright (C) 1989, 2000 Aladdin Enterprises.  All rights reserved.
+
+   This program may also be distributed as part of AFPL Ghostscript, under the
+   terms of the Aladdin Free Public License (the "License").
+
+   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No
+   author or distributor accepts any responsibility for the consequences of
+   using it, or for whether it serves any particular purpose or works at
+   all, unless he or she says so in writing.  Refer to the License for full
+   details.
+
+   Every copy of AFPL Ghostscript must include a copy of the License,
+   normally in a plain ASCII text file named PUBLIC.  The License grants you
+   the right to copy, modify and redistribute AFPL Ghostscript, but only
+   under certain conditions described in the License.  Among other things,
+   the License requires that the copyright notice and this notice be
+   preserved on all copies.
+*/
+
+--------------------------------------------------------------------------------
+Copyrights listed in the file gdevcd8.c in the contrib directory:
+
+Copyright (C) 2000 Hewlett-Packard Company
+Portions Copyright (C) 1996-1998  <Uli Wortmann [email protected]>.
+Portions Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
+
+   Copyright (C) 2000 Hewlett-Packard Company
+   Portions Copyright (C) 1996-1998  <Uli Wortmann [email protected]>.
+   Portions Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+   This program may also be distributed as part of Aladdin Ghostscript,
+   under the terms of the Aladdin Free Public License (the "License").
+
+   Every copy of Aladdin Ghostscript must include a copy of the
+   License, normally in a plain ASCII text file named PUBLIC.  The
+   License grants you the right to copy, modify and redistribute
+   Aladdin Ghostscript, but only under certain conditions described in
+   the License.  Among other things, the License requires that the
+   copyright notice and this notice be preserved on all copies.
+
+--------------------------------------------------------------------------------
+Copyrights listed in the file gdevdj9.c in the contrib directory:
+
+Copyright (C) 2000 <Rene Harsch, Switzerland>
+Portions Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
+
+   Copyright (C) 2000 <Rene Harsch, Switzerland>
+   written by <Rene Harsch [email protected]>
+         modification by Mark Burton <[email protected]>
+
+   Portions Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
 
-OpenPrinting Vector Printer Driver API Definitions [opvp.h] 
-  
-Copyright (c) 2006 Free Standards Group 
-Copyright (c) 2006 Fuji Xerox Printing Systems Co., Ltd. 
-Copyright (c) 2006 Canon Inc. 
-Copyright (c) 2003-2006 AXE Inc. 
-  
-All Rights Reserved. 
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 U.S.A.
+
+   This program may also be distributed as part of Aladdin Ghostscript,
+   under the terms of the Aladdin Free Public License (the "License").
+
+   Every copy of Aladdin Ghostscript must include a copy of the
+   License, normally in a plain ASCII text file named PUBLIC.  The
+   License grants you the right to copy, modify and redistribute
+   Aladdin Ghostscript, but only under certain conditions described in
+   the License.  Among other things, the License requires that the
+   copyright notice and this notice be preserved on all copies.
+
+--------------------------------------------------------------------------------
+Copyrights listed in the file gdevln03.c in the contrib directory:
+
+Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.  All righ
+ts reserved.
+
+/* Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.  All righ
+ts reserved.
+
+This file is part of Ghostscript.
+
+Ghostscript is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY.  No author or distributor accepts responsibility to anyone for
+the consequences of using it or for whether it serves any particular purpose
+or works at all, unless he says so in writing.  Refer to the GNU General
+Public License for full details.
+
+Everyone is granted permission to copy, modify and redistribute Ghostscript,
+but only under the conditions described in the GNU General Public License.
+A copy of this license is supposed to have been given to you along with
+Ghostscript so you can know your rights and responsibilities.  It should be
+in a file named COPYING or COPYLEFT.  Among other things, the copyright
+notice and this notice must be preserved on all copies.
+ */
+
+--------------------------------------------------------------------------------
+Copyrights listed in the file gdevlx32.c in the contrib directory:
+
+Copyright 2000 by Daniel Gordini ([email protected])
+ * Copyright 2000 by Daniel Gordini ([email protected])
+ *
+ * --------------------------------------------------------------------
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * --------------------------------------------------------------------
+
+--------------------------------------------------------------------------------
+Copyrights listed in the file gdevlx50.c in the contrib directory:
+
+Copyright (C) 1999,2000  Peter B. West <[email protected]>
+Portions Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
+
+   Copyright (C) 1999,2000  Peter B. West <[email protected]>
+   Portions Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 U.S.A.
+
+   This program may also be distributed as part of Aladdin Ghostscript,
+   under the terms of the Aladdin Free Public License (the "License").
 
- Permission to use, copy, modify, distribute, and sell this software 
- and its documentation for any purpose is hereby granted without 
- fee, provided that the above copyright notice appear in all copies 
-  and that both that copyright notice and this permission notice 
- appear in supporting documentation. 
- 
- The above copyright notice and this permission notice shall be 
- included in all copies or substantial portions of the Software. 
+   Every copy of Aladdin Ghostscript must include a copy of the
+   License, normally in a plain ASCII text file named PUBLIC.  The
+   License grants you the right to copy, modify and redistribute
+   Aladdin Ghostscript, but only under certain conditions described in
+   the License.  Among other things, the License requires that the
+   copyright notice and this notice be preserved on all copies.
+
+--------------------------------------------------------------------------------
+Copyrights listed in the file gdevlx7.c in the contrib directory:
+
+Copyright (C) 1989-1994, 1998, 1999 Aladdin Enterprises.  All rights reserved.
+
+/* Copyright (C) 1989-1994, 1998, 1999 Aladdin Enterprises.  All rights reserved.
+   This file is part of GNU Ghostscript.
+
+  GNU Ghostscript is distributed in the hope that it will be useful, but
+  WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility to
+  anyone for the consequences of using it or for whether it serves any
+  particular purpose or works at all, unless he says so in writing.  Refer to
+  the GNU General Public License for full details.
+
+  Everyone is granted permission to copy, modify and redistribute GNU
+  Ghostscript, but only under the conditions described in the GNU General
+  Public License.  A copy of this license is supposed to have been given to
+  you along with GNU Ghostscript so you can know your rights and
+  responsibilities.  It should be in a file named COPYING.  Among other
+  things, the copyright notice and this notice must be preserved on all
+  copies.
+
+  Aladdin Enterprises is not affiliated with the Free Software Foundation or
+  the GNU Project.  GNU Ghostscript, as distributed by Aladdin Enterprises,
+  does not depend on any other GNU software.
+*/
+
+--------------------------------------------------------------------------------
+Copyrights listed in the file gdevmd2k.c in the contrib directory:
+
+Copyright (C) 1991, 1995-1999 Aladdin Enterprises.  All rights reserved.
+
+/* Copyright (C) 1991, 1995-1999 Aladdin Enterprises.  All rights reserved.
+
+  This file is part of Aladdin Ghostscript.
+
+  Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
+  or distributor accepts any responsibility for the consequences of using it,
+  or for whether it serves any particular purpose or works at all, unless he
+  or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
+  License (the "License") for full details.
+
+  Every copy of Aladdin Ghostscript must include a copy of the License,
+  normally in a plain ASCII text file named PUBLIC.  The License grants you
+  the right to copy, modify and redistribute Aladdin Ghostscript, but only
+  under certain conditions described in the License.  Among other things, the
+  License requires that the copyright notice and this notice be preserved on
+  all copies.
+*/
+
+--------------------------------------------------------------------------------
+Copyrights listed in the file gdevop4w.c in the contrib directory:
+
+Copyright (C)1998 Ivan Schreter
+/*
+  Copyright (C)1998 Ivan Schreter
+
+  This file is part of GNU Ghostscript.
+
+  GNU Ghostscript is distributed in the hope that it will be useful, but
+  WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility to
+  anyone for the consequences of using it or for whether it serves any
+  particular purpose or works at all, unless he says so in writing.  Refer
+  to the GNU General Public License for full details.
+
+  This source is partially based on deskjet device driver for Ghostscript.
+*/
+
+--------------------------------------------------------------------------------
+Copyrights listed in the file gdevxes.c in the contrib directory:
+
+Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.  All rights res
+erved.
+
+/* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.  All rights res
+erved.
+
+This file is part of Ghostscript.
+
+Ghostscript is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY.  No author or distributor accepts responsibility to anyone for
+the consequences of using it or for whether it serves any particular purpose
+or works at all, unless he says so in writing.  Refer to the GNU General
+Public License for full details.
+
+Everyone is granted permission to copy, modify and redistribute Ghostscript,
+but only under the conditions described in the GNU General Public License.
+A copy of this license is supposed to have been given to you along with
+Ghostscript so you can know your rights and responsibilities.  It should be
+in a file named COPYING or COPYLEFT.  Among other things, the copyright
+notice and this notice must be preserved on all copies.
+ */
+
+--------------------------------------------------------------------------------
+Copyrights listed in the files in the contrib/japanese directory and the
+subdirectories therof:
+
+Copyright (C) 1989-1993 Aladdin Enterprises.  All rights reserved.
+Copyright (C) 1999, 2000 Norihito Ohmori.
 
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR  ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF  CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
- 
- 2007 Modified  for OPVP 1.0 by BBR Inc. 
+%    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
+%
+% This file is part of Ghostscript.
+%
+% Ghostscript is distributed in the hope that it will be useful, but
+% WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
+% to anyone for the consequences of using it or for whether it serves any
+% particular purpose or works at all, unless he says so in writing.  Refer
+% to the Ghostscript General Public License for full details.
+%
+% Everyone is granted permission to copy, modify and redistribute
+% Ghostscript, but only under the conditions described in the Ghostscript
+% General Public License.  A copy of this license is supposed to have been
+% given to you along with Ghostscript so you can know your rights and
+% responsibilities.  It should be in a file named COPYING.  Among other
+% things, the copyright notice and this notice must be preserved on all
+% copies.
+
+
+/* Copyright (C) 1999, 2000 Norihito Ohmori.
+
+   Ghostscript driver for Ricoh RPDL printer.
+
+   This software is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
+   to anyone for the consequences of using it or for whether it serves any
+   particular purpose or works at all, unless he says so in writing.  Refer
+   to the GNU General Public License for full details.
+
+   Everyone is granted permission to copy, modify and redistribute
+   this software, but only under the conditions described in the GNU
+   General Public License.  A copy of this license is supposed to have been
+   given to you along with this software so you can know your rights and
+   responsibilities.  It should be in a file named COPYING.  Among other
+   things, the copyright notice and this notice must be preserved on all
+   copies.
+ */
+
+--------------------------------------------------------------------------------
+Copyrights listed in the file README.gs550j contrib/japanese/doc directory:
+
+Copyright (C) 1996-1999 Daisuke SUZUKI.
+Copyright (C) 1999 Norihito Ohmori.
+
+--------------------------------------------------------------------------------
+Copyrights listed in the file cdj880.txt in the contrib/japanese/doc
+directory:
+
+Copyright (C) 1999  <Matthew J. Gelhaus [email protected]>
+
+LICENSING TERMS:
+
+    Copyright (C) 1999  <Matthew J. Gelhaus [email protected]>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+    To view the General Public License in its entirety, check the file
+    LICENSE.
+
+
+--------------------------------------------------------------------------------
+Copyrights listed in the file gdevcd8.txt in the contrib/japanese/doc
+directory:
+
+Copyright (C) 1996-1998  <Uli Wortmann [email protected]>
+   ----------------------------------------------------------------
+
+    Copyright (C) 1996-1998  <Uli Wortmann [email protected]>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+    -------------------------------------------------------------------
+
+
+--------------------------------------------------------------------------------
+Copyrights listed in the files 
+- gs261j.euc
+- gs261j.txt
+in the contrib/japanese/doc directory:
+
+Copyright (C) 1991,1992,1993,1994 Norio Katayama.
 
--------
-contrib/opvp_0_2_0.h , contrib/opvp_common.h:
+--------------------------------------------------------------------------------
+Copyrights listed in the files in the contrib/lips4 directory:
+
+Copyright (C) 1998, 1999 Norihito Ohmori.
+
+/* Copyright (C) 1998, 1999 Norihito Ohmori.
+
+   Ghostscript printer driver
+   for Canon LBP, BJC-680J and BJC-880J printers (LIPS II+/III/IVc/IV)
+
+   This software is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
+   to anyone for the consequences of using it or for whether it serves any
+   particular purpose or works at all, unless he says so in writing.  Refer
+   to the GNU General Public License for full details.
+
+   Everyone is granted permission to copy, modify and redistribute
+   this software, but only under the conditions described in the GNU
+   General Public License.  A copy of this license is supposed to have been
+   given to you along with this software so you can know your rights and
+   responsibilities.  It should be in a file named COPYING.  Among other
+   things, the copyright notice and this notice must be preserved on all
+   copies.
+ */
+
+--------------------------------------------------------------------------------
+Copyrights listed in the file opvp.h in the contrib/opvp directory:
+
+Copyright (c) 2006 Free Standards Group
+Copyright (c) 2006 Fuji Xerox Printing Systems Co., Ltd.
+Copyright (c) 2006 Canon Inc.
+Copyright (c) 2003-2006 AXE Inc.
 
-Copyright (c) 2003-2004, AXE, Inc.  All rights reserved. 
+ * Copyright (c) 2006 Free Standards Group
+ * Copyright (c) 2006 Fuji Xerox Printing Systems Co., Ltd.
+ * Copyright (c) 2006 Canon Inc.
+ * Copyright (c) 2003-2006 AXE Inc.
+ *
+ * All Rights Reserverd.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software
+ * and its documentation for any purpose is hereby granted without
+ * fee, provided that the above copyright notice appear in all copies
+ * and that both that copyright notice and this permission notice
+ * appear in supporting documentation.
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT.  IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+--------------------------------------------------------------------------------
+Copyrights listed in the files
+ - opvp_0_2_0.h
+ - opvp_common.h
+in the contrib/opvp directory:
+
+Copyright (c) 2003-2004, AXE, Inc.  All rights reserved.
+
+/*
+
+Copyright (c) 2003-2004, AXE, Inc.  All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+*/
+
+--------------------------------------------------------------------------------
+Copyrights listed in the files in the contrib/pcl3 directory and
+subdirectories thereof:
+
+Copyright (C) 1996-2001 by Martin Lottermoser                 
+All rights reserved
+
+---
+
+                  GNU LESSER GENERAL PUBLIC LICENSE
+                       Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
 
-Permission is hereby granted, free of charge, to any person obtaining 
-a copy of this software and associated documentation files (the 
-"Software"), to deal in the Software without restriction, including 
-without limitation the rights to use, copy, modify, merge, publish, 
-distribute, sublicense, and/or sell copies of the Software, and to 
-permit persons to whom the Software is furnished to do so, subject to 
-the following conditions: 
+[This is the first released version of the Lesser GPL.  It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+  This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it.  You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+  When we speak of free software, we are referring to freedom of use,
+not price.  Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+  To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights.  These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+  For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you.  You must make sure that they, too, receive or can get the source
+code.  If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it.  And you must show them these terms so they know their rights.
+
+  We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+  To protect each distributor, we want to make it very clear that
+there is no warranty for the free library.  Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+  Finally, software patents pose a constant threat to the existence of
+any free program.  We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder.  Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+  Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License.  This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License.  We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+  When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library.  The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom.  The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+  We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License.  It also provides other free software developers Less
+of an advantage over competing non-free programs.  These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries.  However, the Lesser license provides advantages in certain
+special circumstances.
+
+  For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard.  To achieve this, non-free programs must be
+allowed to use the library.  A more frequent case is that a free
+library does the same job as widely used non-free libraries.  In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+  In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software.  For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+  Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.  Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library".  The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
 
-The above copyright notice and this permission notice shall be included 
-in all copies or substantial portions of the Software. 
+                  GNU LESSER GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+  A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+  The "Library", below, refers to any such software library or work
+which has been distributed under these terms.  A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language.  (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+  "Source code" for a work means the preferred form of the work for
+making modifications to it.  For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+  Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it).  Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+  
+  1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+  You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+  2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
+    a) The modified work must itself be a software library.
+
+    b) You must cause the files modified to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    c) You must cause the whole of the work to be licensed at no
+    charge to all third parties under the terms of this License.
+
+    d) If a facility in the modified Library refers to a function or a
+    table of data to be supplied by an application program that uses
+    the facility, other than as an argument passed when the facility
+    is invoked, then you must make a good faith effort to ensure that,
+    in the event an application does not supply such function or
+    table, the facility still operates, and performs whatever part of
+    its purpose remains meaningful.
+
+    (For example, a function in a library to compute square roots has
+    a purpose that is entirely well-defined independent of the
+    application.  Therefore, Subsection 2d requires that any
+    application-supplied function or table used by this function must
+    be optional: if the application does not supply it, the square
+    root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
 
--------
-icclib: 
+That's all there is to it!
+
+--------------------------------------------------------------------------------
+Copyrights listed in the files in the cups directory:
+
+Copyright 1993-2006 by Easy Software Products.
+Copyright 2007 Artifex Software, Inc.
+
+# Copyright 2001-2005 by Easy Software Products.
+# Copyright 2007 Artifex Software, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+--------------------------------------------------------------------------------
+Copyrights listed in the files in the icclib directory:
 
 Copyright (c) 1997-2002 Graeme W. Gill
-Permission is hereby granted, to use, copy, modify, distribute, 
-and sell this software and its associated documentation files 
-(the "Software") for any purpose without fee, provided 
-that: 
+
+---
+
+*************************************************************************
+Copyright (c) 1997-2002 Graeme W. Gill
+
+Permission is hereby granted, to use, copy, modify, distribute,
+and sell this software and its associated documentation files
+(the "Software") for any purpose without fee, provided
+that:
+
+        1) The above copyright notices and this permission notice
+           accompany all source code copies of the Software and
+           related documentation.
+and
+
+        2) If executable code based on the Software only is distributed,
+           then the accompanying documentation must aknowledge that
+           "this software is based in part on the work of Graeme W. Gill".
+and
 
-        1) The above copyright notices and this permission notice 
-           accompany all source code copies of the Software and 
-           related documentation. 
-and 
+        3) It is accepted that Graeme W. Gill (the "Author") accepts
+           NO LIABILITY for damages of any kind.  The Software is
+           provided without fee by the Author "AS-IS" and without
+           warranty of any kind, express, implied or otherwise,
+           including without limitation, any warranty of merchantability
+           or fitness for a particular purpose.
+and
+
+        4) These conditions apply to any software derived from or based
+           on the Software, not just to the unmodified library.
+and
 
-        2) If executable code based on the Software only is distributed, 
-           then the accompanying documentation must aknowledge that 
-           "this software is based in part on the work of Graeme W. Gill". 
-and 
+        5) Except as contained in this notice, or in the required
+           acknowledgment, the name of the Author, or the name of
+           any organization or company affiliated with the Author
+           may not be used in any advertising or publicity relating
+           to the Software, without the specific, prior written
+           permission of the Author.
+
+*************************************************************************
+
+
+--------------------------------------------------------------------------------
+Copyrights listed in the files in the ijs directory:
+
+Copyright (C) 2001-2004 Artifex Software, Inc.
+Copyright 2001 Radical Eye Software
 
-        3) It is accepted that Graeme W. Gill (the "Author") accepts 
-           NO LIABILITY for damages of any kind.  The Software is 
-           provided without fee by the Author "AS-IS" and without 
-           warranty of any kind, express, implied or otherwise, 
-           including without limitation, any warranty of merchantability 
-           or fitness for a particular purpose. 
-and 
+ * Copyright (C) 2001-2007 Artifex Software, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation
+ * files (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use, copy,
+ * modify, merge, publish, distribute, sublicense, and/or sell copies
+ * of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
 
-        4) These conditions apply to any software derived from or based 
-           on the Software, not just to the unmodified library. 
-and 
+
+%%Creator: dvips(k) 5.86e Copyright 2001 Radical Eye Software
+
+--------------------------------------------------------------------------------
+Copyrights listed in the files in the imdi directory:
+
+Copyright 2000 - 2002 Graeme W. Gill
 
-        5) Except as contained in this notice, or in the required 
-           acknowledgment, the name of the Author, or the name of 
-           any organization or company affiliated with the Author 
-           may not be used in any advertising or publicity relating 
-           to the Software, without the specific, prior written 
-           permission of the Author. 
+ * Copyright 2000 - 2004 Graeme W. Gill
+ * All rights reserved.
+ *
+ * This material is licenced under the GNU GENERAL PUBLIC LICENCE :-
+ * see the Licence.txt file for licencing details.
+
+--------------------------------------------------------------------------------
+Copyrights listed in the files in the jasper directory and the
+subdirectories thereof:
+
+Copyright (c) 1999-2000 Image Power, Inc.
+Copyright (c) 1999-2000 The University of British Columbia
+Copyright (c) 2001-2003 Michael David Adams
+
+---
+JasPer License Version 2.0
 
--------
-jasper:
+Copyright (c) 1999-2000 Image Power, Inc.
+Copyright (c) 1999-2000 The University of British Columbia
+Copyright (c) 2001-2003 Michael David Adams
+
+All rights reserved.
 
-JasPer License Version 2.0 
+Permission is hereby granted, free of charge, to any person (the
+"User") obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without restriction,
+including without limitation the rights to use, copy, modify, merge,
+publish, distribute, and/or sell copies of the Software, and to permit
+persons to whom the Software is furnished to do so, subject to the
+following conditions:
 
-Copyright (c) 1999-2000 Image Power, Inc. 
-Copyright (c) 1999-2000 The University of British Columbia 
-Copyright (c) 2001-2003 Michael David Adams 
+1.  The above copyright notices and this permission notice (which
+includes the disclaimer below) shall be included in all copies or
+substantial portions of the Software.
+
+2.  The name of a copyright holder shall not be used to endorse or
+promote products derived from the Software without specific prior
+written permission.
 
-All rights reserved. 
+THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS
+LICENSE.  NO USE OF THE SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER
+THIS DISCLAIMER.  THE SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
+"AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
+BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.  IN NO
+EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.  NO ASSURANCES ARE
+PROVIDED BY THE COPYRIGHT HOLDERS THAT THE SOFTWARE DOES NOT INFRINGE
+THE PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OF ANY OTHER ENTITY.
+EACH COPYRIGHT HOLDER DISCLAIMS ANY LIABILITY TO THE USER FOR CLAIMS
+BROUGHT BY ANY OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL
+PROPERTY RIGHTS OR OTHERWISE.  AS A CONDITION TO EXERCISING THE RIGHTS
+GRANTED HEREUNDER, EACH USER HEREBY ASSUMES SOLE RESPONSIBILITY TO SECURE
+ANY OTHER INTELLECTUAL PROPERTY RIGHTS NEEDED, IF ANY.  THE SOFTWARE
+IS NOT FAULT-TOLERANT AND IS NOT INTENDED FOR USE IN MISSION-CRITICAL
+SYSTEMS, SUCH AS THOSE USED IN THE OPERATION OF NUCLEAR FACILITIES,
+AIRCRAFT NAVIGATION OR COMMUNICATION SYSTEMS, AIR TRAFFIC CONTROL
+SYSTEMS, DIRECT LIFE SUPPORT MACHINES, OR WEAPONS SYSTEMS, IN WHICH
+THE FAILURE OF THE SOFTWARE OR SYSTEM COULD LEAD DIRECTLY TO DEATH,
+PERSONAL INJURY, OR SEVERE PHYSICAL OR ENVIRONMENTAL DAMAGE ("HIGH
+RISK ACTIVITIES").  THE COPYRIGHT HOLDERS SPECIFICALLY DISCLAIM ANY
+EXPRESS OR IMPLIED WARRANTY OF FITNESS FOR HIGH RISK ACTIVITIES.
+
+--------------------------------------------------------------------------------
+Copyrights listed in the files in the jbig2dec directory:
+
+Copyright (C) 2001-2005 Artifex Software, Inc.
+
+    Copyright (C) 2002-2005 Artifex Software, Inc.
 
-Permission is hereby granted, free of charge, to any person (the 
-"User") obtaining a copy of this software and associated documentation 
-files (the "Software"), to deal in the Software without restriction, 
-including without limitation the rights to use, copy, modify, merge, 
-publish, distribute, and/or sell copies of the Software, and to permit 
-persons to whom the Software is furnished to do so, subject to the 
-following conditions: 
+    This software is provided AS-IS with no warranty,
+    either express or implied.
+
+    This software is distributed under license and may not
+    be copied, modified or distributed except as expressly
+    authorized under the terms of the license contained in
+    the file LICENSE in this distribution.
+
+    For information on commercial licensing, go to
+    http://www.artifex.com/licensing/ or contact
+    Artifex Software, Inc.,  101 Lucas Valley Road #110,
+    San Rafael, CA  94903, U.S.A., +1(415)492-9861.
+---
+
+  The files in this directory (folder) and any subdirectories
+  (sub-folders) thereof are part of jbig2dec, with the exception
+  of certain source files included to support portability which are
+  marked otherwise in their copyright headers.
 
-1.  The above copyright notices and this permission notice (which 
-includes the disclaimer below) shall be included in all copies or 
-substantial portions of the Software. 
+  jbig2dec is free software; you can redistribute it and/or modify
+  it under the terms the GNU General Public License as published by
+  the Free Software Foundation, either version 2 of the License, or
+  (at your option) any later version.
+
+  This software is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
 
-2.  The name of a copyright holder shall not be used to endorse or 
-promote products derived from the Software without specific prior 
-written permission. 
+  You should have received a copy of the GNU General Public License
+  along with this program in the file named COPYING. If not, write
+  to the Free Software Foundation, Inc., 59 Temple Place Suite 330,
+  Boston, MA 02111-1307, USA.
+
+    Copyright (C) 2002-2005 Artifex Software, Inc.
+
+    This software is provided AS-IS with no warranty,
+    either express or implied.
 
-THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE.  NO USE OF THE SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.  THE SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 
-INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.  NO ASSURANCES ARE PROVIDED BY THE COPYRIGHT HOLDERS THAT THE SOFTWARE DOES NOT INFRINGE 
-THE PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OF ANY OTHER ENTITY. EACH COPYRIGHT HOLDER DISCLAIMS ANY LIABILITY TO THE USER FOR CLAIMS BROUGHT BY ANY OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR OTHERWISE.  AS A CONDITION TO EXERCISING THE RIGHTS GRANTED HEREUNDER, EACH USER HEREBY ASSUMES SOLE RESPONSIBILITY TO SECURE ANY OTHER INTELLECTUAL PROPERTY RIGHTS NEEDED, IF ANY.  THE SOFTWARE IS NOT FAULT-TOLERANT AND IS NOT INTENDED FOR USE IN MISSION-CRITICAL SYSTEMS, SUCH AS THOSE USED IN THE OPERATION OF NUCLEAR FACILITIES, AIRCRAFT NAVIGATION OR COMMUNICATION SYSTEMS, AIR TRAFFIC CONTROL SYSTEMS, DIRECT LIFE SUPPORT MACHINES, OR WEAPONS SYSTEMS, IN WHICH THE FAILURE OF THE SOFTWARE OR SYSTEM COULD LEAD DIRECTLY TO DEATH, PERSONAL INJURY, OR SEVERE PHYSICAL OR ENVIRONMENTAL DAMAGE ("HIGH RISK ACTIVITIES").  THE COPYRIGHT HOLDERS SPECIFICALLY DISCLAIM ANY 
-EXPRESS OR IMPLIED WARRANTY OF FITNESS FOR HIGH RISK ACTIVITIES. 
+    This software is distributed under license and may not
+    be copied, modified or distributed except as expressly
+    authorized under the terms of the license contained in
+    the file LICENSE in this distribution.
+
+    For information on commercial licensing, go to
+    http://www.artifex.com/licensing/ or contact
+    Artifex Software, Inc.,  101 Lucas Valley Road #110,
+    San Rafael, CA  94903, U.S.A., +1(415)492-9861.
+---
+
+  The files in this directory (folder) and any subdirectories
+  (sub-folders) thereof are part of jbig2dec, with the exception
+  of certain source files included to support portability which are
+  marked otherwise in their copyright headers.
 
--------
-jbig2dec/snprintf.c: 
+  jbig2dec is free software; you can redistribute it and/or modify
+  it under the terms the GNU General Public License as published by
+  the Free Software Foundation, either version 2 of the License, or
+  (at your option) any later version.
+
+  This software is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program in the file named COPYING. If not, write
+  to the Free Software Foundation, Inc., 59 Temple Place Suite 330,
+  Boston, MA 02111-1307, USA.
+
+    Copyright (C) 2002-2005 Artifex Software, Inc.
+
+    This software is provided AS-IS with no warranty,
+    either express or implied.
+
+    This software is distributed under license and may not
+    be copied, modified or distributed except as expressly
+    authorized under the terms of the license contained in
+    the file LICENSE in this distribution.
 
-Copyright (c) 1997 Theo de Raadt 
- 
- Redistribution and use in source and binary forms, with or without 
- modification, are permitted provided that the following conditions 
- are met: 
- 1. Redistributions of source code must retain the above copyright 
-  notice, this list of conditions and the following disclaimer. 
- 2. Redistributions in binary form must reproduce the above copyright 
- notice, this list of conditions and the following disclaimer in the 
- documentation and/or other materials provided with the distribution. 
- 
- THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR   IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.   IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+    For information on commercial licensing, go to
+    http://www.artifex.com/licensing/ or contact
+    Artifex Software, Inc.,  101 Lucas Valley Road #110,
+    San Rafael, CA  94903, U.S.A., +1(415)492-9861.
+---
+
+  The files in this directory (folder) and any subdirectories
+  (sub-folders) thereof are part of jbig2dec, with the exception
+  of certain source files included to support portability which are
+  marked otherwise in their copyright headers.
+
+  jbig2dec is free software; you can redistribute it and/or modify
+  it under the terms the GNU General Public License as published by
+  the Free Software Foundation, either version 2 of the License, or
+  (at your option) any later version.
 
--------
-The  Independent JPEG Group (IJG) library:
+  This software is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program in the file named COPYING. If not, write
+  to the Free Software Foundation, Inc., 59 Temple Place Suite 330,
+  Boston, MA 02111-1307, USA.
 
+  In addition, specific permission is given to link jbig2dec to or
+  compile jbig2dec into AFPL Ghostscript and to distribute same
+  under the Aladdin Free Public License (AFPL) version 9.
+
+--------------------------------------------------------------------------------
+Copyrights listed in the files in the jpeg directory:
+
+Copyright (C) 1991-1998, Thomas G. Lane.
+
+ * Copyright (C) 1991-1996, Thomas G. Lane.
+ * This file is part of the Independent JPEG Group's software.
+ * For conditions of distribution and use, see the accompanying README file.
+
+---
 The authors make NO WARRANTY or representation, either express or implied,
 with respect to this software, its quality, accuracy, merchantability, or
 fitness for a particular purpose.  This software is provided "AS IS", and you,
@@ -890,6 +1799,7 @@
 full responsibility for any undesirable consequences; the authors accept
 NO LIABILITY for damages of any kind.
 
+
 These conditions apply to any software derived from or based on the IJG code,
 not just to the unmodified library.  If you use our work, you ought to
 acknowledge us.
@@ -903,101 +1813,166 @@
 commercial products, provided that all warranty or liability claims are
 assumed by the product vendor.
 
- "The Graphics Interchange Format(c) is the Copyright property of CompuServe Incorporated.  GIF(sm) is a Service Mark property of CompuServe Incorporated."
 
--------
-The PNG Reference Library (libpng):
+ansi2knr.c is included in this distribution by permission of L. Peter Deutsch,
 
-COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
-
- If you modify libpng you may insert additional notices immediately following
- this sentence.
+le proprietor of its copyright holder, Aladdin Enterprises of Menlo Park, CA.
+ansi2knr.c is NOT covered by the above copyright and conditions, but instead
+by the usual distribution terms of the Free Software Foundation; principally,
+that you must include source code if you redistribute it.  (See the file
+ansi2knr.c for full details.)  However, since ansi2knr.c is not needed as part
+of any program generated from the IJG code, this does not limit you more than
+the foregoing paragraphs do.
 
- libpng versions 1.2.6, August 15, 2004, through 1.2.22, October 13, 2007, are
- Copyright (c) 2004, 2006-2007 Glenn Randers-Pehrson, and are
- distributed according to the same disclaimer and license as libpng-1.2.5
- with the following individual added to the list of Contributing Authors:
+The Unix configuration script "configure" was produced with GNU Autoconf.
+It is copyright by the Free Software Foundation but is freely distributable.
+The same holds for its supporting scripts (config.guess, config.sub,
+ltconfig, ltmain.sh).  Another support script, install-sh, is copyright
+by M.I.T. but is also freely distributable.
 
-    Cosmin Truta
-
- libpng versions 1.0.7, July 1, 2000, through 1.2.5, October 3, 2002, are
-Copyright (c) 2000-2002 Glenn Randers-Pehrson, and are distributed according to the same disclaimer and license as libpng-1.0.6 with the following individuals added to the list of Contributing Authors:
+It appears that the arithmetic coding option of the JPEG spec is covered by
+patents owned by IBM, AT&T, and Mitsubishi.  Hence arithmetic coding cannot
+legally be used without obtaining one or more licenses.  For this reason,
+support for arithmetic coding has been removed from the free JPEG software.
+(Since arithmetic coding provides only a marginal gain over the unpatented
+Huffman mode, it is unlikely that very many implementations will support it.)
+So far as we are aware, there are no patent restrictions on the remaining
+code.
 
-    Simon-Pierre Cadieux
-    Eric S. Raymond
-    Gilles Vollant
+The IJG distribution formerly included code to read and write GIF files.
+To avoid entanglement with the Unisys LZW patent, GIF reading support has
+been removed altogether, and the GIF writer has been simplified to produce
+"uncompressed GIFs".  This technique does not use the LZW algorithm; the
+resulting GIF files are larger than usual, but are readable by all standard
+GIF decoders.
 
- and with the following additions to the disclaimer:
+We are required to state that
+    "The Graphics Interchange Format(c) is the Copyright property of
+    CompuServe Incorporated.  GIF(sm) is a Service Mark property of
+    CompuServe Incorporated."
 
-    There is no warranty against interference with your enjoyment of the
-    library or against infringement.  There is no warranty that our
-    efforts or the library will fulfill any of your particular purposes
-    or needs.  This library is provided with all faults, and the entire
-    risk of satisfactory quality, performance, accuracy, and effort is with
-    the user.
- 
- libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are
- Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson, and are
- distributed according to the same disclaimer and license as libpng-0.96,
- with the following individuals added to the list of Contributing Authors:
+--------------------------------------------------------------------------------
+Copyrights listed in the files in the libpng directory:
+
+Copyright (c) 1998-2007 Glenn Randers-Pehrson
+Copyright (c) 1996, 1997 Andreas Dilger
+Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
+Copyright (c) 1998-01-04 Charles Poynton <poynton at inforamp.net>
 
-    Tom Lane
-    Glenn Randers-Pehrson
-    Willem van Schaik
+ * For conditions of distribution and use, see copyright notice in png.h
+ * Copyright (c) 1998-2007 Glenn Randers-Pehrson
+ * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
+ * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
+
+The default values approximate those recommended in the Charles
+Poynton's Color FAQ, <http://www.inforamp.net/~poynton/>
+Copyright (c) 1998-01-04 Charles Poynton <poynton at inforamp.net>
 
- libpng versions 0.89, June 1996, through 0.96, May 1997, are
- Copyright (c) 1996, 1997 Andreas Dilger
- Distributed according to the same disclaimer and license as libpng-0.88,
- with the following individuals added to the list of Contributing Authors:
- 
-    John Bowler
-    Kevin Bracey
-    Sam Bushell
-    Magnus Holmgren
-    Greg Roelofs
-    Tom Tanner
-
- libpng versions 0.5, May 1995, through 0.88, January 1996, are
- Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.
-
- For the purposes of this copyright and license, "Contributing Authors"
- is defined as the following set of individuals:
+---
+/*
+ * COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
+ *
+ * If you modify libpng you may insert additional notices immediately following
+ * this sentence.
+ *
+ * libpng versions 1.2.6, August 15, 2004, through 1.2.22, October 13, 2007, are
+ * Copyright (c) 2004, 2006-2007 Glenn Randers-Pehrson, and are
+ * distributed according to the same disclaimer and license as libpng-1.2.5
+ * with the following individual added to the list of Contributing Authors:
+ *
+ *    Cosmin Truta
+ *
+ * libpng versions 1.0.7, July 1, 2000, through 1.2.5, October 3, 2002, are
+ * Copyright (c) 2000-2002 Glenn Randers-Pehrson, and are
+ * distributed according to the same disclaimer and license as libpng-1.0.6
+ * with the following individuals added to the list of Contributing Authors:
+ *
+ *    Simon-Pierre Cadieux
+ *    Eric S. Raymond
+ *    Gilles Vollant
+ *
+ * and with the following additions to the disclaimer:
+ *
+ *    There is no warranty against interference with your enjoyment of the
+ *    library or against infringement.  There is no warranty that our
+ *    efforts or the library will fulfill any of your particular purposes
+ *    or needs.  This library is provided with all faults, and the entire
+ *    risk of satisfactory quality, performance, accuracy, and effort is with
+ *    the user.
+ *
+ * libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are
+ * Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson, and are
+ * distributed according to the same disclaimer and license as libpng-0.96,
+ * with the following individuals added to the list of Contributing Authors:
+ *
+ *    Tom Lane
+ *    Glenn Randers-Pehrson
+ *    Willem van Schaik
+ *
+ * libpng versions 0.89, June 1996, through 0.96, May 1997, are
+ * Copyright (c) 1996, 1997 Andreas Dilger
+ * Distributed according to the same disclaimer and license as libpng-0.88,
+ * with the following individuals added to the list of Contributing Authors:
+ *
+ *    John Bowler
+ *    Kevin Bracey
+ *    Sam Bushell
+ *    Magnus Holmgren
+ *    Greg Roelofs
+ *    Tom Tanner
+ *
+ * libpng versions 0.5, May 1995, through 0.88, January 1996, are
+ * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.
+ *
+ * For the purposes of this copyright and license, "Contributing Authors"
+ * is defined as the following set of individuals:
+ *
+ *    Andreas Dilger
+ *    Dave Martindale
+ *    Guy Eric Schalnat
+ *    Paul Schmidt
+ *    Tim Wegner
+ *
+ * The PNG Reference Library is supplied "AS IS".  The Contributing Authors
+ * and Group 42, Inc. disclaim all warranties, expressed or implied,
+ * including, without limitation, the warranties of merchantability and of
+ * fitness for any purpose.  The Contributing Authors and Group 42, Inc.
+ * assume no liability for direct, indirect, incidental, special, exemplary,
+ * or consequential damages, which may result from the use of the PNG
+ * Reference Library, even if advised of the possibility of such damage.
+ *
+ * Permission is hereby granted to use, copy, modify, and distribute this
+ * source code, or portions hereof, for any purpose, without fee, subject
+ * to the following restrictions:
+ *
+ * 1. The origin of this source code must not be misrepresented.
+ *
+ * 2. Altered versions must be plainly marked as such and
+ * must not be misrepresented as being the original source.
+ *
+ * 3. This Copyright notice may not be removed or altered from
+ *    any source or altered source distribution.
+ *
+ * The Contributing Authors and Group 42, Inc. specifically permit, without
+ * fee, and encourage the use of this source code as a component to
+ * supporting the PNG file format in commercial products.  If you use this
+ * source code in a product, acknowledgment is not required but would be
+ * appreciated.
+ */
 
-    Andreas Dilger
-    Dave Martindale
-    Guy Eric Schalnat
-    Paul Schmidt
-    Tim Wegner
- 
- The PNG Reference Library is supplied "AS IS".  The Contributing Authors
- and Group 42, Inc. disclaim all warranties, expressed or implied,
- including, without limitation, the warranties of merchantability and of
- fitness for any purpose.  The Contributing Authors and Group 42, Inc.
- assume no liability for direct, indirect, incidental, special, exemplary,
- or consequential damages, which may result from the use of the PNG
- Reference Library, even if advised of the possibility of such damage.
-
- Permission is hereby granted to use, copy, modify, and distribute this
- source code, or portions hereof, for any purpose, without fee, subject
- to the following restrictions:
+--------------------------------------------------------------------------------
+Copyrights listed in the files in the zlib directory and subdirectories
+thereof:
 
- 1. The origin of this source code must not be misrepresented.
-
- 2. Altered versions must be plainly marked as such and
- must not be misrepresented as being the original source.
-
- 3. This Copyright notice may not be removed or altered from
-    any source or altered source distribution.
+Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler
+Copyright (C) 1995-2005 Jean-loup Gailly.
+Copyright (C) 1995-2005 Mark Adler
 
-The Contributing Authors and Group 42, Inc. specifically permit, without
- fee, and encourage the use of this source code as a component to
- supporting the PNG file format in commercial products.  If you use this
- source code in a product, acknowledgment is not required but would be
- appreciated.
- 
+ * Copyright (C) 1995-2005 Jean-loup Gailly.
+ * For conditions of distribution and use, see copyright notice in zlib.h
 
--------
-'zlib' general purpose compression library
+---
+/* zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.3, July 18th, 2005
 
   Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler
@@ -1025,417 +2000,4 @@
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://www.ietf.org/rfc/rfc1950.txt
   (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
-
--------
-
-Copyrights listed in the files: base/ConvertUTF.[ch]
-/*
- * Copyright 2001-2004 Unicode, Inc.
- * 
- * Disclaimer
- * 
- * This source code is provided as is by Unicode, Inc. No claims are
- * made as to fitness for any particular purpose. No warranties of any
- * kind are expressed or implied. The recipient agrees to determine
- * applicability of information provided. If this file has been
- * purchased on magnetic or optical media from Unicode, Inc., the
- * sole remedy for any claim will be exchange of defective media
- * within 90 days of receipt.
- * 
- * Limitations on Rights to Redistribute This Code
- * 
- * Unicode, Inc. hereby grants the right to freely use the information
- * supplied in this file in the creation of products supporting the
- * Unicode Standard, and to make copies of this file in any form
- * for internal or external distribution as long as this notice
- * remains attached.
- */
-
--------
-Resource/CMap files:
-90pv-RKSJ-UCS2
-90pv-RKSJ-UCS2C
-Adobe-CNS1-B5pc
-Adobe-CNS1-ETenms-B5
-Adobe-CNS1-H-CID
-Adobe-CNS1-H-Host
-Adobe-CNS1-H-Mac
-Adobe-CNS1-UCS2
-Adobe-GB1-GBK-EUC
-Adobe-GB1-GBpc-EUC
-Adobe-GB1-H-CID
-Adobe-GB1-H-Host
-Adobe-GB1-H-Mac
-Adobe-GB1-UCS2
-Adobe-Japan1-90ms-RKSJ
-Adobe-Japan1-90pv-RKSJ
-Adobe-Japan1-H-CID
-Adobe-Japan1-H-Host
-Adobe-Japan1-H-Mac
-Adobe-Japan1-PS-H
-Adobe-Japan1-PS-V
-Adobe-Japan1-UCS2
-Adobe-Korea1-H-CID
-Adobe-Korea1-H-Host
-Adobe-Korea1-H-Mac
-Adobe-Korea1-KSCms-UHC
-Adobe-Korea1-KSCpc-EUC
-Adobe-Korea1-UCS2
-B5pc-UCS2
-B5pc-UCS2C
-CNS01-RKSJ-H
-CNS02-RKSJ-H
-CNS03-RKSJ-H
-CNS04-RKSJ-H
-CNS05-RKSJ-H
-CNS06-RKSJ-H
-CNS07-RKSJ-H
-CNS15-RKSJ-H
-ETen-B5-UCS2
-GB-RKSJ-H
-GBK-EUC-UCS2
-GBT-RKSJ-H
-GBpc-EUC-UCS2
-GBpc-EUC-UCS2C
-HK-RKSJ-H
-Hojo-RKSJ-H
-KSC-RKSJ-H
-KSC2-RKSJ-H
-KSCms-UHC-UCS2
-KSCpc-EUC-UCS2
-KSCpc-EUC-UCS2C
-TCVN-RKSJ-H
-UCS2-90ms-RKSJ
-UCS2-90pv-RKSJ
-UCS2-B5pc
-UCS2-ETen-B5
-UCS2-GBK-EUC
-UCS2-GBpc-EUC
-UCS2-KSCms-UHC
-UCS2-KSCpc-EUC
-
-Copyright 1990-2001 Adobe Systems Incorporated.
-All Rights Reserved.
-Patents Pending
-
-NOTICE: All information contained herein is the property
-of Adobe Systems Incorporated.
-
-Permission is granted for redistribution of this file
-provided this copyright notice is maintained intact and
-that the contents of this file are not altered in any
-way from its original form.
-
-PostScript and Display PostScript are trademarks of
-Adobe Systems Incorporated which may be registered in
-certain jurisdictions.
-
--------
-Resource/CMap files:
-78-EUC-H
-78-EUC-V
-78-H
-78-RKSJ-H
-78-RKSJ-V
-78-V
-78ms-RKSJ-H
-78ms-RKSJ-V
-83pv-RKSJ-H
-90ms-RKSJ-H
-90ms-RKSJ-UCS2
-90ms-RKSJ-V
-90msp-RKSJ-H
-90msp-RKSJ-V
-90pv-RKSJ-H
-90pv-RKSJ-V
-Add-H
-Add-RKSJ-H
-Add-RKSJ-V
-Add-V
-Adobe-CNS1-0
-Adobe-CNS1-1
-Adobe-CNS1-2
-Adobe-CNS1-3
-Adobe-CNS1-4
-Adobe-CNS1-5
-Adobe-CNS1-6
-Adobe-GB1-0
-Adobe-GB1-1
-Adobe-GB1-2
-Adobe-GB1-3
-Adobe-GB1-4
-Adobe-GB1-5
-Adobe-Japan1-0
-Adobe-Japan1-1
-Adobe-Japan1-2
-Adobe-Japan1-3
-Adobe-Japan1-4
-Adobe-Japan1-5
-Adobe-Japan1-6
-Adobe-Japan2-0
-Adobe-Korea1-0
-Adobe-Korea1-1
-Adobe-Korea1-2
-B5-H
-B5-V
-B5pc-H
-B5pc-V
-CNS-EUC-H
-CNS-EUC-V
-CNS1-H
-CNS1-V
-CNS2-H
-CNS2-V
-ETHK-B5-H
-ETHK-B5-V
-ETen-B5-H
-ETen-B5-V
-ETenms-B5-H
-ETenms-B5-V
-EUC-H
-EUC-V
-Ext-H
-Ext-RKSJ-H
-Ext-RKSJ-V
-Ext-V
-GB-EUC-H
-GB-EUC-V
-GB-H
-GB-V
-GBK-EUC-H
-GBK-EUC-V
-GBK2K-H
-GBK2K-V
-GBKp-EUC-H
-GBKp-EUC-V
-GBT-EUC-H
-GBT-EUC-V
-GBT-H
-GBT-V
-GBTpc-EUC-H
-GBTpc-EUC-V
-GBpc-EUC-H
-GBpc-EUC-V
-H
-HKdla-B5-H
-HKdla-B5-V
-HKdlb-B5-H
-HKdlb-B5-V
-HKgccs-B5-H
-HKgccs-B5-V
-HKm314-B5-H
-HKm314-B5-V
-HKm471-B5-H
-HKm471-B5-V
-HKscs-B5-H
-HKscs-B5-V
-Hankaku
-Hiragana
-Hojo-EUC-H
-Hojo-EUC-V
-Hojo-H
-Hojo-V
-Identity-H
-Identity-V
-KSC-EUC-H
-KSC-EUC-V
-KSC-H
-KSC-Johab-H
-KSC-Johab-V
-KSC-V
-KSCms-UHC-H
-KSCms-UHC-HW-H
-KSCms-UHC-HW-V
-KSCms-UHC-V
-KSCpc-EUC-H
-KSCpc-EUC-V
-Katakana
-NWP-H
-NWP-V
-RKSJ-H
-RKSJ-V
-Roman
-UniCNS-UTF16-H
-UniCNS-UTF32-H
-UniCNS-UTF8-H
-UniGB-UTF16-H
-UniGB-UTF32-H
-UniGB-UTF8-H
-UniJIS-UTF16-H
-UniJIS-UTF32-H
-UniJIS-UTF8-H
-UniJIS2004-UTF16-H
-UniJIS2004-UTF32-H
-UniJIS2004-UTF8-H
-UniJISX0213-UTF32-H
-UniJISX02132004-UTF32-H
-UniCNS-UCS2-H
-UniCNS-UCS2-V
-UniCNS-UTF16-V
-UniCNS-UTF32-V
-UniCNS-UTF8-V
-UniGB-UCS2-H
-UniGB-UCS2-V
-UniGB-UTF16-V
-UniGB-UTF32-V
-UniGB-UTF8-V
-UniHojo-UCS2-H
-UniHojo-UCS2-V
-UniHojo-UTF16-H
-UniGB-UTF16-V
-UniGB-UTF32-H
-UniGB-UTF32-V
-UniGB-UTF8-H
-UniGB-UTF8-V
-UniHojo-UCS2-H
-UniHojo-UCS2-V
-UniHojo-UTF16-H
-UniHojo-UTF16-V
-UniHojo-UTF32-H
-UniHojo-UTF32-V
-UniHojo-UTF8-H
-UniHojo-UTF8-V
-UniJIS-UCS2-H
-UniJIS-UCS2-HW-H
-UniJIS-UCS2-HW-V
-UniJIS-UCS2-V
-UniJIS-UTF16-V
-UniJIS-UTF32-V
-UniJIS-UTF8-V
-UniJIS2004-UTF16-V
-UniJIS2004-UTF32-V
-UniJIS2004-UTF8-V
-UniJISPro-UCS2-HW-V
-UniJISPro-UCS2-V
-UniJISPro-UTF8-V
-UniJISX0213-UTF32-V
-UniJISX02132004-UTF32-V
-UniKS-UCS2-H
-UniKS-UCS2-V
-UniKS-UTF16-H
-UniKS-UTF16-V
-UniKS-UTF32-H
-UniKS-UTF32-V
-UniKS-UTF8-H
-UniKS-UTF8-V
-V
-WP-Symbol
-
-Copyright 1990-2010 Adobe Systems Incorporated.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or
-without modification, are permitted provided that the
-following conditions are met:
-
-Redistributions of source code must retain the above
-copyright notice, this list of conditions and the following
-disclaimer.
-
-Redistributions in binary form must reproduce the above
-copyright notice, this list of conditions and the following
-disclaimer in the documentation and/or other materials
-provided with the distribution. 
-
-Neither the name of Adobe Systems Incorporated nor the names
-of its contributors may be used to endorse or promote
-products derived from this software without specific prior
-written permission. 
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
-CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
-INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
-CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
-
-pdftoraster
-
-Copyright (c) 2008, Till Kamppeter 
-Copyright (c) 2008, BBR Inc.  All rights reserved. 
-
-Permission is hereby granted, free of charge, to any person obtaining 
-a copy of this software and associated documentation files (the 
-"Software"), to deal in the Software without restriction, including 
-without limitation the rights to use, copy, modify, merge, publish, 
-distribute, sublicense, and/or sell copies of the Software, and to 
-permit persons to whom the Software is furnished to do so, subject to 
-the following conditions: 
-
-The above copyright notice and this permission notice shall be included 
-in all copies or substantial portions of the Software. 
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
-
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
-libijs.a
-
-ijs/ijs.c, ijs/ijs.h, ijs/ijs_client.c,  ijs/ijs_client.h, ijs/ijs_exec_unix.c, ijs/ijs_server.c, ijs/ijs_server.h, ijs/ijs_server_example.c, ijs/unistd_.h: 
-
- Copyright (C) 2001-2002 Artifex Software, Inc. 
- 
- Permission is hereby granted, free of charge, to any person 
- obtaining a copy of this software and associated documentation 
- files (the "Software"), to deal in the Software without 
- restriction, including without limitation the rights to use, copy, 
- modify, merge, publish, distribute, sublicense, and/or sell copies 
- of the Software, and to permit persons to whom the Software is 
- furnished to do so, subject to the following conditions: 
- 
- The above copyright notice and this permission notice shall be 
- included in all copies or substantial portions of the Software. 
- 
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
-
-ijs/Makefile.am:
- 
-Copyright (C) 2001-2007 Artifex Software, Inc.
- 
- Permission is hereby granted, free of charge, to any person
- obtaining a copy of this software and associated documentation
- files (the "Software"), to deal in the Software without
- restriction, including without limitation the rights to use, copy,
- modify, merge, publish, distribute, sublicense, and/or sell copies
- of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
- 
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
- 
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-ijs/configure.ac:
- 
-Copyright (C) 2001-2004 Artifex Software, Inc. 
-
-Permission is hereby granted, free of charge, to any person 
-obtaining a copy of this software and associated documentation 
-files (the "Software"), to deal in the Software without 
-restriction, including without limitation the rights to use, copy, 
-modify, merge, publish, distribute, sublicense, and/or sell copies 
-of the Software, and to permit persons to whom the Software is 
-furnished to do so, subject to the following conditions: 
-
-The above copyright notice and this permission notice shall be 
-included in all copies or substantial portions of the Software. 
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
-
+*/
--- a/components/ghostscript/ghostscript.p5m	Thu Mar 30 13:00:52 2017 -0700
+++ b/components/ghostscript/ghostscript.p5m	Thu Mar 30 20:50:08 2017 -0700
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
 #
 <transform file path=usr.*/man/.+ -> default mangler.man.stability volatile>
 set name=pkg.fmri \
@@ -37,8 +37,5 @@
 set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
 file path=usr/bin/$(MACH64)/gsx pkg.depend.bypass-generate=libgs.so.9
 file path=usr/bin/gsx pkg.depend.bypass-generate=libgs.so.9
-file path=usr/bin/pv.sh
-link path=usr/sfw/bin/pv.sh target=../../bin/pv.sh
-file Solaris/pv.sh.1 path=usr/share/man/man1/pv.sh.1
 license ghostscript.license license=GPLv3
 depend type=require fmri=pkg:/print/filter/ghostscript-core
--- a/components/ghostscript/patches/02-4776996.patch	Thu Mar 30 13:00:52 2017 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
---- ghostscript-8.64/Resource/Init/pdf_sec.ps.orig	Mon Jul  5 16:51:46 2010
-+++ ghostscript-8.64/Resource/Init/pdf_sec.ps	Fri Oct 15 03:50:03 2010
[email protected]@ -472,12 +472,12 @@
-     } ifelse
-   } ifelse
- 
--%   Trailer /Encrypt oget /P oget 4 and 0 eq #? and
--%    { (   ****This owner of this file has requested you do not print it.\n)
--%      pdfformaterror printProducer
--%      /pdf_process_Encrypt cvx /invalidfileaccess signalerror
--%    }
--%   if
-+  Trailer /Encrypt oget /P oget 4 and 0 eq #? and
-+   { (   ****This owner of this file has requested you do not print it.\n)
-+     pdfformaterror printProducer
-+     /pdf_process_Encrypt cvx /invalidfileaccess signalerror
-+   }
-+  if
- } bind def
- 
- % Calculate the key used to decrypt an object (to pass to .decpdfrun or
--- a/components/ghostscript/patches/03-4795491.patch	Thu Mar 30 13:00:52 2017 -0700
+++ b/components/ghostscript/patches/03-4795491.patch	Thu Mar 30 20:50:08 2017 -0700
@@ -1,21 +1,15 @@
---- ghostscript-8.64/base/configure.ac.orig	Fri Oct 15 02:02:36 2010
-+++ ghostscript-8.64/base/configure.ac	Fri Oct 15 02:12:00 2010
[email protected]@ -1191,7 +1191,6 @@
- 		SunOS)
- 		DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so"
- 		DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\""
--		X_DEVS=""
- 		;;
- 		*)
- 		AC_MSG_ERROR([Sorry, dynamic driver support not available on this platform!])
[email protected]@ -1233,6 +1232,10 @@
- 	# These font directories are used by Solaris...
- 	fontpath="${fontpath}:/usr/openwin/lib/X11/fonts/Type1"
- 	fontpath="${fontpath}:/usr/openwin/lib/X11/fonts/TrueType"
-+	fontpath="${fontpath}:/usr/openwin/lib/X11/fonts/Type3"
-+	fontpath="${fontpath}:/usr/X11/lib/X11/fonts/Type1"
-+	fontpath="${fontpath}:/usr/X11/lib/X11/fonts/Type3"
-+	fontpath="${fontpath}:/usr/X11/lib/X11/fonts/TrueType"
+Solaris-specific; not suitable for upstream
+
+--- ghostscript-9.20/configure.ac	2016-09-26 03:41:28.000000000 -0700
++++ ghostscript-9.20/configure.ac 	2016-09-30 02:35:51.247500625 -0700
[email protected]@ -2229,6 +2229,10 @@
+         # These font directories are used by Solaris...
+         fontpath="${fontpath}:/usr/openwin/lib/X11/fonts/Type1"
+         fontpath="${fontpath}:/usr/openwin/lib/X11/fonts/TrueType"
++        fontpath="${fontpath}:/usr/openwin/lib/X11/fonts/Type3"
++        fontpath="${fontpath}:/usr/X11/lib/X11/fonts/Type1"
++        fontpath="${fontpath}:/usr/X11/lib/X11/fonts/Type3"
++        fontpath="${fontpath}:/usr/X11/lib/X11/fonts/TrueType"
  
- 	# This font directory is used by CUPS...
- 	if test "x$CUPSCONFIG" != x; then
+         # This font directory is used by CUPS...
+         if test "x$CUPSCONFIG" != x; then
--- a/components/ghostscript/patches/05-5045800.patch	Thu Mar 30 13:00:52 2017 -0700
+++ b/components/ghostscript/patches/05-5045800.patch	Thu Mar 30 20:50:08 2017 -0700
@@ -1,11 +1,13 @@
---- ghostscript-9.00/Resource/Init/gs_init.ps.orig	Tue Sep 14 07:56:26 2010
-+++ ghostscript-9.00/Resource/Init/gs_init.ps	Fri Oct 15 03:50:03 2010
[email protected]@ -2016,7 +2016,7 @@
- {
+Solaris-specific; not suitable for upstream
+
+--- ghostscript-9.20/Resource/Init/gs_init.ps	2016-09-26 03:41:28.000000000 -0700
++++ ghostscript-9.20/Resource/Init/gs_init.ps	2016-10-04 23:24:03.811258506 -0700
[email protected]@ -2063,7 +2063,7 @@
    SAFETY /safe get not {
      <<
--      /PermitFileReading [ ]
-+      /PermitFileReading [ (/usr/openwin/lib/*) (/usr/X11/lib/*) (/usr/share/ghostscript/*) ]
-       /PermitFileWriting [ ]
+       /PermitFileReading [ ]
+-      /PermitFileWriting [ ]
++      /PermitFileWriting [ (/usr/openwin/lib/*) (/usr/X11/lib/*) (/usr/share/ghostscript/*) ]
        /PermitFileControl [ ]
      >> setuserparams
+   }
--- a/components/ghostscript/patches/07-unixinst.mak.patch	Thu Mar 30 13:00:52 2017 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-*** ghostscript-8.64/base/unixinst.mak.orig	Tue Aug 12 14:58:30 2008
---- ghostscript-8.64/base/unixinst.mak	Wed Aug 13 11:47:54 2008
-***************
-*** 108,114 ****
-  # install html documentation
-  DOC_PAGES=PUBLIC README index.html gs.css \
-  	   API.htm Bug-form.htm Bug-info.htm \
-! 	   C-style.htm Changes.htm Commprod.htm Copying.htm \
-  	   Current.htm Deprecated.htm \
-  	   DLL.htm Deprecated.htm Develop.htm Devices.htm Drivers.htm \
-  	   Fonts.htm Helpers.htm Hershey.htm \
---- 108,114 ----
-  # install html documentation
-  DOC_PAGES=PUBLIC README index.html gs.css \
-  	   API.htm Bug-form.htm Bug-info.htm \
-! 	   C-style.htm Changes.htm Commprod.htm Copying.htm COPYING README.sharedlibs \
-  	   Current.htm Deprecated.htm \
-  	   DLL.htm Deprecated.htm Develop.htm Devices.htm Drivers.htm \
-  	   Fonts.htm Helpers.htm Hershey.htm \
-***************
-*** 119,126 ****
-  	   Lib.htm Maintain.htm Make.htm New-user.htm \
-  	   News.htm Projects.htm Ps-style.htm Ps2epsi.htm Ps2pdf.htm \
-  	   Psfiles.htm Public.htm Readme.htm Release.htm \
-! 	   Source.htm Testing.htm Unix-lpr.htm \
-! 	   Use.htm Xfonts.htm
-  install-doc: $(PSDOCDIR)/News.htm
-  	-mkdir -p $(DESTDIR)$(docdir)
-  	$(SH) -c 'for f in $(DOC_PAGES) ;\
---- 119,126 ----
-  	   Lib.htm Maintain.htm Make.htm New-user.htm \
-  	   News.htm Projects.htm Ps-style.htm Ps2epsi.htm Ps2pdf.htm \
-  	   Psfiles.htm Public.htm Readme.htm Release.htm \
-! 	   Deprecated.htm Details.htm Details8.htm gs-vms.hlp gsdoc.el \
-! 	   Source.htm Tester.htm Testing.htm Unix-lpr.htm Use.htm Xfonts.htm
-  install-doc: $(PSDOCDIR)/News.htm
-  	-mkdir -p $(DESTDIR)$(docdir)
-  	$(SH) -c 'for f in $(DOC_PAGES) ;\
--- a/components/ghostscript/patches/09-ijs.automake.patch	Thu Mar 30 13:00:52 2017 -0700
+++ b/components/ghostscript/patches/09-ijs.automake.patch	Thu Mar 30 20:50:08 2017 -0700
@@ -1,22 +1,13 @@
---- ghostscript-8.64/ijs/Makefile.am.orig	Tue Mar 29 04:38:15 2011
-+++ ghostscript-8.64/ijs/Makefile.am	Tue Mar 29 04:38:26 2011
[email protected]@ -24,7 +24,7 @@
- 
- ## Process this file with automake to produce Makefile.in.
- 
--AUTOMAKE_OPTIONS = 1.6 foreign dist-bzip2 no-dependencies 
-+AUTOMAKE_OPTIONS = 1.10 foreign dist-bzip2 no-dependencies 
- 
- @[email protected]
- 
---- ghostscript-8.64/ijs/autogen.sh.orig	Tue Mar 29 04:39:57 2011
-+++ ghostscript-8.64/ijs/autogen.sh	Tue Mar 29 04:39:17 2011
+Solaris-specific; not suitable for upstream
+
+--- ghostscript-9.20/ijs/autogen.sh	2016-09-26 03:41:29.000000000 -0700
++++ ghostscript-9.20/ijs/autogen.sh	2016-10-05 02:32:21.301952517 -0700
 @@ -33,7 +33,7 @@
- 
  # do we need automake?
- (grep "^AM_INIT_AUTOMAKE" "$CONFIG_AC" >/dev/null) && {
--  AM_NEEDED=`fgrep AUTOMAKE_OPTIONS Makefile.am | $VERSIONGREP`
-+  AM_NEEDED=`fgrep AUTOMAKE_OPTIONS Makefile.am | nawk '{print $3}'`
-   AM_NMAJOR=`echo $AM_NEEDED |cut -d. -f1`
-   AM_NMINOR=`echo $AM_NEEDED |cut -d. -f2`
-   AM_NPATCHLEVEL=`echo $AM_NEEDED |cut -d. -f3`
+ if test "x$USE_OLD" = "xyes" ; then
+   (grep "^AM_INIT_AUTOMAKE" "$CONFIG_AC" >/dev/null) && {
+-    AM_NEEDED=`fgrep AUTOMAKE_OPTIONS Makefile.am | $VERSIONGREP`
++    AM_NEEDED=`fgrep AUTOMAKE_OPTIONS Makefile.am | nawk '{print $3}'`
+     AM_NMAJOR=`echo $AM_NEEDED |cut -d. -f1`
+     AM_NMINOR=`echo $AM_NEEDED |cut -d. -f2`
+     AM_NPATCHLEVEL=`echo $AM_NEEDED |cut -d. -f3`
--- a/components/ghostscript/patches/11-7041017.patch	Thu Mar 30 13:00:52 2017 -0700
+++ b/components/ghostscript/patches/11-7041017.patch	Thu Mar 30 20:50:08 2017 -0700
@@ -1,32 +1,36 @@
---- ghostscript-9.00/base/configure.ac.orig	Tue Apr 26 00:22:10 2011
-+++ ghostscript-9.00/base/configure.ac	Tue Apr 26 00:22:31 2011
[email protected]@ -984,7 +984,7 @@
- IBM_DEVS="ibmpro jetp3852"
- OKI_DEVS="oki182 okiibm oki4w"
- JAPAN_DEVS="lips4 lips4v ljet4pjl lj4dithp dj505j picty180 lips2p bjc880j pr201 pr150 pr1000 pr1000_4 jj100 bj10v bj10vh mj700v2c mj500c mj6000c mj8000c fmpr fmlbp ml600 lbp310 lbp320 md50Mono md50Eco md1xMono escpage lp2000 npdl rpdl"
--MISC_PDEVS="uniprint ap3250 atx23 atx24 atx38 coslw2p coslwxl cp50 declj250 fs600 imagen lj250 m8510 necp6 oce9050 r4081 sj48 tek4696 t4693d2 t4693d4 t4693d8 dl2100 la50 la70 la75 la75plus ln03 xes md2k md5k gdi samsunggdi"
-+MISC_PDEVS="uniprint ap3250 atx23 atx24 atx38 coslw2p coslwxl cp50 declj250 fs600 imagen lj250 m8510 necp6 oce9050 r4081 sj48 tek4696 t4693d2 t4693d4 t4693d8 dl2100 la50 la70 la75 la75plus ln03 xes gdi samsunggdi"
- OPVP_DEVS="opvp oprp"
- ETS_HALFTONING_DEVS="rinkj"
+Solaris-specific; not suitable for upstream
+
+--- ghostscript-9.20/configure.ac	2016-10-05 02:35:21.377619052 -0700
++++ ghostscript-9.20/configure.ac	2016-10-05 03:16:01.324682761 -0700
[email protected]@ -1815,7 +1815,7 @@
+ IBM_DEVS='ibmpro jetp3852'
+ OKI_DEVS='oki182 okiibm oki4w'
+ JAPAN_DEVS='lips4 lips4v ljet4pjl lj4dithp dj505j picty180 lips2p bjc880j pr201 pr150 pr1000 pr1000_4 jj100 bj10v bj10vh mj700v2c mj500c mj6000c mj8000c fmpr fmlbp ml600 lbp310 lbp320 md50Mono md50Eco md1xMono escpage lp2000 npdl rpdl'
+-MISC_PDEVS='uniprint ap3250 atx23 atx24 atx38 itk24i itk38 coslw2p coslwxl cp50 declj250 fs600 imagen lj250 m8510 necp6 oce9050 r4081 sj48 tek4696 t4693d2 t4693d4 t4693d8 dl2100 la50 la70 la75 la75plus ln03 xes md2k md5k gdi samsunggdi'
++MISC_PDEVS='uniprint ap3250 atx23 atx24 atx38 itk24i itk38 coslw2p coslwxl cp50 declj250 fs600 imagen lj250 m8510 necp6 oce9050 r4081 sj48 tek4696 t4693d2 t4693d4 t4693d8 dl2100 la50 la70 la75 la75plus ln03 xes gdi samsunggdi'
+ OPVP_DEVS='opvp oprp'
  
---- ghostscript-9.00/contrib/contrib.mak.orig	Thu Mar 10 05:51:40 2011
-+++ ghostscript-9.00/contrib/contrib.mak	Thu Mar 10 05:53:24 2011
[email protected]@ -579,13 +579,13 @@
+ ETS_HALFTONING_DEVS='rinkj'
+--- ghostscript-9.20/contrib/contrib.mak	2016-09-26 03:41:28.000000000 -0700
++++ ghostscript-9.20/contrib/contrib.mak	2016-10-05 03:21:56.683408866 -0700
[email protected]@ -659,15 +659,15 @@
  
  ### ------------ ALPS MD series printer devices ------------ ###
  
--md2k_=$(GLOBJ)gdevmd2k.$(OBJ)
-+#md2k_=$(GLOBJ)gdevmd2k.$(OBJ)
+-md2k_=$(DEVOBJ)gdevmd2k.$(OBJ)
++#md2k_=$(DEVOBJ)gdevmd2k.$(OBJ)
  
--$(DD)md2k.dev : $(md2k_) $(DD)page.dev
+-$(DD)md2k.dev : $(md2k_) $(DD)page.dev \
++#$(DD)md2k.dev : $(md2k_) $(DD)page.dev \
+                            $(CONTRIB_MAK) $(MAKEDIRS)
 -	$(SETPDEV) $(DD)md2k $(md2k_)
-+#$(DD)md2k.dev : $(md2k_) $(DD)page.dev
-+#	$(SETPDEV) $(DD)md2k $(md2k_)
++	#$(SETPDEV) $(DD)md2k $(md2k_)
  
--$(DD)md5k.dev : $(md2k_) $(DD)page.dev
+-$(DD)md5k.dev : $(md2k_) $(DD)page.dev \
++#$(DD)md5k.dev : $(md2k_) $(DD)page.dev \
+                            $(CONTRIB_MAK) $(MAKEDIRS)
 -	$(SETPDEV) $(DD)md5k $(md2k_)
-+#$(DD)md5k.dev : $(md2k_) $(DD)page.dev
-+#	$(SETPDEV) $(DD)md5k $(md2k_)
++	#$(SETPDEV) $(DD)md5k $(md2k_)
  
- $(GLOBJ)gdevmd2k.$(OBJ) : $(CONTRIBSRC)gdevmd2k.c $(PDEVH) $(gsparam_h)
- 	$(GLCC) $(GLO_)gdevmd2k.$(OBJ) $(C_) $(CONTRIBSRC)gdevmd2k.c
+ $(DEVOBJ)gdevmd2k.$(OBJ) : $(CONTRIBSRC)gdevmd2k.c $(PDEVH) $(gsparam_h) \
+                            $(CONTRIB_MAK) $(MAKEDIRS)
--- a/components/ghostscript/patches/12-7076729.patch	Thu Mar 30 13:00:52 2017 -0700
+++ b/components/ghostscript/patches/12-7076729.patch	Thu Mar 30 20:50:08 2017 -0700
@@ -1,6 +1,8 @@
---- ghostscript-9.00/base/gp_psync.c	Wed Jul 28 14:52:49 2010
-+++ ghostscript-9.00/base/gp_psync.c	Fri Sep  9 12:12:13 2011
[email protected]@ -62,13 +62,18 @@
+Solaris-specific; not suitable for upstream
+
+--- ghostscript-9.20/base/gp_psync.c	2016-09-26 03:41:28.000000000 -0700
++++ ghostscript-9.20/base/gp_psync.c	2016-10-05 04:19:36.456692671 -0700
[email protected]@ -65,14 +65,18 @@
  {
      pt_semaphore_t * const sem = (pt_semaphore_t *)sema;
      int scode;
@@ -8,35 +10,34 @@
 +    pthread_cond_t tmp_cond;
  
      if (!sema)
- 	return -1;		/* semaphores are not movable */
+         return -1;		/* semaphores are not movable */
      sem->count = 0;
 -    scode = pthread_mutex_init(&sem->mutex, NULL);
--    if (scode == 0)
--	scode = pthread_cond_init(&sem->cond, NULL);
 +    scode = pthread_mutex_init(&tmp_mutex, NULL);
 +    memcpy(&sem->mutex, &tmp_mutex, sizeof(pthread_mutex_t));
-+    if (scode == 0) {
-+	scode = pthread_cond_init(&tmp_cond, NULL);
-+	memcpy(&sem->cond, &tmp_cond, sizeof(pthread_cond_t));
-+    }
-     return SEM_ERROR_CODE(scode);
- }
- 
[email protected]@ -147,6 +152,7 @@
+     if (scode == 0)
+     {
+-        scode = pthread_cond_init(&sem->cond, NULL);
++        scode = pthread_cond_init(&tmp_cond, NULL);
++        memcpy(&sem->cond, &tmp_cond, sizeof(pthread_cond_t));
+         if (scode)
+             pthread_mutex_destroy(&sem->mutex);
+     }
[email protected]@ -162,6 +166,7 @@
  gp_monitor_open(gp_monitor * mona)
  {
      pthread_mutex_t *mon;
 +    pthread_mutex_t  tmp_mutex;
      int scode;
+     pthread_mutexattr_t attr;
+     pthread_mutexattr_t *attrp = NULL;
[email protected]@ -185,7 +190,8 @@
+ #endif
  
-     if (!mona)
[email protected]@ -153,7 +159,8 @@
- 	return -1;		/* monitors are not movable */
      mon = &((gp_pthread_recursive_t *)mona)->mutex;
-     ((gp_pthread_recursive_t *)mona)->self_id = 0;	/* Not valid unless mutex is locked */
--    scode = pthread_mutex_init(mon, NULL);
+-    scode = pthread_mutex_init(mon, attrp);
 +    scode = pthread_mutex_init(&tmp_mutex, NULL);
 +    memcpy(mon, &tmp_mutex, sizeof(pthread_mutex_t));
-     return SEM_ERROR_CODE(scode);
- }
- 
+     if (attrp)
+         (void)pthread_mutexattr_destroy(attrp);
+ done:
--- a/components/ghostscript/patches/16730811.patch	Thu Mar 30 13:00:52 2017 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-/*
- * Fix developed in-house.
- * Upstream bug 693952, http://bugs.ghostscript.com/show_bug.cgi?id=693952#c2.
- */
---- ghostscript-9.00/base/gxsync.h.orig	Thu May  2 05:50:31 2013
-+++ ghostscript-9.00/base/gxsync.h	Thu May  2 05:51:09 2013
[email protected]@ -52,6 +52,7 @@
- /* the event count is set to 1 (1st 'enter' succeeds immediately). */
- typedef struct gx_monitor_s {
-     gs_memory_t *memory;	/* allocator to free memory */
-+    int *dummy;			/* to address alignment issue on sparc */
-     gp_monitor native;		/* platform-dep impl, len is gp_monitor_sizeof() */
- } gx_monitor_t;
- 
--- a/components/ghostscript/patches/21516009.patch	Thu Mar 30 13:00:52 2017 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-The patch has been taken from community and fixes Integer overflow.
-The details can be found in the following location
-http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=0c0b0859
-
---- ghostscript-9.00/base/gsmalloc.c	Thu Apr 29 11:32:44 2010
-+++ ghostscript-9.00/base/gsmalloc.c	Tue Aug 11 03:28:23 2015
[email protected]@ -177,7 +177,7 @@
-     } else {
- 	uint added = size + sizeof(gs_malloc_block_t);
- 
--	if (mmem->limit - added < mmem->used)
-+	if (added <= size || mmem->limit - added < mmem->used)
- 	    set_msg("exceeded limit");
- 	else if ((ptr = (byte *) malloc(added)) == 0)
- 	    set_msg("failed");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ghostscript/patches/24807607_24808123.patch	Thu Mar 30 20:50:08 2017 -0700
@@ -0,0 +1,163 @@
+The patch has been taken from community and fixes Integer overflow.
+The details can be found in the following location
+https://bugs.ghostscript.com/show_bug.cgi?id=697169
+https://bugs.ghostscript.com/show_bug.cgi?id=697178
+
+--- ghostscript-9.20/base/gsicc_manage.c	2016-09-26 03:41:28.000000000 -0700
++++ ghostscript-9.20/base/gsicc_manage.c	2016-10-24 00:36:45.674351452 -0700
[email protected]@ -1124,10 +1124,12 @@
+     }
+ 
+     /* First just try it like it is */
+-    str = sfopen(pname, "r", mem_gc);
+-    if (str != NULL) {
+-        *strp = str;
+-        return 0;
++    if (gs_check_file_permission(mem_gc, pname, namelen, "r") >= 0) {
++        str = sfopen(pname, "r", mem_gc);
++        if (str != NULL) {
++            *strp = str;
++            return 0;
++        }
+     }
+ 
+     /* If that fails, try %rom% */ /* FIXME: Not sure this is needed or correct */
+--- ghostscript-9.20/base/gslibctx.c	2016-09-26 03:41:28.000000000 -0700
++++ ghostscript-9.20/base/gslibctx.c	2016-10-24 01:18:05.789733804 -0700
[email protected]@ -184,6 +184,7 @@
+         return -1;
+     }
+     
++    pio->client_check_file_permission = NULL;
+     gp_get_realtime(pio->real_time_0);
+ 
+     /* Set scanconverter to 1 (default) */
[email protected]@ -335,4 +336,14 @@
+     if (!mem->gs_lib_ctx->stderr_fn)
+         fflush(mem->gs_lib_ctx->fstderr);
+     /* else nothing to flush */
++}
++
++int
++gs_check_file_permission (gs_memory_t *mem, const char *fname, const int len, const char *permission)
++{
++    int code = 0;
++    if (mem->gs_lib_ctx->client_check_file_permission != NULL) {
++        code = mem->gs_lib_ctx->client_check_file_permission(mem, fname, len, permission);
++    }
++    return code;
+ }
+--- ghostscript-9.20/base/gslibctx.h	2016-10-24 01:25:56.499696028 -0700
++++ ghostscript-9.20/base/gslibctx.h	2016-10-24 01:30:29.901389710 -0700
[email protected]@ -32,6 +32,9 @@
+ #  define gs_font_dir_DEFINED
+ typedef struct gs_font_dir_s gs_font_dir;
+ #endif
++
++typedef int (*client_check_file_permission_t) (gs_memory_t *mem, const char *fname, const int len, const char *permission);
++
+ typedef struct gs_lib_ctx_s
+ {
+     gs_memory_t *memory;  /* mem->gs_lib_ctx->memory == mem */
[email protected]@ -61,6 +64,7 @@
+     struct gx_io_device_s **io_device_table;
+     int io_device_table_count;
+     int io_device_table_size;
++    client_check_file_permission_t client_check_file_permission;
+     /* Define the default value of AccurateScreens that affects setscreen
+        and setcolorscreen. */
+     bool screen_accurate_screens;
[email protected]@ -132,6 +136,9 @@
+ gs_lib_ctx_get_default_device_list(const gs_memory_t *mem, char** dev_list_str,
+                         int *list_str_len);
+ 
++int
++gs_check_file_permission (gs_memory_t *mem, const char *fname, const int len, const char *permission);
++
+ #define IS_LIBCTX_STDOUT(mem, f) (f == mem->gs_lib_ctx->fstdout)
+ #define IS_LIBCTX_STDERR(mem, f) (f == mem->gs_lib_ctx->fstderr)
+ 
+--- ghostscript-9.20/psi/imain.c	2016-09-26 03:41:29.000000000 -0700
++++ ghostscript-9.20/psi/imain.c	2016-10-24 01:35:34.401393925 -0700
[email protected]@ -57,6 +57,7 @@
+ #include "ivmspace.h"
+ #include "idisp.h"              /* for setting display device callback */
+ #include "iplugin.h"
++#include "zfile.h"
+ 
+ #ifdef PACIFY_VALGRIND
+ #include "valgrind.h"
[email protected]@ -212,6 +213,7 @@
+                                            "the_gs_name_table");
+             if (code < 0)
+                 return code;
++            mem->gs_lib_ctx->client_check_file_permission = z_check_file_permissions;
+         }
+         code = obj_init(&minst->i_ctx_p, &idmem);  /* requires name_init */
+         if (code < 0)
+--- ghostscript-9.20/psi/int.mak	2016-09-26 03:41:29.000000000 -0700
++++ ghostscript-9.20/psi/int.mak	2016-10-24 01:40:57.724230623 -0700
[email protected]@ -2024,7 +2024,7 @@
+  $(ialloc_h) $(iconf_h) $(idebug_h) $(idict_h) $(idisp_h) $(iinit_h)\
+  $(iname_h) $(interp_h) $(iplugin_h) $(isave_h) $(iscan_h) $(ivmspace_h)\
+  $(iinit_h) $(main_h) $(oper_h) $(ostack_h)\
+- $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)\
++ $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h) $(zfile_h)\
+  $(INT_MAK) $(MAKEDIRS)
+ 	$(PSCC) $(PSO_)imain.$(OBJ) $(C_) $(PSSRC)imain.c
+ 
+--- ghostscript-9.20/psi/zfile.c	2016-09-26 03:41:29.000000000 -0700
++++ ghostscript-9.20/psi/zfile.c	2016-10-24 02:03:17.926910315 -0700
[email protected]@ -197,6 +197,25 @@
+     return check_file_permissions_reduced(i_ctx_p, fname_reduced, rlen, permitgroup);
+ }
+ 
++/* z_check_file_permissions: see zfile.h for explanation
++*/
++int
++z_check_file_permissions(gs_memory_t *mem, const char *fname, const int len, const char *permission)
++{
++    i_ctx_t *i_ctx_p = get_minst_from_memory(mem)->i_ctx_p;
++    gs_parsed_file_name_t pname;
++    char *permitgroup = permission[0] == 'r' ? "PermitFileReading" : "PermitFileWriting";
++    int code = gs_parse_file_name(&pname, fname, len, imemory);
++    if (code < 0)
++        return code;
++
++    if (pname.iodev && i_ctx_p->LockFilePermissions && strcmp(pname.iodev->dname, "%pipe%") == 0)
++        return gs_error_invalidfileaccess;
++
++    code = check_file_permissions(i_ctx_p, fname, len, permitgroup);
++    return code;
++}
++
+ /* <name_string> <access_string> file <file> */
+ int                             /* exported for zsysvm.c */
+ zfile(i_ctx_t *i_ctx_p)
+--- ghostscript-9.20/psi/zfile.h	2016-09-26 03:41:29.000000000 -0700
++++ ghostscript-9.20/psi/zfile.h	2016-10-24 02:09:06.285022717 -0700
[email protected]@ -22,4 +22,11 @@
+ int zopen_file(i_ctx_t *i_ctx_p, const gs_parsed_file_name_t *pfn,
+            const char *file_access, stream **ps, gs_memory_t *mem);
+ 
++/* z_check_file_permissions: a callback (via mem->gs_lib_ctx->client_check_file_permission)
++ * to allow applying the above permissions checks when opening file(s) from
++ * the graphics library
++ */
++int
++z_check_file_permissions(gs_memory_t *mem, const char *fname,
++                                 const int len, const char *permission);
+ #endif
+
+--- ghostscript-9.20/psi/zfile.c	2016-09-26 03:41:29.000000000 -0700
++++ ghostscript-9.20/psi/zfile.c	2016-11-23 22:09:45.180922117 -0800
[email protected]@ -1081,6 +1081,9 @@
+     gs_main_instance *minst = get_minst_from_memory(mem);
+     int code;
+ 
++    if (i_ctx_p && starting_arg_file)
++        i_ctx_p->starting_arg_file = false;
++
+     /* when starting arg files (@ files) iodev_default is not yet set */
+     if (iodev == 0)
+         iodev = (gx_io_device *)gx_io_device_table[0];
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ghostscript/patches/24807899.patch	Thu Mar 30 20:50:08 2017 -0700
@@ -0,0 +1,14 @@
+The patch has been taken from community and fixes Integer overflow.
+The details can be found in the following location
+https://bugs.ghostscript.com/show_bug.cgi?id=697179
+
+--- ghostscript-9.20/base/gsdevice.c	2016-09-26 03:41:28.000000000 -0700
++++ ghostscript-9.20/base/gsdevice.c	2016-11-23 21:54:31.426884075 -0800
[email protected]@ -614,6 +614,7 @@
+     dev->memory = mem;
+     dev->retained = !internal;
+     rc_init(dev, mem, (internal ? 0 : 1));
++    rc_increment(dev->icc_struct);
+ }
+ 
+ void
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ghostscript/patches/24808169.patch	Thu Mar 30 20:50:08 2017 -0700
@@ -0,0 +1,27 @@
+The patch has been taken from community and fixes Integer overflow.
+The details can be found in the following location
+https://bugs.ghostscript.com/show_bug.cgi?id=697190
+
+--- ghostscript-9.20/psi/zdscpars.c	2016-09-26 03:41:29.000000000 -0700
++++ ghostscript-9.20/psi/zdscpars.c	2016-11-23 21:29:07.736373458 -0800
[email protected]@ -150,11 +150,16 @@
+     ref local_ref;
+     int code;
+     os_ptr const op = osp;
+-    dict * const pdict = op->value.pdict;
+-    gs_memory_t * const mem = (gs_memory_t *)dict_memory(pdict);
+-    dsc_data_t * const data =
+-        gs_alloc_struct(mem, dsc_data_t, &st_dsc_data_t, "DSC parser init");
++    dict *pdict;
++    gs_memory_t *mem;
++    dsc_data_t *data;
+ 
++    check_read_type(*op, t_dictionary);
++
++    pdict = op->value.pdict;
++    mem = (gs_memory_t *)dict_memory(pdict);
++
++    data = gs_alloc_struct(mem, dsc_data_t, &st_dsc_data_t, "DSC parser init");
+     if (!data)
+         return_error(gs_error_VMerror);
+     data->document_level = 0;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ghostscript/patches/25054202.patch	Thu Mar 30 20:50:08 2017 -0700
@@ -0,0 +1,14 @@
+Solaris-specific; not suitable for upstream
+
+--- ghostscript-9.20/base/claptrap.h	2016-09-26 03:41:28.000000000 -0700
++++ claptrap.h	2016-11-23 22:15:32.906869606 -0800
[email protected]@ -20,9 +20,6 @@
+ #include "stdpre.h"
+ #include "gsmemory.h"
+ 
+-#ifndef restrict
+-#define restrict __restrict
+-#endif /* restrict */
+ #ifndef inline
+ #define inline __inline
+ #endif /* inline */
--- a/components/ghostscript/patches/4732635,5033581.patch	Thu Mar 30 13:00:52 2017 -0700
+++ b/components/ghostscript/patches/4732635,5033581.patch	Thu Mar 30 20:50:08 2017 -0700
@@ -1,10 +1,13 @@
---- ghostscript-9.00/Resource/Init/cidfmap.orig	Wed Jun  2 01:37:07 2010
-+++ ghostscript-9.00/Resource/Init/cidfmap	Fri Oct 15 02:20:40 2010
[email protected]@ -31,3 +31,133 @@
+Solaris-specific; not suitable for upstream
+
+--- ghostscript-9.20/Resource/Init/cidfmap	2016-09-26 03:41:28.000000000 -0700
++++ ghostscript-9.20/Resource/Init/cidfmap	2016-10-06 03:42:23.251624930 -0700
[email protected]@ -30,6 +30,139 @@
+ %   /ShinGo-Bold   /HeiseiKakuGo-W5 ;
  %   /Ryumin-Medium << /FileType /TrueType /Path (H:/AuxFiles/Fonts/BATANG.TTC) /SubfontID 3 /CSI [(Japan1) 2] >> ;
+ %   /Ryumin-Medium << /FileType /TrueType /Path (windir) getenv not {(c:/windows)}if (/Fonts/BATANG.TTC)concatstrings /SubfontID 3 /CSI [(Japan1) 2] >> ;
++
  %
- 
-+%
 +% Mapping for Asian Language Fonts delivered with Openwin.
 +%
 +
@@ -134,3 +137,8 @@
 +	/CSI [(Korea1) 1] >> ;
 +/Adobe-Korea1		/Myeongjo	;
 +/HYSMyeongJo-Medium	/Myeongjo	;
++
++
++%
+ %   NOTE: getenv returns a boolean to indicate success of or failure, as well as the value on success. In the example, it uses this
+ %         to include a default value should getenv fail.
--- a/components/ghostscript/patches/6886857,7068679.patch	Thu Mar 30 13:00:52 2017 -0700
+++ b/components/ghostscript/patches/6886857,7068679.patch	Thu Mar 30 20:50:08 2017 -0700
@@ -1,7 +1,9 @@
---- ghostscript-9.00/base/ugcclib.mak.orig	Tue Jul 26 01:47:52 2011
-+++ ghostscript-9.00/base/ugcclib.mak	Tue Jul 26 01:55:16 2011
[email protected]@ -42,7 +42,7 @@
- PGRELDIR=.
+Solaris-specific; not suitable for upstream
+
+--- ghostscript-9.20/base/ugcclib.mak	2016-09-26 03:41:28.000000000 -0700
++++ ghostscript-9.20/base/ugcclib.mak	2016-10-12 23:12:09.441179744 -0700
[email protected]@ -47,7 +47,7 @@
+ PGDIRPREFIX=
  
  JSRCDIR=jpeg
 -SHARE_JPEG=0
@@ -9,9 +11,9 @@
  JPEG_NAME=jpeg
  
  PNGSRCDIR=libpng
---- ghostscript-9.00/base/unix-gcc.mak.orig	Tue Jul 26 01:48:14 2011
-+++ ghostscript-9.00/base/unix-gcc.mak	Tue Jul 26 01:56:23 2011
[email protected]@ -138,7 +138,7 @@
+--- ghostscript-9.20/base/unix-gcc.mak	2016-09-26 03:41:28.000000000 -0700
++++ ghostscript-9.20/base/unix-gcc.mak	2016-10-12 23:14:22.153002400 -0700
[email protected]@ -230,7 +230,7 @@
  # some older JPEG streams that violate the standard. If the JPEG
  # library built from local sources, the patch will be applied.
  
@@ -20,7 +22,36 @@
  JPEG_NAME=jpeg
  
  # Define the directory where the PNG library sources are stored,
[email protected]@ -152,7 +152,7 @@
[email protected]@ -238,7 +238,7 @@
+ # You may need to change this if the libpng version changes.
+ # See png.mak for more information.
+ 
+-SHARE_LIBPNG=0
++SHARE_LIBPNG=1
+ PNGSRCDIR=./libpng
+ LIBPNG_NAME=png
+ 
[email protected]@ -253,7 +253,7 @@
+ # Define the directory where the zlib sources are stored.
+ # See zlib.mak for more information.
+ 
+-SHARE_ZLIB=0
++SHARE_ZLIB=1
+ ZSRCDIR=./zlib
+ #ZLIB_NAME=gz
+ ZLIB_NAME=z
+--- ghostscript-9.20/base/unixansi.mak	2016-09-26 03:41:28.000000000 -0700
++++ ghostscript-9.20/base/unixansi.mak	2016-10-12 23:16:28.621061891 -0700
[email protected]@ -129,7 +129,7 @@
+ # some older JPEG streams that violate the standard. If the JPEG
+ # library built from local sources, the patch will be applied.
+ 
+-SHARE_JPEG=0
++SHARE_JPEG=1
+ JPEG_NAME=jpeg
+ 
+ # Define the directory where the PNG library sources are stored,
[email protected]@ -143,7 +143,7 @@
  # what its name is.
  # See gs.mak and Make.htm for more information.
  
@@ -29,7 +60,7 @@
  LIBPNG_NAME=png
  
  # Define whether to use a shared version of libtiff and where
[email protected]@ -173,7 +173,7 @@
[email protected]@ -165,7 +165,7 @@
  # what its name is (usually libz, but sometimes libgz).
  # See gs.mak and Make.htm for more information.
  
@@ -38,32 +69,3 @@
  #ZLIB_NAME=gz
  ZLIB_NAME=z
  
---- ghostscript-9.00/base/unixansi.mak.orig	Tue Jul 26 01:48:19 2011
-+++ ghostscript-9.00/base/unixansi.mak	Tue Jul 26 01:57:00 2011
[email protected]@ -123,7 +123,7 @@
- # some older JPEG streams that violate the standard. If the JPEG
- # library built from local sources, the patch will be applied.
- 
--SHARE_JPEG=0
-+SHARE_JPEG=1
- JPEG_NAME=jpeg
- 
- # Define the directory where the PNG library sources are stored,
[email protected]@ -137,7 +137,7 @@
- # what its name is.
- # See gs.mak and Make.htm for more information.
- 
--SHARE_LIBPNG=0
-+SHARE_LIBPNG=1
- LIBPNG_NAME=png
- 
- # Define whether to use a shared version of libtiff and where
[email protected]@ -158,7 +158,7 @@
- # what its name is (usually libz, but sometimes libgz).
- # See gs.mak and Make.htm for more information.
- 
--SHARE_ZLIB=0
-+SHARE_ZLIB=1
- #ZLIB_NAME=gz
- ZLIB_NAME=z
- 
--- a/components/ghostscript/patches/7003267.patch	Thu Mar 30 13:00:52 2017 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-*** ghostscript-8.64/base/Makefile.in.orig	Mon Nov 29 15:18:29 2010
---- ghostscript-8.64/base/Makefile.in	Mon Nov 29 15:20:15 2010
-***************
-*** 241,247 ****
-  # Define the added flags for standard, debugging, profiling 
-  # and shared object builds.
-  
-! [email protected][email protected]
-  CFLAGS_DEBUG=-g -O0
-  CFLAGS_PROFILE=-pg @[email protected]
-  [email protected][email protected]
---- 241,247 ----
-  # Define the added flags for standard, debugging, profiling 
-  # and shared object builds.
-  
-! CFLAGS_STANDARD=-xO2
-  CFLAGS_DEBUG=-g -O0
-  CFLAGS_PROFILE=-pg @[email protected]
-  [email protected][email protected]
--- a/components/ghostscript/patches/7103293.patch	Thu Mar 30 13:00:52 2017 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
---- ghostscript-9.00/jasper/src/libjasper/jpc/jpc_cs.c.orig	Wed Dec 14 13:09:06 2011
-+++ ghostscript-9.00/jasper/src/libjasper/jpc/jpc_cs.c	Wed Dec 14 13:09:20 2011
[email protected]@ -750,6 +750,10 @@
- 		return -1;
- 	}
- 	compparms->numrlvls = compparms->numdlvls + 1;
-+	if (compparms->numrlvls > JPC_MAXRLVLS) {
-+		jpc_cox_destroycompparms(compparms);
-+		return -1;
-+	}	
- 	if (prtflag) {
- 		for (i = 0; i < compparms->numrlvls; ++i) {
- 			if (jpc_getuint8(in, &tmp)) {
[email protected]@ -1340,7 +1344,7 @@
- 	jpc_crgcomp_t *comp;
- 	uint_fast16_t compno;
- 	crg->numcomps = cstate->numcomps;
--	if (!(crg->comps = jas_malloc(cstate->numcomps * sizeof(uint_fast16_t)))) {
-+	if (!(crg->comps = jas_malloc(cstate->numcomps * sizeof(jpc_crgcomp_t)))) {
- 		return -1;
- 	}
- 	for (compno = 0, comp = crg->comps; compno < cstate->numcomps;
--- a/components/ghostscript/patches/7152414.patch	Thu Mar 30 13:00:52 2017 -0700
+++ b/components/ghostscript/patches/7152414.patch	Thu Mar 30 20:50:08 2017 -0700
@@ -1,11 +1,15 @@
---- ghostscript-9.00/cups/gdevcups.c	Thu Aug 12 23:40:47 2010
-+++ gdevcups.c	Wed Mar  7 13:16:38 2012
[email protected]@ -3459,7 +3459,7 @@
-       sp = ((gx_device_printer *)pdev)->space_params;
+The patch has been taken from community and fixes Integer overflow.
+The details can be found in the following location
+https://bugs.ghostscript.com/show_bug.cgi?id=691733
+
+--- ghostscript-9.20/cups/gdevcups.c	2016-09-26 03:41:28.000000000 -0700
++++ ghostscript-9.20/cups/gdevcups.c	2016-10-13 21:48:22.080156040 -0700
[email protected]@ -3801,7 +3801,7 @@
  
-       if ((code = gdev_prn_maybe_realloc_memory((gx_device_printer *)pdev, &sp, 
+       if ((code = gdev_prn_maybe_realloc_memory((gx_device_printer *)pdev,
+                                                 &sp_old,
 -						width_old, height_old,
 +						width, height,
- 						cups->page_uses_transparency))
+ 						transp_old))
  	  < 0)
- 	return (code);
+         goto done;
--- a/components/ghostscript/patches/7201968.patch	Thu Mar 30 13:00:52 2017 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,82 +0,0 @@
-This is a known bug with ghostscript-9.00
-http://bugs.ghostscript.com/show_bug.cgi?id=691619
-======================================================================
---- ghostscript-9.00/base/gximag3x.c	Tue Aug 10 09:20:19 2010
-+++ ghostscript-9.00/base/gximag3x.c	Mon Oct  8 03:56:41 2012
[email protected]@ -546,6 +546,12 @@
- 	return_error(gs_error_VMerror);
-     gx_device_bbox_init(bbdev, dev, mem);
-     gx_device_bbox_fwd_open_close(bbdev, false);
-+
-+    if (dev->device_icc_profile) {
-+        bbdev->device_icc_profile = dev->device_icc_profile;
-+        rc_increment(bbdev->device_icc_profile);
-+    }
-+
-     code = dev_proc(bbdev, begin_typed_image)
- 	((gx_device *)bbdev, pis, pmat, pic, prect, pdcolor, pcpath, mem,
- 	 pinfo);
[email protected]@ -854,6 +860,11 @@
-     gx_device *pcdev = penum->pcdev;
-     int pcode = gx_image_end(penum->pixel.info, draw_last);
- 
-+    if (pcdev->device_icc_profile) {
-+        rc_decrement(pcdev->device_icc_profile, "gx_image3x_end_image");
-+        pcdev->device_icc_profile = NULL;
-+    }
-+
-     gs_closedevice(pcdev);
-     if (mdev0)
- 	gs_closedevice(mdev0);
---- ghostscript-9.00/base/gslib.c	Tue May  4 11:47:12 2010
-+++ ghostscript-9.00/base/gslib.c	Mon Oct  8 03:57:33 2012
[email protected]@ -178,6 +178,11 @@
- 	ht.spot_function = odsf;
- 	gs_setscreen(pgs, &ht);
-     }
-+
-+    code = gsicc_init_device_profile(pgs, dev);
-+    if (code < 0)
-+        return code;
-+
-     /* gsave and grestore (among other places) assume that */
-     /* there are at least 2 gstates on the graphics stack. */
-     /* Ensure that now. */
[email protected]@ -197,6 +202,11 @@
- 	dprintf1("**** Test returned code = %d.\n", code);
-     dputs("Done.  Press <enter> to exit.");
-     fgetc(mem->gs_lib_ctx->fstdin);
-+    if (dev->device_icc_profile) {
-+        rc_decrement(dev->device_icc_profile, "gslib main");
-+        dev->device_icc_profile = NULL;
-+    }
-+
-     gs_lib_finit(0, 0, mem);
-     return 0;
- #undef mem
---- ghostscript-9.00/base/gdevvec.c	Thu Dec  3 16:33:04 2009
-+++ ghostscript-9.00/base/gdevvec.c	Mon Oct  8 03:34:56 2012
[email protected]@ -326,6 +326,11 @@
- 		     dev_proc(vdev, get_initial_matrix));
- 	(*dev_proc(vdev->bbox_device, open_device))
- 	    ((gx_device *) vdev->bbox_device);
-+
-+	if (vdev->device_icc_profile) {
-+	    vdev->bbox_device->device_icc_profile = vdev->device_icc_profile;
-+	    rc_increment(vdev->bbox_device->device_icc_profile);
-+	}
-     }
-     return 0;
- }
[email protected]@ -802,6 +807,11 @@
-     FILE *f = vdev->file;
-     int err;
- 
-+    if (vdev->bbox_device && vdev->bbox_device->device_icc_profile) {
-+        rc_decrement(vdev->bbox_device->device_icc_profile, "gdev_vector_close_file");
-+        vdev->bbox_device->device_icc_profile = NULL;
-+    }
-+
-     gs_free_object(vdev->v_memory, vdev->bbox_device,
- 		   "vector_close(bbox_device)");
-     vdev->bbox_device = 0;