[Midnightbsd-cvs] mports: print/ghostscript-gpl: Update to 8.56.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri May 16 17:42:44 EDT 2008


Log Message:
-----------
Update to 8.56.  This is very old, but still much newer than what we had in ports before.  I'm having trouble getting newer versions working.  This also uses gtk2 now.

Modified Files:
--------------
    mports/print/ghostscript-gpl:
        Makefile (r1.4 -> r1.5)
        Makefile.inc (r1.2 -> r1.3)
        distinfo (r1.1 -> r1.2)
        pkg-plist (r1.1 -> r1.2)
    mports/print/ghostscript-gpl/files:
        patch-lib::gs_ttf.ps (r1.1 -> r1.2)
        patch-lib:gs_init.ps (r1.1 -> r1.2)
        patch-lips:gdevl4r.c (r1.1 -> r1.2)
        patch-lips:gdevl4v.c (r1.1 -> r1.2)
        patch-lxm3200:gdevlx32.c (r1.1 -> r1.2)
        patch-md2k:gdevmd2k.c (r1.1 -> r1.2)
        patch-mjc:gdevmjc.c (r1.1 -> r1.2)
        patch-src-gdevdmpr.c (r1.1 -> r1.2)
        patch-src-gdevijs.c (r1.1 -> r1.2)
        patch-src:fapi_ft.c (r1.1 -> r1.2)
        patch-src:gdevcd8.c (r1.1 -> r1.2)
        patch-src:gdevdj9.c (r1.1 -> r1.2)
        patch-src:gdevgdi.c (r1.1 -> r1.2)
        patch-src:gdevlx50.c (r1.1 -> r1.2)
        patch-src:gxobj.h (r1.1 -> r1.2)
        patch-src:unix-gcc.mak (r1.1 -> r1.2)
    mports/print/ghostscript-gpl/scripts:
        configure (r1.1 -> r1.2)

Added Files:
-----------
    mports/print/ghostscript-gpl/files:
        gdevhl12-hl1250.mak (r1.1)
        patch-alps__gdevalps.c (r1.1)
        patch-epag__gdevepag.c (r1.1)
        patch-gdev10v__gdev10v.c (r1.1)
        patch-jbig2dec__os_types.h (r1.1)
        patch-lex7000__src__gdevlx7.c (r1.1)
        patch-lib__ps2epsi.CAN-2004-0967 (r1.1)
        patch-lib__pv.sh.CAN-2004-0967 (r1.1)
        patch-lips__gdevespg.c (r1.1)
        patch-lips__gdevlprn.c (r1.1)
        patch-lips__gdevnpdl.c (r1.1)
        patch-lips__gdevrpdl.c (r1.1)
        patch-pcl3__eprn__gdeveprn.c (r1.1)
        patch-src:gdevhl12.c (r1.1)
        patch-src__gdevperm.c (r1.1)
        patch-src_cpca_mk_cmd.c (r1.1)

Removed Files:
-------------
    mports/print/ghostscript-gpl/files:
        e-patch-src-gdevdmpr.c
        patch-src:zmedia2.c

-------------- next part --------------
Index: Makefile.inc
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/Makefile.inc,v
retrieving revision 1.2
retrieving revision 1.3
diff -L print/ghostscript-gpl/Makefile.inc -L print/ghostscript-gpl/Makefile.inc -u -r1.2 -r1.3
--- print/ghostscript-gpl/Makefile.inc
+++ print/ghostscript-gpl/Makefile.inc
@@ -1,6 +1,6 @@
 # $FreeBSD: ports/print/ghostscript-gpl/Makefile.inc,v 1.15 2006/03/07 08:27:20 ade Exp $
 # $MidnightBSD$
 
-GS_VERSION=	8.15
-GS_REVISION=	2
+GS_VERSION=	8.56
+GS_REVISION=	0
 GS_EPOCH=	0
Index: pkg-plist
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/pkg-plist,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/pkg-plist -L print/ghostscript-gpl/pkg-plist -u -r1.1 -r1.2
--- print/ghostscript-gpl/pkg-plist
+++ print/ghostscript-gpl/pkg-plist
@@ -1,5 +1,6 @@
- at comment $FreeBSD: ports/print/ghostscript-gpl/pkg-plist,v 1.40 2006/01/22 02:48:50 edwin Exp $
+ at comment $FreeBSD: ports/print/ghostscript-gpl/pkg-plist,v 1.41 2007/03/27 19:59:20 rafan Exp $
 bin/bdftops
+bin/dumphint
 bin/dvipdf
 bin/eps2eps
 bin/ert
@@ -30,11 +31,15 @@
 bin/ps2pdf14
 bin/ps2pdfwr
 bin/ps2ps
+bin/ps2ps2
 bin/pv.sh
 bin/unix-lpr.sh
 bin/wftopfa
+%%SHLIB%%include/ghostscript/iapi.h
+%%SHLIB%%include/ghostscript/ierrors.h
 %%SHLIB%%lib/libgs.so
 %%SHLIB%%lib/libgs.so.%%SHLIB_VER%%
+%%SHLIB%%lib/libgs.so.%%GS_VERSION%%
 %%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/alps/README.gdevalps
 %%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/bj10v/gdev10v.jis
 %%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/dmprt/gdevdmpr.sj
@@ -81,18 +86,37 @@
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Add-RKSJ-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Add-RKSJ-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Add-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-CNS1-0
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-CNS1-1
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-CNS1-2
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-CNS1-3
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-CNS1-4
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-CNS1-5
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-CNS1-B5pc
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-CNS1-ETenms-B5
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-CNS1-H-CID
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-CNS1-H-Host
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-CNS1-H-Mac
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-CNS1-UCS2
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-GB1-0
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-GB1-1
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-GB1-2
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-GB1-3
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-GB1-4
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-GB1-5
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-GB1-GBK-EUC
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-GB1-GBpc-EUC
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-GB1-H-CID
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-GB1-H-Host
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-GB1-H-Mac
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-GB1-UCS2
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-0
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-1
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-2
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-3
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-4
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-5
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-6
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-90ms-RKSJ
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-90pv-RKSJ
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-H-CID
@@ -101,17 +125,36 @@
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-PS-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-PS-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-UCS2
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Japan2-0
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Korea1-0
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Korea1-1
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Korea1-2
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Korea1-H-CID
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Korea1-H-Host
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Korea1-H-Mac
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Korea1-KSCms-UHC
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Korea1-KSCpc-EUC
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Adobe-Korea1-UCS2
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/B5-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/B5-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/B5pc-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/B5pc-UCS2
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/B5pc-UCS2C
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/B5pc-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS-EUC-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS-EUC-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS01-RKSJ-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS02-RKSJ-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS03-RKSJ-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS04-RKSJ-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS05-RKSJ-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS06-RKSJ-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS07-RKSJ-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS1-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS1-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS15-RKSJ-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS2-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/CNS2-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/ETHK-B5-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/ETHK-B5-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/ETen-B5-H
@@ -127,6 +170,9 @@
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Ext-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GB-EUC-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GB-EUC-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GB-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GB-RKSJ-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GB-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBK-EUC-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBK-EUC-UCS2
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBK-EUC-V
@@ -136,11 +182,17 @@
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBKp-EUC-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBT-EUC-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBT-EUC-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBT-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBT-RKSJ-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBT-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBTpc-EUC-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBTpc-EUC-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBpc-EUC-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBpc-EUC-UCS2
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBpc-EUC-UCS2C
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/GBpc-EUC-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/HK-RKSJ-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/HKdla-B5-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/HKdla-B5-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/HKdlb-B5-H
@@ -155,12 +207,23 @@
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/HKscs-B5-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Hankaku
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Hiragana
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Hojo-EUC-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Hojo-EUC-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Hojo-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Hojo-RKSJ-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Hojo-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Identity-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Identity-UTF16-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Identity-UTF16-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Identity-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSC-EUC-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSC-EUC-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSC-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSC-Johab-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSC-Johab-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSC-RKSJ-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSC-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSC2-RKSJ-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSCms-UHC-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSCms-UHC-HW-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSCms-UHC-HW-V
@@ -169,45 +232,91 @@
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSCpc-EUC-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSCpc-EUC-UCS2
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSCpc-EUC-UCS2C
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/KSCpc-EUC-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Katakana
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/NWP-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/NWP-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/RKSJ-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/RKSJ-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/Roman
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/TCVN-RKSJ-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UCS2-90ms-RKSJ
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UCS2-90pv-RKSJ
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UCS2-B5pc
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UCS2-ETen-B5
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UCS2-GBK-EUC
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UCS2-GBpc-EUC
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UCS2-KSCms-UHC
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UCS2-KSCpc-EUC
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniCNS-UCS2-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniCNS-UCS2-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniCNS-UTF16-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniCNS-UTF16-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniCNS-UTF32-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniCNS-UTF32-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniCNS-UTF8-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniCNS-UTF8-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniGB-UCS2-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniGB-UCS2-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniGB-UTF16-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniGB-UTF16-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniGB-UTF32-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniGB-UTF32-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniGB-UTF8-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniGB-UTF8-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniHojo-UCS2-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniHojo-UCS2-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniHojo-UTF16-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniHojo-UTF16-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniHojo-UTF32-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniHojo-UTF32-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniHojo-UTF8-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniHojo-UTF8-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJIS-UCS2-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJIS-UCS2-HW-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJIS-UCS2-HW-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJIS-UCS2-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJIS-UTF16-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJIS-UTF16-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJIS-UTF32-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJIS-UTF32-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJIS-UTF8-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJIS-UTF8-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJISPro-UCS2-HW-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJISPro-UCS2-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJISPro-UTF8-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJISX0213-UTF32-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniJISX0213-UTF32-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniKS-UCS2-H
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniKS-UCS2-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniKS-UTF16-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniKS-UTF16-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniKS-UTF32-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniKS-UTF32-V
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniKS-UTF8-H
+%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/UniKS-UTF8-V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/V
 %%DATADIR%%/%%GS_VERSION%%/Resource/CMap/WP-Symbol
 %%DATADIR%%/%%GS_VERSION%%/Resource/ColorSpace/DefaultCMYK
 %%DATADIR%%/%%GS_VERSION%%/Resource/ColorSpace/DefaultGray
 %%DATADIR%%/%%GS_VERSION%%/Resource/ColorSpace/DefaultRGB
+%%DATADIR%%/%%GS_VERSION%%/Resource/ColorSpace/TrivialCMYK
+%%DATADIR%%/%%GS_VERSION%%/Resource/Decoding/FCO_Dingbats
+%%DATADIR%%/%%GS_VERSION%%/Resource/Decoding/FCO_Symbol
+%%DATADIR%%/%%GS_VERSION%%/Resource/Decoding/FCO_Unicode
+%%DATADIR%%/%%GS_VERSION%%/Resource/Decoding/FCO_Wingdings
 %%DATADIR%%/%%GS_VERSION%%/Resource/Decoding/Latin1
 %%DATADIR%%/%%GS_VERSION%%/Resource/Decoding/StandardEncoding
 %%DATADIR%%/%%GS_VERSION%%/Resource/Decoding/Unicode
+%%DATADIR%%/%%GS_VERSION%%/Resource/Encoding/Wingdings
 %%DATADIR%%/%%GS_VERSION%%/doc/API.htm
-%%DATADIR%%/%%GS_VERSION%%/doc/Bug-form.htm
-%%DATADIR%%/%%GS_VERSION%%/doc/Bug-info.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/C-style.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Changes.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Commprod.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/DLL.htm
+%%DATADIR%%/%%GS_VERSION%%/doc/Deprecated.htm
+%%DATADIR%%/%%GS_VERSION%%/doc/Details.htm
+%%DATADIR%%/%%GS_VERSION%%/doc/Details8.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Develop.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Devices.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Drivers.htm
@@ -220,32 +329,34 @@
 %%DATADIR%%/%%GS_VERSION%%/doc/History4.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/History5.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/History6.htm
+%%DATADIR%%/%%GS_VERSION%%/doc/History7.htm
+%%DATADIR%%/%%GS_VERSION%%/doc/History8.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Htmstyle.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Humor.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Install.htm
+%%DATADIR%%/%%GS_VERSION%%/doc/Issues.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Language.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Lib.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Maintain.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Make.htm
-%%DATADIR%%/%%GS_VERSION%%/doc/New-user.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/News.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Projects.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Ps-style.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Ps2epsi.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Ps2pdf.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Psfiles.htm
-%%DATADIR%%/%%GS_VERSION%%/doc/Public.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/README
 %%DATADIR%%/%%GS_VERSION%%/doc/Readme.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Release.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Source.htm
-%%DATADIR%%/%%GS_VERSION%%/doc/Tester.htm
+%%DATADIR%%/%%GS_VERSION%%/doc/Testing.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Unix-lpr.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Use.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/Xfonts.htm
 %%DATADIR%%/%%GS_VERSION%%/doc/gs.css
 %%DATADIR%%/%%GS_VERSION%%/doc/index.html
 %%DATADIR%%/%%GS_VERSION%%/examples/alphabet.ps
+%%DATADIR%%/%%GS_VERSION%%/examples/annots.pdf
 %%DATADIR%%/%%GS_VERSION%%/examples/chess.ps
 %%DATADIR%%/%%GS_VERSION%%/examples/colorcir.ps
 %%DATADIR%%/%%GS_VERSION%%/examples/doretree.ps
@@ -257,11 +368,11 @@
 %%DATADIR%%/%%GS_VERSION%%/examples/tiger.eps
 %%DATADIR%%/%%GS_VERSION%%/examples/vasarely.ps
 %%DATADIR%%/%%GS_VERSION%%/examples/waterfal.ps
-%%DATADIR%%/%%GS_VERSION%%/lib/FAPIcidfmap
-%%DATADIR%%/%%GS_VERSION%%/lib/FAPIconfig
-%%DATADIR%%/%%GS_VERSION%%/lib/FAPIfontmap
+%%DATADIR%%/%%GS_VERSION%%/lib/FCOfontmap-PCLPS2
 %%DATADIR%%/%%GS_VERSION%%/lib/Fontmap
 %%DATADIR%%/%%GS_VERSION%%/lib/Fontmap.GS
+%%DATADIR%%/%%GS_VERSION%%/lib/PDFA_def.ps
+%%DATADIR%%/%%GS_VERSION%%/lib/PDFX_def.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/acctest.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/addxchar.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/align.ps
@@ -303,7 +414,7 @@
 %%DATADIR%%/%%GS_VERSION%%/lib/dnj750c.upp
 %%DATADIR%%/%%GS_VERSION%%/lib/dnj750m.upp
 %%DATADIR%%/%%GS_VERSION%%/lib/docie.ps
-%%DATADIR%%/%%GS_VERSION%%/lib/errpage.ps
+%%DATADIR%%/%%GS_VERSION%%/lib/dumphint.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/escp_24.src
 %%DATADIR%%/%%GS_VERSION%%/lib/font2c.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/font2pcl.ps
@@ -312,6 +423,7 @@
 %%DATADIR%%/%%GS_VERSION%%/lib/gs_btokn.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/gs_ccfnt.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/gs_ce_e.ps
+%%DATADIR%%/%%GS_VERSION%%/lib/gs_cet.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/gs_cff.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/gs_cidcm.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/gs_ciddc.ps
@@ -378,7 +490,6 @@
 %%DATADIR%%/%%GS_VERSION%%/lib/gs_setpd.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/gs_statd.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/gs_std_e.ps
-%%DATADIR%%/%%GS_VERSION%%/lib/gs_stres.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/gs_sym_e.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/gs_t.xbm
 %%DATADIR%%/%%GS_VERSION%%/lib/gs_t.xpm
@@ -406,8 +517,10 @@
 %%DATADIR%%/%%GS_VERSION%%/lib/lqx70cm.upp
 %%DATADIR%%/%%GS_VERSION%%/lib/markhint.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/markpath.ps
+%%DATADIR%%/%%GS_VERSION%%/lib/mkcidfm.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/necp2x.upp
 %%DATADIR%%/%%GS_VERSION%%/lib/necp2x6.upp
+%%DATADIR%%/%%GS_VERSION%%/lib/opdfread.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/packfile.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/pcharstr.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/pdf2dsc.ps
@@ -423,6 +536,8 @@
 %%DATADIR%%/%%GS_VERSION%%/lib/pf2afm.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/pfbtopfa.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/ppath.ps
+%%DATADIR%%/%%GS_VERSION%%/lib/pphs
+%%DATADIR%%/%%GS_VERSION%%/lib/pphs.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/prfont.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/printafm.ps
 %%DATADIR%%/%%GS_VERSION%%/lib/ps2ai.ps
@@ -506,10 +621,12 @@
 %%DATADIR%%/%%GS_VERSION%%/pcl3/margins-LetterRotated.ps
 @exec ln -s -f %D/share/fonts/CIDFont %%CIDFONTDIR%%/CIDFont
 @unexec rm -f %%CIDFONTDIR%%/CIDFont
+%%SHLIB%%@dirrm include/ghostscript
 @dirrm %%DATADIR%%/%%GS_VERSION%%/pcl3
 @dirrm %%DATADIR%%/%%GS_VERSION%%/lib
 @dirrm %%DATADIR%%/%%GS_VERSION%%/examples
 @dirrm %%DATADIR%%/%%GS_VERSION%%/doc
+ at dirrm %%DATADIR%%/%%GS_VERSION%%/Resource/Encoding
 @dirrm %%DATADIR%%/%%GS_VERSION%%/Resource/Decoding
 @dirrm %%DATADIR%%/%%GS_VERSION%%/Resource/ColorSpace
 @dirrm %%DATADIR%%/%%GS_VERSION%%/Resource/CMap
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/Makefile,v
retrieving revision 1.4
retrieving revision 1.5
diff -L print/ghostscript-gpl/Makefile -L print/ghostscript-gpl/Makefile -u -r1.4 -r1.5
--- print/ghostscript-gpl/Makefile
+++ print/ghostscript-gpl/Makefile
@@ -21,6 +21,7 @@
 		http://www.ucatv.ne.jp/~taeko/software/gs/:lips \
 		http://www.humblesoft.com/pub/:epag \
 		${MASTER_SITE_FREEBSD_LOCAL}:eplaser \
+		http://www.openprinting.org/download/printing/ghostscript-8.x/drivers/hl1250/:hl1250 \
 		http://www.linuxprinting.org/download/printing/samsung-gdi/:gdi \
 		http://www.linuxprinting.org/download/printing/:lxm3200 \
 		http://homepage.powerup.com.au/~pbwest/lexmark/:lx5000 \
@@ -47,25 +48,27 @@
 		${GDI_SRCS}:gdi \
 		${LXM3200_SRCS}:lxm3200 \
 		${LX5000_SRCS}:lx5000 \
-		${LEX7000_SRCS}:lx5000
+		${LEX7000_SRCS}:lx5000 \
+		${HL1250_SRCS}:hl1250
 DIST_SUBDIR=	ghostscript
 EXTRACT_ONLY=	${GS_SRCS}
 
 MAINTAINER=	ports at MidnightBSD.org
 COMMENT=	GPL Postscript interpreter
-
 LICENSE=	gpl2
 
 LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg \
 		png.5:${PORTSDIR}/graphics/png
 RUN_DEPENDS=	${LOCALBASE}/share/ghostscript/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
 
-# normazile WRKSRC so things like cups-pstoraster may work
-WRKSRC=		${WRKDIR}/${PORTNAME}
+FAKE_OPTS=	trueprefix
 
 CONFLICTS=	ghostscript-afpl*
 USE_BZIP2=	yes
 USE_GMAKE=	yes
+CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd6.0 \
+			--host=${ARCH}-portbld-freebsd6.0 \
+			--target=${ARCH}-portbld-freebsd6.0
 MAKE_ENV=	CC="${CC}" CXX="${CXX}" CFLAGS_STANDARD="${CFLAGS}" \
 		XCFLAGS="${XCFLAGS}"
 PLIST_SUB=	GS_VERSION="${GS_VERSION}" \
@@ -86,7 +89,7 @@
 		ps2pdf.1 ps2pdf13.1 \
 		ps2ps.1 eps2eps.1
 
-XCFLAGS=	-DUPD_SIGNAL=0 -DSTDINT_TYPES_DEFINED=1
+XCFLAGS=	-DUPD_SIGNAL=0 -DHAVE_HYPOT=1 -DSYS_TYPES_HAS_STDINT_TYPES=1
 
 .if defined(A4)
 XCFLAGS+=	-DA4
@@ -95,7 +98,7 @@
 .if defined(WITHOUT_X11)
 PKGNAMESUFFIX:=	${PKGNAMESUFFIX}-nox11
 .else
-USE_XLIB=	yes
+USE_ORG=	xt xext
 .endif
 
 .if defined(WITH_SVGALIB)
@@ -109,13 +112,12 @@
 
 .if defined(WITH_SHLIB)
 .undef WITHOUT_X11
-USE_GNOME=	gtk12
-MAKE_ENV+=	GS_SHLIB_VER="${SHLIB_VER}"
+USE_GNOME=	gtk20
 ALL_TARGET=	so pcl3opts
 INSTALL_TARGET=	soinstall
 USE_LDCONFIG=	yes
-SHLIB_VER=	1
-PLIST_SUB+=	SHLIB="" SHLIB_VER="${SHLIB_VER}"
+PLIST_SUB+=	SHLIB="" SHLIB_VER="${GS_VERSION:R}"
+INCLUDEDIR=	${PREFIX}/include/ghostscript
 .else
 ALL_TARGET=	all pcl3opts
 PLIST_SUB+=	SHLIB="@comment "
@@ -133,6 +135,7 @@
 
 # PCL3 - additional driver for HP PCL3 printers, by Martin Lottermoser
 # http://home.vrweb.de/martin.lottermoser/pcl3.html
+# broken
 PCL3=		pcl3
 PCL3_VERS=	3.3
 PCL3_NAME=	${PCL3}-${PCL3_VERS}
@@ -231,6 +234,10 @@
 LEX7000=	lex7000
 LEX7000_SRCS=	gs6.0.lexmark7000.patch
 
+# HL1250 - additional driver for Brother HL-1050/1070/1250/1270N/1030/1240
+HL1250=		hl1250
+HL1250_SRCS=	gdevhl12.c
+
 # contributed uniprint profiles
 CONTRIB_UPP=	lqx70ch.upp lqx70cl.upp lqx70cm.upp \
 		stc740ih.upp stc740p.upp stc740pl.upp
@@ -248,8 +255,6 @@
 
 post-extract:
 	${ECHO_MSG} ">>> in post-extract ..."
-# normazile WRKSRC so things like cups-pstoraster may work
-	${LN} -sf ${WRKDIR}/${DISTNAME} ${WRKDIR}/${PORTNAME}
 # ** 3rd party driver **
 # Note: don't forget to add those devices in scripts/configure,
 # which update unix-gcc.mak to build gs with these new devices!
@@ -298,6 +303,7 @@
 # for EPAG driver
 	${ECHO_MSG} ">>>   extracting ${EPAG_SRCS} ..."
 	${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${EPAG_SRCS}
+	${LN} -sf ${EPAG_NAME} ${WRKSRC}/${EPAG}
 # for EPLASER driver
 	${ECHO_MSG} ">>>   extracting ${EPLASER_SRCS} ..."
 	${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${EPLASER_SRCS}
@@ -322,6 +328,10 @@
 	${CAT} ${DISTDIR}/${DIST_SUBDIR}/${LEX7000_SRCS} | \
 		${PATCH} -d ${WRKSRC}/${LEX7000} -f -s -N -E -p1 \
 		2>/dev/null || ${TRUE}
+# for HL1250 driver
+	${ECHO_MSG} ">>>   extracting ${HL1250_SRCS} ..."
+	${MKDIR} ${WRKSRC}/${HL1250}
+	${CP} ${DISTDIR}/${DIST_SUBDIR}/${HL1250_SRCS} ${WRKSRC}/src
 
 post-patch:
 	${REINPLACE_CMD} -e 's|^DEVICE_DEVS|#DEVICE_DEVS|g' \
@@ -341,14 +351,14 @@
 	${ECHO_MSG} ">>>   adding ${HP8XX} driver to contrib.mak ..."
 	${CAT} ${FILESDIR}/cdj850.contrib.mak \
 		>> ${WRKSRC}/src/contrib.mak
-# for DJ970 driver
-	${ECHO_MSG} ">>>   adding ${DJ970} driver to contrib.mak ..."
-	${CAT} ${FILESDIR}/dj970.contrib.mak \
-		>> ${WRKSRC}/src/contrib.mak
 # for PCL3 driver
 	${ECHO_MSG} ">>>   adding ${PCL3} driver to contrib.mak ..."
 	${CAT} ${WRKSRC}/${PCL3_NAME}/src/contrib.mak-7.00.add \
 		>> ${WRKSRC}/src/contrib.mak
+# for DJ970 driver
+	${ECHO_MSG} ">>>   adding ${DJ970} driver to contrib.mak ..."
+	${CAT} ${FILESDIR}/dj970.contrib.mak \
+		>> ${WRKSRC}/src/contrib.mak
 # for MD2K driver
 	${ECHO_MSG} ">>>   adding ${MD2K} driver to contrib.mak ..."
 	${CAT} ${WRKSRC}/${MD2K_NAME}/gdevmd2k.mak-5.50 \
@@ -407,6 +417,15 @@
 	${ECHO_MSG} ">>>   adding ${LEX7000} driver to contrib.mak ..."
 	${CAT} ${FILESDIR}/lex7000.contrib.mak \
 		>> ${WRKSRC}/src/contrib.mak
+# for HL1250 driver
+	${ECHO_MSG} ">>>   adding ${HL1250} driver to contrib.mak ..."
+	${CAT} ${FILESDIR}/gdevhl12-hl1250.mak \
+		>> ${WRKSRC}/src/contrib.mak
+ 
+post-configure:
+	${ECHO_MSG} ">>> in post-configure ..."
+	cd ${WRKSRC}/jasper ; \
+		${SETENV} ${MAKE_ENV} ${SH} ./configure --build=${ARCH}-mports-freebsd6.0
 
 pre-build:
 	${ECHO_MSG} ">>> in pre-build ..."
@@ -479,11 +498,16 @@
 		${WRKSRC}/freetype/objs/freetype214MT_D.a
 .endif
 
-pre-su-install:
+pre-install:
 	${ECHO_MSG} ">>> in pre-install ..."
 	${ECHO_MSG} ">>>   creating ghostscript destdir ..."
-	${MKDIR} ${DATADIR}
+	${MKDIR} ${DATADIR}/${GS_VERSION}/examples
+	${MKDIR} ${CIDFONTDIR}
 	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
+.if defined(WITH_SHLIB)
+	${MKDIR} ${INCLUDEDIR}
+	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INCLUDEDIR}
+.endif
 
 post-install:
 	${ECHO_MSG} ">>> in post-install ..."
@@ -492,6 +516,9 @@
 .if defined(WITH_SHLIB)
 	${STRIP_CMD} ${PREFIX}/bin/gsc ${PREFIX}/bin/gsx
 	${LN} -sf gsc ${PREFIX}/bin/gs
+.for i in iapi.h ierrors.h
+	${INSTALL_DATA} ${WRKSRC}/src/${i} ${INCLUDEDIR}
+.endfor
 .else
 	${STRIP_CMD} ${PREFIX}/bin/gs
 .endif
Index: distinfo
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/distinfo,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/distinfo -L print/ghostscript-gpl/distinfo -u -r1.1 -r1.2
--- print/ghostscript-gpl/distinfo
+++ print/ghostscript-gpl/distinfo
@@ -1,6 +1,6 @@
-MD5 (ghostscript/ghostscript-8.15.tar.bz2) = ab8502f30629b730e0c9ca56b88a6b9d
-SHA256 (ghostscript/ghostscript-8.15.tar.bz2) = 1a4954e223bac832458655b2fea3a0dafa006b18716ac9561c48139d3da15736
-SIZE (ghostscript/ghostscript-8.15.tar.bz2) = 6931694
+MD5 (ghostscript/ghostscript-8.56.tar.bz2) = 498015a278308d147bea563be2c5165e
+SHA256 (ghostscript/ghostscript-8.56.tar.bz2) = 6b61f82e464a6e05bac017c9d0e22a01ea7be229cdbf92d303114cc194e77b2d
+SIZE (ghostscript/ghostscript-8.56.tar.bz2) = 12224304
 MD5 (ghostscript/gdevcd8.tar.gz) = 5ce48bff6082a023199c8ede4aae63a0
 SHA256 (ghostscript/gdevcd8.tar.gz) = f52656a951e402f3775fdf09087944dba6f7a58edff17ce350692cee101cccf9
 SIZE (ghostscript/gdevcd8.tar.gz) = 24803
@@ -52,3 +52,6 @@
 MD5 (ghostscript/gs6.0.lexmark7000.patch) = fd5018c18351bf64805fe5727be196de
 SHA256 (ghostscript/gs6.0.lexmark7000.patch) = 509dfc02436639ce6b9f98465ec306dd2e7f9342feded043c78b0c9cf44021df
 SIZE (ghostscript/gs6.0.lexmark7000.patch) = 27361
+MD5 (ghostscript/gdevhl12.c) = 277c5ddac9c6fb0e2897e95265eb1ff1
+SHA256 (ghostscript/gdevhl12.c) = 0abaa60cbe950b9c923753a687181b775910ecff0848917641e281737f03527a
+SIZE (ghostscript/gdevhl12.c) = 22001
--- /dev/null
+++ print/ghostscript-gpl/files/patch-lips__gdevlprn.c
@@ -0,0 +1,35 @@
+--- lips/gdevlprn.c.orig	Thu Nov  2 12:09:18 2000
++++ lips/gdevlprn.c	Fri Dec 17 19:21:08 2004
+@@ -219,13 +219,13 @@
+     maxBy = (pdev->height + lprn->nBh - 1) / lprn->nBh;
+     maxY = lprn->BlockLine / lprn->nBh * lprn->nBh;
+ 
+-    if (!(lprn->ImageBuf = gs_malloc(bpl, maxY, "lprn_print_image(ImageBuf)")))
++    if (!(lprn->ImageBuf = gs_malloc(pdev->memory, bpl, maxY, "lprn_print_image(ImageBuf)")))
+ 	return_error(gs_error_VMerror);
+-    if (!(lprn->TmpBuf = gs_malloc(bpl, maxY, "lprn_print_iamge(TmpBuf)")))
++    if (!(lprn->TmpBuf = gs_malloc(pdev->memory, bpl, maxY, "lprn_print_iamge(TmpBuf)")))
+ 	return_error(gs_error_VMerror);
+-    if (!(lprn->bubbleTbl = gs_malloc(sizeof(Bubble *), maxBx, "lprn_print_image(bubbleTbl)")))
++    if (!(lprn->bubbleTbl = gs_malloc(pdev->memory, sizeof(Bubble *), maxBx, "lprn_print_image(bubbleTbl)")))
+ 	return_error(gs_error_VMerror);
+-    if (!(bubbleBuffer = gs_malloc(sizeof(Bubble), maxBx, "lprn_print_image(bubbleBuffer)")))
++    if (!(bubbleBuffer = gs_malloc(pdev->memory, sizeof(Bubble), maxBx, "lprn_print_image(bubbleBuffer)")))
+ 	return_error(gs_error_VMerror);
+ 
+     for (i = 0; i < maxBx; i++)
+@@ -261,10 +261,10 @@
+     }
+     lprn_bubble_flush_all(pdev, fp);	/* flush the rest of bubble */
+ 
+-    gs_free(lprn->ImageBuf, bpl, maxY, "lprn_print_image(ImageBuf)");
+-    gs_free(lprn->TmpBuf, bpl, maxY, "lprn_print_iamge(TmpBuf)");
+-    gs_free(lprn->bubbleTbl, sizeof(Bubble *), maxBx, "lprn_print_image(bubbleTbl)");
+-    gs_free(bubbleBuffer, sizeof(Bubble), maxBx, "lprn_print_image(bubbleBuffer)");
++    gs_free(pdev->memory, lprn->ImageBuf, bpl, maxY, "lprn_print_image(ImageBuf)");
++    gs_free(pdev->memory, lprn->TmpBuf, bpl, maxY, "lprn_print_iamge(TmpBuf)");
++    gs_free(pdev->memory, lprn->bubbleTbl, sizeof(Bubble *), maxBx, "lprn_print_image(bubbleTbl)");
++    gs_free(pdev->memory, bubbleBuffer, sizeof(Bubble), maxBx, "lprn_print_image(bubbleBuffer)");
+ 
+     return code;
+ }
--- /dev/null
+++ print/ghostscript-gpl/files/patch-jbig2dec__os_types.h
@@ -0,0 +1,11 @@
+--- jbig2dec/os_types.h.orig	Thu Dec 29 04:56:24 2005
++++ jbig2dec/os_types.h	Sun May 28 01:10:59 2006
+@@ -47,7 +47,7 @@
+ 
+ #if defined(HAVE_STDINT_H) || defined(__MACOS__)
+ # include <stdint.h>
+-#elif defined(__VMS)
++#elif defined(__VMS) || defined(__FreeBSD__)
+ # include <inttypes.h>
+ #endif
+ 
Index: patch-lxm3200:gdevlx32.c
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c -L print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c
+++ print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c
@@ -1,5 +1,5 @@
 --- lxm3200/gdevlx32.c.orig	Wed Apr 23 01:06:20 2003
-+++ lxm3200/gdevlx32.c	Thu May 15 08:24:08 2003
++++ lxm3200/gdevlx32.c	Thu May 26 00:11:50 2005
 @@ -422,9 +422,11 @@
   * of the nearest color.
   */
@@ -23,3 +23,33 @@
  			break;
  	}
  
+@@ -732,10 +734,10 @@
+ 	/* Allocate memory for the buffers and
+ 	 * verify that the allocation was done properly.
+ 	 */
+-	gendata.scanbuf = (byte *)gs_malloc(gendata.numbytes, gendata.numblines, 
++	gendata.scanbuf = (byte *)gs_malloc(pdev->memory, gendata.numbytes, gendata.numblines, 
+ 																			"lxm3200_print_page(scanbuf)");
+ 
+-	gendata.outdata = (byte *)gs_malloc(gendata.numbytes, 30, 
++	gendata.outdata = (byte *)gs_malloc(pdev->memory, gendata.numbytes, 30, 
+ 																			"lxm3200_print_page(outdata)");
+  
+ 	if(gendata.scanbuf == NULL || 
+@@ -943,12 +945,14 @@
+ private void
+ freeresources(void)
+ {
++	gx_device *pdev;
++
+ 	if(gendata.scanbuf)
+-		gs_free((char *)gendata.scanbuf, gendata.numbytes, gendata.numblines,
++		gs_free(pdev->memory, (char *)gendata.scanbuf, gendata.numbytes, gendata.numblines,
+ 						"lxm3200:freeresources(scanbuf)");
+ 
+ 	if(gendata.outdata)
+-		gs_free((char *)gendata.outdata, gendata.numbytes, 30, 
++		gs_free(pdev->memory, (char *)gendata.outdata, gendata.numbytes, 30, 
+ 						"lxm3200:freeresources(outdata)");
+ }
+ 
Index: patch-src:unix-gcc.mak
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-src:unix-gcc.mak,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-src:unix-gcc.mak -L print/ghostscript-gpl/files/patch-src:unix-gcc.mak -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-src:unix-gcc.mak
+++ print/ghostscript-gpl/files/patch-src:unix-gcc.mak
@@ -1,6 +1,6 @@
---- src/unix-gcc.mak.orig	Thu Oct 24 21:57:57 2002
-+++ src/unix-gcc.mak	Sun Nov 17 22:01:58 2002
-@@ -24,14 +24,15 @@
+--- src/unix-gcc.mak.orig	Fri Jul  7 06:32:50 2006
++++ src/unix-gcc.mak	Fri Mar 23 14:44:08 2007
+@@ -21,15 +21,16 @@
  # source, generated intermediate file, and object directories
  # for the graphics library (GL) and the PostScript/PDF interpreter (PS).
  
@@ -10,6 +10,7 @@
 -GLOBJDIR=./obj
 -PSSRCDIR=./src
 -PSLIBDIR=./lib
+-PSRESDIR=./Resource
 -PSGENDIR=./obj
 -PSOBJDIR=./obj
 +.CURDIR?=.
@@ -19,12 +20,13 @@
 +GLOBJDIR=${.CURDIR}/obj
 +PSSRCDIR=${.CURDIR}/src
 +PSLIBDIR=${.CURDIR}/lib
++PSRESDIR=${.CURDIR}/Resource
 +PSGENDIR=${.CURDIR}/obj
 +PSOBJDIR=${.CURDIR}/obj
  
  # Do not edit the next group of lines.
  
-@@ -50,11 +51,10 @@
+@@ -48,11 +49,10 @@
  # the directories also define the default search path for the
  # initialization files (gs_*.ps) and the fonts.
  
@@ -66,7 +68,22 @@
  #ZLIB_NAME=gz
  ZLIB_NAME=z
  
-@@ -197,7 +197,7 @@
+@@ -179,6 +179,14 @@
+ JBIG2_LIB=jbig2dec
+ JBIG2SRCDIR=jbig2dec
+ 
++# Choose the library to use for (JPXDecode support)
++# whether to link to an external build or compile in from source
++# and source location and configuration flags for compiling in
++JPX_LIB=jasper
++SHARE_JPX=0
++JPXSRCDIR=jasper
++JPX_CFLAGS=-DJAS_CONFIGURE
++
+ # Define the directory where the icclib source are stored.
+ # See icclib.mak for more information
+ 
+@@ -202,7 +210,7 @@
  
  # Define the name of the C compiler.
  
@@ -75,7 +92,7 @@
  
  # Define the name of the linker for the final link step.
  # Normally this is the same as the C compiler.
-@@ -214,9 +214,9 @@
+@@ -219,9 +227,9 @@
  # Define the added flags for standard, debugging, profiling 
  # and shared object builds.
  
@@ -88,16 +105,16 @@
  CFLAGS_SO=-fPIC
  
  # Define the other compilation flags.  Add at most one of the following:
-@@ -230,7 +230,7 @@
+@@ -235,7 +243,7 @@
  # We don't include -ansi, because this gets in the way of the platform-
  #   specific stuff that <math.h> typically needs; nevertheless, we expect
  #   gcc to accept ANSI-style function prototypes and function definitions.
 -XCFLAGS=
-+XCFLAGS+=-I${LOCALBASE}/include/libpng -I${LOCALBASE}/include
++XCFLAGS+=-I${.CURDIR}/jasper/src/libjasper/include -I${LOCALBASE}/include/libpng -I${LOCALBASE}/include
  
  CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS)
  
-@@ -241,7 +241,7 @@
+@@ -246,7 +254,7 @@
  #	-R /usr/local/xxx/lib:/usr/local/lib
  # giving the full path names of the shared library directories.
  # XLDFLAGS can be set from the command line.
@@ -106,7 +123,7 @@
  
  LDFLAGS=$(XLDFLAGS)
  
-@@ -274,7 +274,7 @@
+@@ -279,7 +287,7 @@
  # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  # not in $(XINCLUDE).
  
@@ -115,7 +132,7 @@
  
  # Define the directory/ies and library names for the X11 library files.
  # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
-@@ -286,12 +286,12 @@
+@@ -291,12 +299,12 @@
  # Solaris and other SVR4 systems with dynamic linking probably want
  #XLIBDIRS=-L/usr/openwin/lib -R/usr/openwin/lib
  # X11R6 (on any platform) may need
@@ -131,3 +148,13 @@
  
  # Define whether this platform has floating point hardware:
  #	FPU_TYPE=2 means floating point is faster than fixed point.
+@@ -447,6 +455,9 @@
+ include $(GLSRCDIR)/zlib.mak
+ include $(GLSRCDIR)/libpng.mak
+ include $(GLSRCDIR)/jbig2.mak
++include $(GLSRCDIR)/jasper.mak
++include $(GLSRCDIR)/ldf_jb2.mak
++include $(GLSRCDIR)/lwf_jp2.mak
+ include $(GLSRCDIR)/icclib.mak
+ include $(GLSRCDIR)/ijs.mak
+ include $(GLSRCDIR)/devs.mak
Index: patch-src-gdevdmpr.c
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-src-gdevdmpr.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-src-gdevdmpr.c -L print/ghostscript-gpl/files/patch-src-gdevdmpr.c -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-src-gdevdmpr.c
+++ print/ghostscript-gpl/files/patch-src-gdevdmpr.c
@@ -1,5 +1,5 @@
 --- src/gdevdmpr.c.orig	Tue May 13 20:43:37 1997
-+++ src/gdevdmpr.c	Thu Jun  9 02:52:25 2005
++++ src/gdevdmpr.c	Sat Mar 24 15:41:48 2007
 @@ -41,7 +41,7 @@
  /* include library header. */
  #include "dviprlib.h"
@@ -27,7 +27,77 @@
  
  /* The device descriptor */
  gx_device_procs prn_dmprt_procs = {
-@@ -833,6 +833,7 @@
+@@ -405,7 +405,9 @@
+   if (pddev->dmprt.max_height>0 && pddev->dmprt.max_height<pddev->height)
+     pddev->height = pddev->dmprt.max_height;
+   
++#if 0
+   dviprt_setmessagestream(pddev->dmprt.debug_f ? stderr : NULL);
++#endif
+   
+   return code;
+ }
+@@ -425,7 +427,9 @@
+   if (code < 0) return code;
+   if (code == 0) pddev->dmprt.debug_f = vbool;
+   
++#if 0
+   dviprt_setmessagestream(pddev->dmprt.debug_f ? stderr : NULL);
++#endif
+   
+   code = param_read_bool(plist, "Verbose", &vbool);
+   if (code < 0) return code;
+@@ -475,14 +479,14 @@
+   code = param_read_string(plist, "FileName", &vstr);
+   if (code < 0) return code;
+   if (code == 0) {
+-    char *filename = gs_malloc(vstr.size + 1, 1,
++    char *filename = gs_malloc(pdev->memory, vstr.size + 1, 1,
+ 			       "gdev_dmprt_put_props(filename)");
+     int ccode;
+     if (filename == 0) return e_VMerror;
+     strncpy(filename, (const char*)vstr.data, vstr.size);
+     filename[vstr.size] = '\0';
+     ccode = gdev_dmprt_get_printer_props(pddev,filename);
+-    gs_free(filename, vstr.size+1, 1, "gdev_dmprt_put_props(filename)");
++    gs_free(pdev->memory, filename, vstr.size+1, 1, "gdev_dmprt_put_props(filename)");
+     if (ccode < 0) return ccode;
+   }
+ 
+@@ -686,7 +690,7 @@
+   byte *in;
+   
+   /* get work buffer */
+-  in = (byte *)gs_malloc(1, i_buf_size ,"gdev_dmprt_print_page(in)");
++  in = (byte *)gs_malloc(pdev->memory, 1, i_buf_size ,"gdev_dmprt_print_page(in)");
+   if ( in == 0 )
+     return e_VMerror;
+   
+@@ -737,7 +741,7 @@
+     eprintf1(" %lu bytes\n",dviprt_getoutputbytes(pprint)-prev_bytes);
+   }
+ error_ex:
+-  gs_free((char *)in, 1, i_buf_size,"gdev_dmprt_print_page(in)");
++  gs_free(pdev->memory, (char *)in, 1, i_buf_size,"gdev_dmprt_print_page(in)");
+   
+   return code;
+ }
+@@ -797,7 +801,7 @@
+   dviprt_cfg_t cfg;
+   char *fname;
+ 
+-  fname = gs_malloc(256,1,"dviprt_lib_fname");
++  fname = gs_malloc(pdev->memory, 256,1,"dviprt_lib_fname");
+   if (fname == NULL) return e_VMerror;
+   
+   fp = gdev_dmprt_dviprt_lib_fopen(fnamebase,fname);
+@@ -828,11 +832,12 @@
+       cfg.integer[CFG_Y_DPI] > 0 ? cfg.integer[CFG_Y_DPI] : pddev->dmprt.orig_x_dpi;
+   }
+   
+-  gs_free(fname,256,1,"dviprt_lib_fname");
++  gs_free(pdev->memory, fname,256,1,"dviprt_lib_fname");
+   
    return code;
  }
  
@@ -35,7 +105,7 @@
  private FILE *
  gdev_dmprt_dviprt_lib_fopen(const char *fnamebase,char *fname)
  {
-@@ -845,9 +846,7 @@
+@@ -845,9 +850,7 @@
      env = getenv("TEXCFG");
      if (env) {
        strcpy(fname,env);
@@ -46,7 +116,7 @@
        fp = fopen(fname,gp_fmode_rb);
      }
    }
-@@ -867,4 +866,15 @@
+@@ -867,4 +870,15 @@
    default:
      return -1;
    }
Index: patch-lips:gdevl4v.c
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-lips:gdevl4v.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-lips:gdevl4v.c -L print/ghostscript-gpl/files/patch-lips:gdevl4v.c -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-lips:gdevl4v.c
+++ print/ghostscript-gpl/files/patch-lips:gdevl4v.c
@@ -1,6 +1,6 @@
---- lips/gdevl4v.c.orig	Thu Nov  2 12:09:18 2000
-+++ lips/gdevl4v.c	Tue Jan 13 01:30:38 2004
-@@ -230,41 +230,66 @@
+--- lips/gdevl4v.c.orig	Thu Nov  2 05:09:18 2000
++++ lips/gdevl4v.c	Sun Jun 11 15:57:43 2006
+@@ -230,41 +230,67 @@
  };
  
  /* Vector device implementation */
@@ -24,26 +24,26 @@
 +private int
 +lips4v_setlogop(gx_device_vector * vdev, gs_logical_operation_t lop,
 +		 gs_logical_operation_t diff);
- private int
--lips4v_setlogop(P3
- 
--		(gx_device_vector * vdev, gs_logical_operation_t lop,
--		 gs_logical_operation_t diff));
++private int
++
 +lips4v_beginpath(gx_device_vector * vdev, gx_path_type_t type);
 +private int
 +lips4v_moveto(gx_device_vector * vdev, floatp x0, floatp y0, floatp x,
 +	       floatp y, gx_path_type_t type);
- private int
++private int
 +lips4v_lineto(gx_device_vector * vdev, floatp x0, floatp y0, floatp x,
 +	       floatp y, gx_path_type_t type);
-+private int
+ private int
+-lips4v_setlogop(P3
 +lips4v_curveto(gx_device_vector * vdev, floatp x0, floatp y0, floatp x1,
 +		floatp y1, floatp x2, floatp y2, floatp x3, floatp y3,
 +		gx_path_type_t type);
++private int
 +lips4v_closepath(gx_device_vector * vdev, floatp x, floatp y, floatp x_start,
 +		  floatp y_start, gx_path_type_t type);
  
--lips4v_beginpath(P2(gx_device_vector * vdev, gx_path_type_t type));
+-		(gx_device_vector * vdev, gs_logical_operation_t lop,
+-		 gs_logical_operation_t diff));
 +private int lips4v_endpath(gx_device_vector * vdev, gx_path_type_t type);
 +#else
 +private int lips4v_beginpage(P1(gx_device_vector * vdev));
@@ -57,8 +57,9 @@
 +private int
 +lips4v_setlogop(gx_device_vector * vdev, gs_logical_operation_t lop,
 +		 gs_logical_operation_t diff);
-+private int
-+
+ private int
+ 
+-lips4v_beginpath(P2(gx_device_vector * vdev, gx_path_type_t type));
 +lips4v_beginpath(gx_device_vector * vdev, gx_path_type_t type);
  private int
 -lips4v_moveto(P6
@@ -92,7 +93,7 @@
  private int lips4v_setlinewidth(gx_device_vector * vdev, floatp width);
  private int lips4v_setlinecap(gx_device_vector * vdev, gs_line_cap cap);
  private int lips4v_setlinejoin(gx_device_vector * vdev, gs_line_join join);
-@@ -758,10 +783,26 @@
+@@ -758,10 +784,26 @@
      /* Íѻ極¥¤¥º */
      if (pdev->prev_paper_size != paper_size) {
  	if (paper_size == USER_SIZE) {
@@ -121,7 +122,7 @@
  	    lputs(s, paper);
  	} else {
  	    sprintf(paper, "%c%dp", LIPS_CSI, paper_size);
-@@ -770,12 +811,28 @@
+@@ -770,12 +812,28 @@
      } else if (paper_size == USER_SIZE) {
  	if (pdev->prev_paper_width != width ||
  	    pdev->prev_paper_height != height)
@@ -152,7 +153,7 @@
  	lputs(s, paper);
      }
      pdev->prev_paper_size = paper_size;
-@@ -1881,7 +1938,7 @@
+@@ -1881,7 +1939,7 @@
  	}
  	color_set_pure(&color, one);
  	code = gdev_vector_update_fill_color((gx_device_vector *) pdev,
@@ -161,7 +162,7 @@
      }
      if (code < 0)
  	return 0;
-@@ -2026,7 +2083,7 @@
+@@ -2026,7 +2084,7 @@
      if (w <= 0 || h <= 0)
  	return 0;
      if (depth > 1 ||
Index: patch-md2k:gdevmd2k.c
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-md2k:gdevmd2k.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-md2k:gdevmd2k.c -L print/ghostscript-gpl/files/patch-md2k:gdevmd2k.c -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-md2k:gdevmd2k.c
+++ print/ghostscript-gpl/files/patch-md2k:gdevmd2k.c
@@ -1,5 +1,23 @@
 --- md2k/gdevmd2k.c.orig	Sun May  2 14:07:57 1999
-+++ md2k/gdevmd2k.c	Fri Nov  8 07:29:13 2002
++++ md2k/gdevmd2k.c	Fri Dec 17 19:10:22 2004
+@@ -495,7 +495,7 @@
+     int i, j;
+ 
+     /* allocate memory */
+-    work = (byte *)gs_malloc(3+sizeof(int), line_size,
++    work = (byte *)gs_malloc(pdev->memory, 3+sizeof(int), line_size,
+ 			     "alps_print_page(work)");
+     if (work == 0)
+ 	return_error(gs_error_VMerror);
+@@ -597,7 +597,7 @@
+ 	   "\033\052\162\103"
+ 	   "\033\045\0\130", 1, 9, prn_stream);
+ 
+-    gs_free((char *)work, 3+sizeof(int), line_size, "alps_print_page(work)");
++    gs_free(pdev->memory, (char *)work, 3+sizeof(int), line_size, "alps_print_page(work)");
+     return 0;
+ }
+ 
 @@ -638,11 +638,13 @@
      (k) = gx_bits_to_color_value((v) & ((1 << (b)) - 1), (b))
  
--- /dev/null
+++ print/ghostscript-gpl/files/patch-epag__gdevepag.c
@@ -0,0 +1,37 @@
+--- epag/gdevepag.c.orig	Sat Jul  8 13:33:09 2000
++++ epag/gdevepag.c	Thu May 26 00:12:48 2005
+@@ -417,15 +417,15 @@
+   cont->maxY = epag_cont.cRowBuf / cont->bh * cont->bh ;
+   if(cont->maxY < cont->bh) cont->maxY = cont->bh;
+   
+-  cont->bp  = gs_malloc(bpl , cont->maxY, "epag_skip_blank_init(bp)");
+-  cont->bp2 = gs_malloc(bpl*3/2+1 , cont->maxY, "epag_skip_blank_init(bp2)");
++  cont->bp  = gs_malloc(pdev->memory, bpl , cont->maxY, "epag_skip_blank_init(bp)");
++  cont->bp2 = gs_malloc(pdev->memory, bpl*3/2+1 , cont->maxY, "epag_skip_blank_init(bp2)");
+ 
+   cont->h = cont->r = 0;
+ 
+-  cont->bubbleTbl=gs_malloc(sizeof(EpagBubble *),cont->maxBx,"bubbleTbl");
++  cont->bubbleTbl=gs_malloc(pdev->memory, sizeof(EpagBubble *),cont->maxBx,"bubbleTbl");
+   for(i=0;i<cont->maxBx;i++)
+     cont->bubbleTbl[i] = NULL;
+-  cont->bubbleBuffer=gs_malloc(sizeof(EpagBubble),cont->maxBx,"bubbleBuffer");
++  cont->bubbleBuffer=gs_malloc(pdev->memory, sizeof(EpagBubble),cont->maxBx,"bubbleBuffer");
+   bbtbl = (EpagBubble *)cont->bubbleBuffer;
+   for(i=0;i<cont->maxBx-1;i++)
+     bbtbl[i].next = &bbtbl[i+1];
+@@ -436,9 +436,11 @@
+ private void
+ epag_page_close(EpagPageCont *cont)
+ {
+-  gs_free(cont->bp, bpl, cont->maxY, "epag_skip_blank_init(bp)");
+-  gs_free(cont->bp2, bpl*3/2+1, cont->maxY, "epag_skip_blank_init(bp2)");
+-  gs_free(cont->bubbleBuffer, sizeof(EpagBubble), cont->maxBx,"bubbleBuffer");
++  gx_device* pdev;
++
++  gs_free(pdev->memory, cont->bp, bpl, cont->maxY, "epag_skip_blank_init(bp)");
++  gs_free(pdev->memory, cont->bp2, bpl*3/2+1, cont->maxY, "epag_skip_blank_init(bp2)");
++  gs_free(pdev->memory, cont->bubbleBuffer, sizeof(EpagBubble), cont->maxBx,"bubbleBuffer");
+ }
+ 
+ private int
Index: patch-src:gdevgdi.c
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-src:gdevgdi.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-src:gdevgdi.c -L print/ghostscript-gpl/files/patch-src:gdevgdi.c -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-src:gdevgdi.c
+++ print/ghostscript-gpl/files/patch-src:gdevgdi.c
@@ -1,5 +1,5 @@
 --- src/gdevgdi.c.orig	Wed Jun 19 19:32:49 2002
-+++ src/gdevgdi.c	Mon Jul 21 13:44:41 2003
++++ src/gdevgdi.c	Fri Dec 31 17:41:18 2004
 @@ -60,8 +60,8 @@
  #define GDI_REPEAT_LENGTH 2
  #define GDI_BAND_HEIGHT   128
@@ -53,6 +53,19 @@
  private FILE *WritePJLHeaderData(gx_device_printer *pdev, FILE *fp);
  private FILE *WriteBandHeader(FILE *fp, unsigned int usBandNo, 
                       unsigned char ubCompMode, unsigned int usBandWidth, 
+@@ -193,9 +207,9 @@
+ 	}
+ 
+         ul_band_size = band_width_bytes * band_height;
+-        ibp = (byte *)gs_malloc(ul_band_size, 1, "gdi_print_page");
+-        obp = (byte *)gs_malloc(ul_band_size*13/10, 1, "gdi_print_page");
+-        tmp = (byte *)gs_malloc(raster, 1, "gdi_print_page");
++        ibp = (byte *)gs_malloc(pdev->memory, ul_band_size, 1, "gdi_print_page");
++        obp = (byte *)gs_malloc(pdev->memory, ul_band_size*13/10, 1, "gdi_print_page");
++        tmp = (byte *)gs_malloc(pdev->memory, raster, 1, "gdi_print_page");
+ 
+         if (!ibp) return_error(gs_error_VMerror);
+         if (!obp) return_error(gs_error_VMerror);
 @@ -220,7 +234,7 @@
              memset(obp, 0x00, ul_band_size*13/10);
              for (j=0; j<band_height; j++) {
@@ -102,7 +115,7 @@
 +		    int f, g, h;
 +		    if (!fudge) {
 +		      ASSERT(use_band == ibp);
-+		      use_band = (byte*)gs_malloc(ul_band_size, 1, "gdi_print_page/fudge");
++		      use_band = (byte*)gs_malloc(pdev->memory, ul_band_size, 1, "gdi_print_page/fudge");
 +		      fudge=1;
 +		    }
 +		    memcpy(use_band, ibp, ul_band_size);
@@ -130,7 +143,7 @@
 +	      oh_well:
 +		if (fudge > 1) {
 +		  ASSERT(use_band != ibp);
-+		  gs_free(use_band, ul_band_size, 1, "gdi_print_page/fudge");
++		  gs_free(pdev->memory, use_band, ul_band_size, 1, "gdi_print_page/fudge");
 +		  /*fprintf(stderr, "smartgdi: band %d fudge factor is %d\n", i, fudge);*/
 +		}
 +	      }
@@ -138,7 +151,7 @@
  		break;
  	    case GDI_COMP_SCANLINE:
                  ul_comp_size = bmp2run(obp, ibp, band_height, band_width_bytes, GDI_REAL_COMP);
-@@ -253,7 +323,7 @@
+@@ -253,15 +323,15 @@
  
              prn_stream = WriteBandHeader(prn_stream, i, compression_type, (band_width_bytes * 8),
                                           band_height, ul_comp_size); 
@@ -147,6 +160,17 @@
              fwrite(obp, ul_comp_size, 1, prn_stream);
          }
      
+         /* Trailer Output */
+         WriteTrailerData(prn_stream);
+-        gs_free(ibp, ul_band_size, 1, "gdi_line_buffer");
+-        gs_free(obp, ul_band_size*13/10, 1, "gdi_line_buffer");
+-        gs_free(tmp, raster, 1, "gdi_line_buffer");
++        gs_free(pdev->memory, ibp, ul_band_size, 1, "gdi_line_buffer");
++        gs_free(pdev->memory, obp, ul_band_size*13/10, 1, "gdi_line_buffer");
++        gs_free(pdev->memory, tmp, raster, 1, "gdi_line_buffer");
+         return code;
+ }
+ 
 @@ -271,50 +341,50 @@
    unsigned char buffer[300];
    int dots_per_inch = (int)pdev->y_pixels_per_inch;
--- /dev/null
+++ print/ghostscript-gpl/files/patch-lips__gdevrpdl.c
@@ -0,0 +1,20 @@
+--- lips/gdevrpdl.c.orig	Thu Nov  2 12:09:18 2000
++++ lips/gdevrpdl.c	Fri Dec 31 17:34:04 2004
+@@ -81,7 +81,7 @@
+     if (pdev->PageCount == 0)
+ 	rpdl_printer_initialize(pdev, prn_stream, num_coipes);
+ 
+-    if (!(lprn->CompBuf = gs_malloc(bpl * 3 / 2 + 1, maxY, "rpdl_print_page_copies(CompBuf)")))
++    if (!(lprn->CompBuf = gs_malloc(pdev->memory, bpl * 3 / 2 + 1, maxY, "rpdl_print_page_copies(CompBuf)")))
+ 	return_error(gs_error_VMerror);
+ 
+     lprn->NegativePrint = false; /* Not Support */
+@@ -90,7 +90,7 @@
+     if (code < 0)
+ 	return code;
+ 
+-    gs_free(lprn->CompBuf, bpl * 3 / 2 + 1, maxY, "rpdl_print_page_copies(CompBuf)");
++    gs_free(pdev->memory, lprn->CompBuf, bpl * 3 / 2 + 1, maxY, "rpdl_print_page_copies(CompBuf)");
+ 
+     fprintf(prn_stream, "\014");	/* Form  Feed */
+ 
Index: patch-lips:gdevl4r.c
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-lips:gdevl4r.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-lips:gdevl4r.c -L print/ghostscript-gpl/files/patch-lips:gdevl4r.c -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-lips:gdevl4r.c
+++ print/ghostscript-gpl/files/patch-lips:gdevl4r.c
@@ -1,5 +1,5 @@
 --- lips/gdevl4r.c.orig	Thu Nov  2 12:09:18 2000
-+++ lips/gdevl4r.c	Tue Jan 13 01:28:40 2004
++++ lips/gdevl4r.c	Fri Dec 17 19:19:02 2004
 @@ -53,8 +53,8 @@
  #define lips_device(dtype, procs, dname, xdpi, ydpi, lm, bm, rm, tm, color_bits,\
  		    print_page_copies, image_out, cassetFeed, username)\
@@ -36,6 +36,85 @@
  private int lips4type_print_page_copies(gx_device_printer * pdev, FILE * prn_stream, int num_copies, int ptype);
  
  private int
+@@ -597,7 +602,7 @@
+     /* Initialize printer. */
+     lips_job_start(pdev, ptype, prn_stream, num_copies);
+ 
+-    if (!(lprn->CompBuf = gs_malloc(bpl * 3 / 2 + 1, maxY, "(CompBuf)")))
++    if (!(lprn->CompBuf = gs_malloc(pdev->memory, bpl * 3 / 2 + 1, maxY, "(CompBuf)")))
+ 	return_error(gs_error_VMerror);
+ 
+ 
+@@ -607,7 +612,7 @@
+     if (code < 0)
+ 	return code;
+ 
+-    gs_free(lprn->CompBuf, bpl * 3 / 2 + 1, maxY, "(CompBuf)");
++    gs_free(pdev->memory, lprn->CompBuf, bpl * 3 / 2 + 1, maxY, "(CompBuf)");
+ 
+     /* eject page */
+     lips_job_end(pdev, prn_stream);
+@@ -641,9 +646,9 @@
+ 
+     if (pdev->color_info.depth == 1)
+       {
+-	if (!(lprn->CompBuf = gs_malloc(bpl * 3 / 2 + 1, maxY, "(CompBuf)")))
++	if (!(lprn->CompBuf = gs_malloc(pdev->memory, bpl * 3 / 2 + 1, maxY, "(CompBuf)")))
+ 	  return_error(gs_error_VMerror);
+-	if (!(lprn->CompBuf2 = gs_malloc(bpl * 3 / 2 + 1, maxY, "(CompBuf2)")))
++	if (!(lprn->CompBuf2 = gs_malloc(pdev->memory, bpl * 3 / 2 + 1, maxY, "(CompBuf2)")))
+ 	  return_error(gs_error_VMerror);
+ 
+ 	if (lprn->NegativePrint) {
+@@ -663,8 +668,8 @@
+ 	if (code < 0)
+ 	  return code;
+ 	
+-	gs_free(lprn->CompBuf, bpl * 3 / 2 + 1, maxY, "(CompBuf)");
+-	gs_free(lprn->CompBuf2, bpl * 3 / 2 + 1, maxY, "(CompBuf2)");
++	gs_free(pdev->memory, lprn->CompBuf, bpl * 3 / 2 + 1, maxY, "(CompBuf)");
++	gs_free(pdev->memory, lprn->CompBuf2, bpl * 3 / 2 + 1, maxY, "(CompBuf2)");
+       }
+     else
+       {
+@@ -903,15 +908,15 @@
+     int lnum = 0;
+ 
+     /* Memory Allocate */
+-    if (!(pBuff = (byte *) gs_malloc(nBytesPerLine, sizeof(byte), "lips4c_compress_output_page(pBuff)")))
++    if (!(pBuff = (byte *) gs_malloc(pdev->memory, nBytesPerLine, sizeof(byte), "lips4c_compress_output_page(pBuff)")))
+ 	return_error(gs_error_VMerror);
+-    if (!(prevBuff = (byte *) gs_malloc(nBytesPerLine, sizeof(byte), "lips4c_compress_output_page(prevBuff)")))
++    if (!(prevBuff = (byte *) gs_malloc(pdev->memory, nBytesPerLine, sizeof(byte), "lips4c_compress_output_page(prevBuff)")))
+ 	return_error(gs_error_VMerror);
+-    if (!(ComBuff = (byte *) gs_malloc(Xpixel * num_components + (Xpixel * num_components + 127) * 129 / 128, sizeof(byte), "lips4c_compress_output_page(ComBuff)")))
++    if (!(ComBuff = (byte *) gs_malloc(pdev->memory, Xpixel * num_components + (Xpixel * num_components + 127) * 129 / 128, sizeof(byte), "lips4c_compress_output_page(ComBuff)")))
+ 	return_error(gs_error_VMerror);
+-    if (!(TotalBuff = (byte *) gs_malloc((Xpixel * num_components + (Xpixel * num_components + 127) * 129 / 128) * NUM_LINES_4C, sizeof(byte), "lips4c_compress_output_page(TotalBuff)")))
++    if (!(TotalBuff = (byte *) gs_malloc(pdev->memory, (Xpixel * num_components + (Xpixel * num_components + 127) * 129 / 128) * NUM_LINES_4C, sizeof(byte), "lips4c_compress_output_page(TotalBuff)")))
+ 	return_error(gs_error_VMerror);
+-    if (!(diffBuff = (byte *) gs_malloc(Xpixel * num_components * 2, sizeof(byte), "lips_print_page")))
++    if (!(diffBuff = (byte *) gs_malloc(pdev->memory, Xpixel * num_components * 2, sizeof(byte), "lips_print_page")))
+ 	return_error(gs_error_VMerror);
+ 
+     /* make output data */
+@@ -927,11 +932,11 @@
+ 			    pdev->height - (lnum - NUM_LINES_4C));
+     }
+     /* Free Memory */
+-    gs_free(pBuff, nBytesPerLine, sizeof(byte), "lips4c_compress_output_page(pBuff)");
+-    gs_free(prevBuff, nBytesPerLine, sizeof(byte), "lips4c_compress_output_page(prevBuff)");
+-    gs_free(ComBuff, Xpixel * num_components + (Xpixel * num_components + 127) * 129 / 128, sizeof(byte), "lips4c_compress_output_page(ComBuff)");
+-    gs_free(TotalBuff, (Xpixel * num_components + (Xpixel * num_components + 127) * 129 / 128) * NUM_LINES_4C, sizeof(byte), "lips4c_compress_output_page(TotalBuff)");
+-    gs_free(diffBuff, Xpixel * num_components * 2, sizeof(byte), "lips_print_page");
++    gs_free(pdev->memory, pBuff, nBytesPerLine, sizeof(byte), "lips4c_compress_output_page(pBuff)");
++    gs_free(pdev->memory, prevBuff, nBytesPerLine, sizeof(byte), "lips4c_compress_output_page(prevBuff)");
++    gs_free(pdev->memory, ComBuff, Xpixel * num_components + (Xpixel * num_components + 127) * 129 / 128, sizeof(byte), "lips4c_compress_output_page(ComBuff)");
++    gs_free(pdev->memory, TotalBuff, (Xpixel * num_components + (Xpixel * num_components + 127) * 129 / 128) * NUM_LINES_4C, sizeof(byte), "lips4c_compress_output_page(TotalBuff)");
++    gs_free(pdev->memory, diffBuff, Xpixel * num_components * 2, sizeof(byte), "lips_print_page");
+ 
+     return 0;
+ }
 @@ -1065,11 +1070,25 @@
  	if (paper_size == USER_SIZE) {
  	    fprintf(prn_stream, "%c2 I", LIPS_CSI);
--- /dev/null
+++ print/ghostscript-gpl/files/patch-lips__gdevespg.c
@@ -0,0 +1,20 @@
+--- lips/gdevespg.c.orig	Thu Nov  2 12:09:18 2000
++++ lips/gdevespg.c	Fri Dec 17 19:39:57 2004
+@@ -142,7 +142,7 @@
+     if (pdev->PageCount == 0)
+ 	escpage_printer_initialize(pdev, fp, num_coipes);
+ 
+-    if (!(lprn->CompBuf = gs_malloc(bpl * 3 / 2 + 1, maxY, "lp2000_print_page_copies(CompBuf)")))
++    if (!(lprn->CompBuf = gs_malloc(pdev->memory, bpl * 3 / 2 + 1, maxY, "lp2000_print_page_copies(CompBuf)")))
+ 	return_error(gs_error_VMerror);
+ 
+     if (lprn->NegativePrint) {
+@@ -154,7 +154,7 @@
+     if (code < 0)
+ 	return code;
+ 
+-    gs_free(lprn->CompBuf, bpl * 3 / 2 + 1, maxY, "lp2000_print_page_copies(CompBuf)");
++    gs_free(pdev->memory, lprn->CompBuf, bpl * 3 / 2 + 1, maxY, "lp2000_print_page_copies(CompBuf)");
+ 
+     if (pdev->Duplex)
+ 	fprintf(fp, "%c0dpsE", GS);
Index: patch-src:fapi_ft.c
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-src:fapi_ft.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-src:fapi_ft.c -L print/ghostscript-gpl/files/patch-src:fapi_ft.c -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-src:fapi_ft.c
+++ print/ghostscript-gpl/files/patch-src:fapi_ft.c
@@ -1,6 +1,6 @@
---- src/fapi_ft.c.orig	Sat Dec 13 07:07:59 2003
-+++ src/fapi_ft.c	Wed Mar 17 21:43:43 2004
-@@ -30,7 +30,8 @@
+--- src/fapi_ft.c.orig	Mon Mar 13 17:18:19 2006
++++ src/fapi_ft.c	Sun Mar 18 16:23:21 2007
+@@ -26,11 +26,14 @@
  #include "math_.h"
  
  /* FreeType headers */
@@ -10,3 +10,9 @@
  #include "freetype/ftincrem.h"
  #include "freetype/ftglyph.h"
  #include "freetype/ftoutln.h"
+ #include "freetype/fttrigon.h"
++#include "gserrors.h"
++#include "gserror.h"
+ 
+ /* Note: structure definitions here start with FF_, which stands for 'FAPI FreeType". */
+ 
Index: patch-lib::gs_ttf.ps
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-lib::gs_ttf.ps,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-lib::gs_ttf.ps -L print/ghostscript-gpl/files/patch-lib::gs_ttf.ps -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-lib::gs_ttf.ps
+++ print/ghostscript-gpl/files/patch-lib::gs_ttf.ps
@@ -1,22 +1,13 @@
---- lib/gs_ttf.ps.orig	Sat Feb 14 04:43:51 2004
-+++ lib/gs_ttf.ps	Mon Jun  7 12:51:44 2004
-@@ -519,7 +519,7 @@
-   (maxp) 1 index
-   (name) 1 index
-   (OS/2) 1 index
--  (post) 1 index
-+  (post) { .readbigtable }
-   (vhea) 1 index
- 	% Big tables
-   (glyf) { .readbigtable }
-@@ -854,10 +854,17 @@
+--- lib/gs_ttf.ps.orig	Tue Feb  6 20:07:48 2007
++++ lib/gs_ttf.ps	Sat Mar 24 16:15:49 2007
+@@ -997,10 +997,17 @@
    } ifelse
  		% Stack: ... /FontInfo mark key1 value1 ...
    post null ne {
--    /ItalicAngle post 4 gets32 65536.0 div
--    /isFixedPitch post 12 getu32 0 ne
--    /UnderlinePosition post 8 gets16 upem div
--    /UnderlineThickness post 10 gets16 upem div
+-    /ItalicAngle first_post_string 4 gets32 65536.0 div
+-    /isFixedPitch first_post_string 12 getu32 0 ne
+-    /UnderlinePosition first_post_string 8 gets16 upem div
+-    /UnderlineThickness first_post_string 10 gets16 upem div
 +    post type /arraytype eq {
 +      % this post table is a big table. /post should be [(...) ...]
 +      % data we actually need here should be first one in array.
Index: patch-src:gdevdj9.c
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-src:gdevdj9.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-src:gdevdj9.c -L print/ghostscript-gpl/files/patch-src:gdevdj9.c -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-src:gdevdj9.c
+++ print/ghostscript-gpl/files/patch-src:gdevdj9.c
@@ -1,5 +1,5 @@
---- src/gdevdj9.c.orig	Fri Nov  8 06:15:08 2002
-+++ src/gdevdj9.c	Sun Nov 10 22:00:45 2002
+--- src/gdevdj9.c.orig	Fri Dec 17 19:31:42 2004
++++ src/gdevdj9.c	Fri Dec 17 19:44:07 2004
 @@ -243,19 +243,19 @@
  };
  
@@ -205,6 +205,24 @@
  
  
  /* assign_dpi:  
+@@ -863,7 +863,7 @@
+ 		 2bpp feature of the hp970 someday, it is sized like storage.
+ 		 storagee contains the errors from b/w fs-ditherng */
+ 
+-	data_ptrs.storage = (ulong *) gs_malloc(misc_vars.storage_size_words, W,
++	data_ptrs.storage = (ulong *) gs_malloc(pdev->memory, misc_vars.storage_size_words, W,
+ 					    "cdj970_print_page");
+ 
+ 	/* if we can't allocate working area */
+@@ -884,7 +884,7 @@
+ 	(*cdj970->terminate_page) (pdev, prn_stream);
+ 
+ 	/* Free Memory */
+-	gs_free((char *)data_ptrs.storage, misc_vars.storage_size_words, W,
++	gs_free(pdev->memory, (char *)data_ptrs.storage, misc_vars.storage_size_words, W,
+ 	    "hp970_print_page");
+ 
+ 	PageCtr ++;
 @@ -2292,12 +2292,13 @@
  /* gdev_cmyk_map_cmyk_color: 
  ----------------------------------------------------------------------------------*/
Index: patch-src-gdevijs.c
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-src-gdevijs.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-src-gdevijs.c -L print/ghostscript-gpl/files/patch-src-gdevijs.c -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-src-gdevijs.c
+++ print/ghostscript-gpl/files/patch-src-gdevijs.c
@@ -1,5 +1,5 @@
---- src/gdevijs.c.orig	Wed Mar 24 17:38:53 2004
-+++ src/gdevijs.c	Thu May 26 01:23:29 2005
+--- src/gdevijs.c.orig	Thu Mar 10 23:57:23 2005
++++ src/gdevijs.c	Fri May 27 02:56:55 2005
 @@ -27,15 +27,29 @@
   * which is a security risk, since any program can be run.
   * You should use -dSAFER which sets .LockSafetyParams to true 
@@ -30,9 +30,9 @@
  /* This should go into gdevprn.h, or, better yet, gdevprn should
     acquire an API for changing resolution. */
  int gdev_prn_maybe_realloc_memory(gx_device_printer *pdev,
-@@ -51,6 +65,14 @@
- private dev_proc_get_params(gsijs_get_params);
+@@ -52,6 +66,14 @@
  private dev_proc_put_params(gsijs_put_params);
+ private dev_proc_finish_copydevice(gsijs_finish_copydevice);
  
 +/* Following definitions are for krgb support. */
 +private dev_proc_create_buf_device(gsijs_create_buf_device);
@@ -42,10 +42,10 @@
 +private dev_proc_fill_path(gsijs_fill_path);
 +private dev_proc_stroke_path(gsijs_stroke_path);
 +
- private const gx_device_procs gsijs_procs =
- prn_color_params_procs(gsijs_open, gsijs_output_page, gsijs_close,
- 		   gx_default_rgb_map_rgb_color, gx_default_rgb_map_color_rgb,
-@@ -83,6 +105,14 @@
+ private const gx_device_procs gsijs_procs = {
+ 	gsijs_open,
+ 	NULL,	/* get_initial_matrix */
+@@ -126,6 +148,14 @@
  
      IjsClientCtx *ctx;
      int ijs_version;
@@ -60,7 +60,7 @@
  };
  
  #define DEFAULT_DPI 74   /* See gsijs_set_resolution() below. */
-@@ -110,7 +140,12 @@
+@@ -153,7 +183,12 @@
      FALSE,	/* Tumble_set */
  
      NULL,	/* IjsClient *ctx */
@@ -74,7 +74,7 @@
  };
  
  
-@@ -126,12 +161,254 @@
+@@ -169,12 +204,254 @@
  
  /**************************************************************************/
  
@@ -334,7 +334,7 @@
  
  private int
  gsijs_parse_wxh (const char *val, int size, double *pw, double *ph)
-@@ -169,34 +446,6 @@
+@@ -212,34 +489,6 @@
  }
  
  /**
@@ -369,7 +369,7 @@
   * gsijs_set_generic_params: Set generic IJS parameters.
   **/
  private int
-@@ -207,9 +456,6 @@
+@@ -250,9 +499,6 @@
      int i, j;
      char *value;
  
@@ -379,7 +379,7 @@
      /* Split IjsParams into separate parameters and send to ijs server */
      value = NULL;
      for (i=0, j=0; (j < ijsdev->IjsParams_size) && (i < sizeof(buf)-1); j++) {
-@@ -250,68 +496,6 @@
+@@ -293,68 +539,6 @@
  }
  
  /**
@@ -448,7 +448,7 @@
   * gsijs_set_margin_params: Do margin negotiation with IJS server.
   **/
  private int
-@@ -322,9 +506,6 @@
+@@ -365,9 +549,6 @@
      int i, j;
      char *value;
  
@@ -458,7 +458,7 @@
      /* Split IjsParams into separate parameters and send to ijs server */
      value = NULL;
      for (i=0, j=0; (j < ijsdev->IjsParams_size) && (i < sizeof(buf)-1); j++) {
-@@ -491,12 +672,18 @@
+@@ -534,12 +715,18 @@
      char buf[256];
      bool use_outputfd;
      int fd = -1;
@@ -477,7 +477,7 @@
      /* Decide whether to use OutputFile or OutputFD. Note: how to
         determine this is a tricky question, so we just allow the
         user to set it.
-@@ -511,6 +698,8 @@
+@@ -554,6 +741,8 @@
      if (code < 0)
  	return code;
  
@@ -486,7 +486,7 @@
      if (use_outputfd) {
  	/* Note: dup() may not be portable to all interesting IJS
  	   platforms. In that case, this branch should be #ifdef'ed out.
-@@ -570,6 +759,9 @@
+@@ -613,6 +802,9 @@
      if (code >= 0)
  	code = gsijs_set_margin_params(ijsdev);
  
@@ -496,7 +496,7 @@
      return code;
  }
  
-@@ -629,21 +821,6 @@
+@@ -695,21 +887,6 @@
      return min(width, end);
  }
  
@@ -518,7 +518,7 @@
  /* Print a page.  Don't use normal printer gdev_prn_output_page 
   * because it opens the output file.
   */
-@@ -654,8 +831,9 @@
+@@ -720,8 +897,9 @@
      gx_device_printer *pdev = (gx_device_printer *)dev;
      int raster = gdev_prn_raster(pdev);
      int ijs_width, ijs_height;
@@ -529,7 +529,7 @@
      unsigned char *data;
      char buf[256];
      double xres = pdev->HWResolution[0];
-@@ -671,13 +849,23 @@
+@@ -737,13 +915,23 @@
  
      /* Determine bitmap width and height */
      ijs_height = gdev_prn_print_scan_lines(dev);
@@ -550,14 +550,14 @@
 +        /* Create banding buffer for k plane. */
 +        ijsdev->k_width = ijs_width;
 +        ijsdev->k_band_size = band_height * k_row_bytes;   
-+        if ((ijsdev->k_band = gs_malloc(ijsdev->k_band_size, 1, "gsijs_output_page")) == (unsigned char *)NULL)
++        if ((ijsdev->k_band = gs_malloc(pdev->memory, ijsdev->k_band_size, 1, "gsijs_output_page")) == (unsigned char *)NULL)
 +           return gs_note_error(gs_error_VMerror);
 +    }
 +
      /* Required page parameters */
      sprintf(buf, "%d", n_chan);
      gsijs_client_set_param(ijsdev, "NumChan", buf);
-@@ -686,44 +874,71 @@
+@@ -752,44 +940,71 @@
  
      /* This needs to become more sophisticated for DeviceN. */
      strcpy(buf, (n_chan == 4) ? "DeviceCMYK" : 
@@ -644,12 +644,12 @@
 +#endif
 +
 +    if(krgb_mode)
-+        gs_free(ijsdev->k_band, ijsdev->k_band_size, 1, "gsijs_output_page");
++        gs_free(pdev->memory, ijsdev->k_band, ijsdev->k_band_size, 1, "gsijs_output_page");
 +
      gs_free_object(pdev->memory, data, "gsijs_output_page");
  
      endcode = (pdev->buffer_space && !pdev->is_async_renderer ?
-@@ -1027,7 +1242,6 @@
+@@ -1093,7 +1308,6 @@
  	dprintf2("ijs: Can't set parameter %s=%s\n", key, value);
      return code;
  }
--- /dev/null
+++ print/ghostscript-gpl/files/patch-src:gdevhl12.c
@@ -0,0 +1,11 @@
+--- src/gdevhl12.c.orig	Wed Mar 28 14:10:35 2007
++++ src/gdevhl12.c	Wed Mar 28 14:13:21 2007
+@@ -472,7 +472,7 @@
+     for (y = ytop; y < ybottom; y++) {
+ 	if (hl1250_compress_line(s, y))
+ 	    continue;
+-#if 1
++#if 0
+ 	/* XXX - please report if you ever see this, then change to #if 0 */
+ 	fprintf(stderr,
+ 		"hl1250: compression failed (y=%u), doing 1200x300 dpi\n",
--- /dev/null
+++ print/ghostscript-gpl/files/patch-lex7000__src__gdevlx7.c
@@ -0,0 +1,31 @@
+--- lex7000/src/gdevlx7.c.orig	Fri Dec 31 17:22:48 2004
++++ lex7000/src/gdevlx7.c	Fri Dec 31 17:24:39 2004
+@@ -615,14 +615,14 @@
+    dprintf2("Current resolution is %f width x %f height dpi\n",
+ 	 pdev->x_pixels_per_inch, pdev->y_pixels_per_inch );
+ #endif
+-   pbuf = (byte *)gs_malloc(rpbufsize, 1, "lxmgen_print_page(pbuf)");
++   pbuf = (byte *)gs_malloc(pdev->memory, rpbufsize, 1, "lxmgen_print_page(pbuf)");
+    if (pbuf == NULL)
+       return_error(gs_error_VMerror);
+ 
+-   outbuf = (byte *)gs_malloc(OUT_BUF_SIZE, 1, "lxmgen_print_page(outbuf)");
++   outbuf = (byte *)gs_malloc(pdev->memory, OUT_BUF_SIZE, 1, "lxmgen_print_page(outbuf)");
+    if (outbuf == NULL)
+    {
+-      gs_free((char*)pbuf,pbufsize, 1, "lxmgen_print_page(pbuf)");
++      gs_free(pdev->memory, (char*)pbuf,pbufsize, 1, "lxmgen_print_page(pbuf)");
+       return_error(gs_error_VMerror);
+    }
+    /* initialize begin of outbuf ... */
+@@ -799,8 +799,8 @@
+ 
+    /* eject page */
+    lex_eject(prn_stream);
+-   gs_free((char*)pbuf,rpbufsize, 1, "lxmgen_print_page(pbuf)");
+-   gs_free((char*)outbuf,OUT_BUF_SIZE, 1, "lxmgen_print_page(outbuf)");
++   gs_free(pdev->memory, (char*)pbuf,rpbufsize, 1, "lxmgen_print_page(pbuf)");
++   gs_free(pdev->memory, (char*)outbuf,OUT_BUF_SIZE, 1, "lxmgen_print_page(outbuf)");
+ 
+ #ifdef DEBUG
+    dprintf1("[%s] print_page() end\n",pdev->dname);
Index: patch-src:gdevlx50.c
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-src:gdevlx50.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-src:gdevlx50.c -L print/ghostscript-gpl/files/patch-src:gdevlx50.c -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-src:gdevlx50.c
+++ print/ghostscript-gpl/files/patch-src:gdevlx50.c
@@ -1,5 +1,50 @@
---- src/gdevlx50.c.orig	Thu May 15 07:38:07 2003
-+++ src/gdevlx50.c	Thu May 15 08:02:58 2003
+--- src/gdevlx50.c.orig	Fri Dec 17 19:31:43 2004
++++ src/gdevlx50.c	Fri Dec 17 22:31:26 2004
+@@ -1120,18 +1120,18 @@
+ 
+ 				/* Allocate a buffer for a single scan line */
+ 	    lineBuffer	= (byte *)gs_alloc_byte_array
+-		( &gs_memory_default, lx5000dev->scanLineBytes, 1,
++		( lx5000dev->memory, lx5000dev->scanLineBytes, 1,
+ 		  "lx5000_print_page(lineBuffer)" );
+ 
+ 	    swipeBuf	= (byte *)gs_alloc_byte_array
+-		( &gs_memory_default, lx5000dev->swipeBufSize, 1,
++		( lx5000dev->memory, lx5000dev->swipeBufSize, 1,
+ 		  "lx5000_print_page(swipeBuf)" );
+ 
+ 	    for ( colour = 0 ; colour < numColours; colour++ )
+ 	    {
+ 		if ( ( colourBufs[colour] =
+ 		       (byte *)gs_alloc_byte_array
+-		       ( &gs_memory_default, lx5000dev->penBufSize, 1,
++		       ( lx5000dev->memory, lx5000dev->penBufSize, 1,
+ 			 "lx5000_print_page(colourBufs)"
+ 			 )
+ 		       ) == NULL )
+@@ -1172,19 +1172,19 @@
+ 	for ( colour = 0; colour < numColours; colour++ )
+ 	{
+ 	    if ( colourBufs[colour] != NULL )
+-		gs_free_object( &gs_memory_default,
++		gs_free_object( lx5000dev->memory,
+ 				(char *)colourBufs[colour],
+ 				"lx5000_print_page(colourBufs)" );
+ 	    colourBufs[ colour ]	= NULL;
+ 	    colourBufPtrs[ colour ]	= NULL;
+ 	}
+ 	if ( swipeBuf != NULL )
+-	    gs_free_object( &gs_memory_default,
++	    gs_free_object( lx5000dev->memory,
+ 			    (char *)swipeBuf, "lx5000_print_page(swipeBuf)" );
+ 	swipeBuf	= NULL;
+ 	*swipeBufPtr	= NULL;
+ 	if ( lineBuffer != NULL )
+-	    gs_free_object( &gs_memory_default,
++	    gs_free_object( lx5000dev->memory,
+ 		    (char *)lineBuffer, "lx5000_print_page(lineBuffer)" );
+ 	lineBuffer	= NULL;
+ 	*lineBufferPtr	= NULL;
 @@ -2603,9 +2603,12 @@
  
  /* Map CMYK to color. */
--- /dev/null
+++ print/ghostscript-gpl/files/patch-lib__pv.sh.CAN-2004-0967
@@ -0,0 +1,16 @@
+--- lib/pv.sh.orig	Mon Nov 28 02:18:26 2005
++++ lib/pv.sh	Mon Nov 28 02:18:59 2005
+@@ -29,9 +29,10 @@
+ PAGE=$1
+ shift
+ FILE=$1
++TEMPFILE=`mktemp -t ${FILE}XXXXXX` || exit 1
+ shift
+-trap "rm -rf $TEMPDIR/$FILE.$$.pv" 0 1 2 15
++trap "rm -rf $TEMPFILE" 0 1 2 15
+ #dvips -D$RESOLUTION -p $PAGE -n 1 $FILE $* -o $FILE.$$.pv
+-dvips -p $PAGE -n 1 $FILE $* -o $FILE.$$.pv
+-gs $FILE.$$.pv
++dvips -p $PAGE -n 1 $FILE $* -o $TEMPFILE
++gs $TEMPFILE
+ exit 0
--- /dev/null
+++ print/ghostscript-gpl/files/patch-gdev10v__gdev10v.c
@@ -0,0 +1,23 @@
+--- gdev10v/gdev10v.c.orig	Sat Dec 11 04:10:45 1993
++++ gdev10v/gdev10v.c	Fri Dec 17 19:15:49 2004
+@@ -152,8 +152,8 @@
+ 	int bytes_per_column = bits_per_column / 8;
+ 	int x_skip_unit = bytes_per_column * (xres / 180);
+ 	int y_skip_unit = (yres / 180);
+-	byte *in = (byte *)gs_malloc(8, line_size, "bj10v_print_page(in)");
+-	byte *out = (byte *)gs_malloc(bits_per_column, line_size, "bj10v_print_page(out)");
++	byte *in = (byte *)gs_malloc(pdev->memory, 8, line_size, "bj10v_print_page(in)");
++	byte *out = (byte *)gs_malloc(pdev->memory, bits_per_column, line_size, "bj10v_print_page(out)");
+ 	int lnum = 0;
+ 	int y_skip = 0;
+ 	int code = 0;
+@@ -275,7 +275,7 @@
+ 	/* Eject the page */
+ xit:	prn_putc(pdev, 014);	/* form feed */
+ 	prn_flush(pdev);
+-	gs_free((char *)out, bits_per_column, line_size, "bj10v_print_page(out)");
+-	gs_free((char *)in, 8, line_size, "bj10v_print_page(in)");
++	gs_free(pdev->memory, (char *)out, bits_per_column, line_size, "bj10v_print_page(out)");
++	gs_free(pdev->memory, (char *)in, 8, line_size, "bj10v_print_page(in)");
+ 	return code;
+ }
Index: patch-src:gxobj.h
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-src:gxobj.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-src:gxobj.h -L print/ghostscript-gpl/files/patch-src:gxobj.h -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-src:gxobj.h
+++ print/ghostscript-gpl/files/patch-src:gxobj.h
@@ -1,12 +1,12 @@
---- src/gxobj.h.orig	Thu Feb 21 14:24:53 2002
-+++ src/gxobj.h	Sat Sep 27 19:17:17 2003
-@@ -103,11 +103,15 @@
+--- src/gxobj.h.orig	Tue Mar 14 01:18:19 2006
++++ src/gxobj.h	Fri Mar 23 14:41:44 2007
+@@ -109,11 +109,15 @@
   * required by the hardware, regardless of the value of obj_align_mod.
   * See gsmemraw.h for more information about this.
   */
 +#if !defined(__ia64__) && !defined(__amd64__)
  #define obj_align_mod\
-   (((arch_align_memory_mod - 1) |\
+   (((ARCH_ALIGN_MEMORY_MOD - 1) |\
      (align_bitmap_mod - 1) |\
      (obj_back_scale - 1)) + 1)
  /* The only possible values for obj_align_mod are 4, 8, or 16.... */
Index: patch-src:gdevcd8.c
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-src:gdevcd8.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-src:gdevcd8.c -L print/ghostscript-gpl/files/patch-src:gdevcd8.c -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-src:gdevcd8.c
+++ print/ghostscript-gpl/files/patch-src:gdevcd8.c
@@ -1,5 +1,5 @@
 --- src/gdevcd8.c.orig	Mon Feb 28 16:01:59 2000
-+++ src/gdevcd8.c	Wed Dec 10 21:32:53 2003
++++ src/gdevcd8.c	Fri Dec 17 19:42:52 2004
 @@ -406,19 +406,19 @@
  };
  
@@ -236,6 +236,24 @@
  
  
  private void
+@@ -1175,7 +1175,7 @@
+        2bpp feature of the hp850 someday, it is sized like storage.
+        storagee contains the errors from b/w fs-ditherng */
+ 
+-    data_ptrs.storage = (ulong *) gs_malloc(misc_vars.storage_size_words, W,
++    data_ptrs.storage = (ulong *) gs_malloc(pdev->memory, misc_vars.storage_size_words, W,
+ 					    "cdj850_print_page");
+ 
+     /* if we can't allocate working area */
+@@ -1196,7 +1196,7 @@
+     (*cdj850->terminate_page) (pdev, prn_stream);
+ 
+     /* Free Memory */
+-    gs_free((char *)data_ptrs.storage, misc_vars.storage_size_words, W,
++    gs_free(pdev->memory, (char *)data_ptrs.storage, misc_vars.storage_size_words, W,
+ 	    "hp850_print_page");
+ 
+     return 0;
 @@ -2744,13 +2744,14 @@
      (y) = gx_bits_to_color_value((v) & ((1 << (b)) - 1), (b))
  
--- /dev/null
+++ print/ghostscript-gpl/files/patch-pcl3__eprn__gdeveprn.c
@@ -0,0 +1,180 @@
+--- pcl3/eprn/gdeveprn.c.orig	Mon Apr 30 14:15:51 2001
++++ pcl3/eprn/gdeveprn.c	Sun Mar 25 22:22:54 2007
+@@ -142,11 +142,13 @@
+     if_debug0(EPRN_TRACE_CHAR,
+       "! eprn_get_initial_matrix(): code is still ms_none.\n");
+ #endif
++#if 0
+     if (eprn_set_page_layout(dev) != 0)
+       fputs("  Processing can't be stopped at this point although this error "
+ 	"occurred.\n", stderr);
+       /* The current function has a signature without the ability to signal
+ 	 an error condition. */
++#endif
+   }
+ 
+   quarters = dev->eprn.default_orientation +
+@@ -607,6 +609,7 @@
+     }
+   }
+ 
++#if 0
+   /*  Now the 'best_*match' variables indicate for each of the categories of
+       page descriptions to which extent the size is supported at all (non-NULL
+       value) and what the best flag match in the category is. Here we now check
+@@ -647,6 +650,7 @@
+       return -1;
+     }
+   }
++#endif
+   /* Now we have: best_dmatch != NULL || best_cmatch != NULL &&
+      (eprn->media_overrides == NULL || best_cdmatch != NULL). */
+ 
+@@ -692,7 +696,9 @@
+   }
+   /* If we've found a match, 'code' is no longer 'ms_none'. */
+   if (eprn->code == ms_none) {
++#if 0
+     eprn_flag_mismatch(stderr, eprn, no_match);
++#endif
+     return -1;
+   }
+ 
+@@ -762,9 +768,11 @@
+ 
+       rc = gdev_prn_open((gx_device *)dev);
+       if (rc < 0) {
++#if 0
+ 	fprintf(stderr, "%s" ERRPREF
+ 	  "Failure of gdev_prn_open(), code is %d.\n",
+ 	  epref, rc);
++#endif
+ 	return rc;
+       }
+     }
+@@ -875,7 +883,7 @@
+       &hres, &vres, &eprn->black_levels, &eprn->non_black_levels);
+ 
+   if (eprn->pagecount_file != NULL) {
+-    gs_free(eprn->pagecount_file, strlen(eprn->pagecount_file) + 1,
++    gs_free(dev->memory, eprn->pagecount_file, strlen(eprn->pagecount_file) + 1,
+       sizeof(char), "eprn_init_device");
+     eprn->pagecount_file = NULL;
+   }
+@@ -944,17 +952,21 @@
+       &eprn->black_levels, &eprn->non_black_levels) != 0) {
+     gs_param_string str;
+ 
++#if 0
+     fprintf(stderr, "%s" ERRPREF "The requested combination of colour model (",
+       epref);
++#endif
+     str.size = 0;
+     if (eprn_get_string(eprn->colour_model, eprn_colour_model_list, &str) != 0)
+       assert(0); /* Bug. No harm on NDEBUG because I've just set the size. */
++#if 0
+     fwrite(str.data, str.size, sizeof(str.data[0]), stderr);
+     fprintf(stderr, "),\n"
+       "%s  resolution (%gx%g ppi) and intensity levels (%d, %d) is\n"
+       "%s  not supported by the %s.\n",
+       epref, device->HWResolution[0], device->HWResolution[1],
+       eprn->black_levels, eprn->non_black_levels, epref, eprn->cap->name);
++#endif
+     return_error(gs_error_rangecheck);
+   }
+ 
+@@ -1017,11 +1029,13 @@
+ 	  inappropriate :-). Note that eprn does not use 'PageCount' for
+ 	  updating the file. */
+     else {
++#if 0
+       /* pcf_getcount() has issued an error message. */
+       fputs(
+         "  No further attempts will be made to access the page count file.\n",
+ 	stderr);
+-      gs_free(eprn->pagecount_file, strlen(eprn->pagecount_file) + 1,
++#endif
++      gs_free(device->memory, eprn->pagecount_file, strlen(eprn->pagecount_file) + 1,
+ 	sizeof(char), "eprn_open_device");
+       eprn->pagecount_file = NULL;
+     }
+@@ -1034,31 +1048,33 @@
+   /* Just in case a previous open call failed in a derived device (note that
+      'octets_per_line' is still the same as then): */
+   if (eprn->scan_line.str != NULL)
+-    gs_free(eprn->scan_line.str, eprn->octets_per_line, sizeof(eprn_Octet),
++    gs_free(device->memory, eprn->scan_line.str, eprn->octets_per_line, sizeof(eprn_Octet),
+       "eprn_open_device");
+   if (eprn->next_scan_line.str != NULL) {
+-    gs_free(eprn->next_scan_line.str, eprn->octets_per_line, sizeof(eprn_Octet),
++    gs_free(device->memory, eprn->next_scan_line.str, eprn->octets_per_line, sizeof(eprn_Octet),
+       "eprn_open_device");
+     eprn->next_scan_line.str = NULL;
+   }
+ 
+   /* Calls which might depend on prn having been initialized */
+   eprn->octets_per_line = gdev_prn_raster((gx_device_printer *)device);
+-  eprn->scan_line.str = (eprn_Octet *) gs_malloc(eprn->octets_per_line,
++  eprn->scan_line.str = (eprn_Octet *) gs_malloc(device->memory, eprn->octets_per_line,
+     sizeof(eprn_Octet), "eprn_open_device");
+   if (eprn->intensity_rendering == eprn_IR_FloydSteinberg) {
+-    eprn->next_scan_line.str = (eprn_Octet *) gs_malloc(eprn->octets_per_line,
++    eprn->next_scan_line.str = (eprn_Octet *) gs_malloc(device->memory, eprn->octets_per_line,
+       sizeof(eprn_Octet), "eprn_open_device");
+     if (eprn->next_scan_line.str == NULL && eprn->scan_line.str != NULL) {
+-      gs_free(eprn->scan_line.str, eprn->octets_per_line, sizeof(eprn_Octet),
++      gs_free(device->memory, eprn->scan_line.str, eprn->octets_per_line, sizeof(eprn_Octet),
+ 	"eprn_open_device");
+       eprn->scan_line.str = NULL;
+     }
+   }
+   if (eprn->scan_line.str == NULL) {
++#if 0
+     fprintf(stderr, "%s" ERRPREF
+       "Memory allocation failure from gs_malloc() in eprn_open_device().\n",
+       epref);
++#endif
+     return_error(gs_error_VMerror);
+   }
+ 
+@@ -1080,12 +1096,12 @@
+ #endif
+ 
+   if (eprn->scan_line.str != NULL) {
+-    gs_free(eprn->scan_line.str, eprn->octets_per_line, sizeof(eprn_Octet),
++    gs_free(device->memory, eprn->scan_line.str, eprn->octets_per_line, sizeof(eprn_Octet),
+       "eprn_close_device");
+     eprn->scan_line.str = NULL;
+   }
+   if (eprn->next_scan_line.str != NULL) {
+-    gs_free(eprn->next_scan_line.str, eprn->octets_per_line, sizeof(eprn_Octet),
++    gs_free(device->memory, eprn->next_scan_line.str, eprn->octets_per_line, sizeof(eprn_Octet),
+       "eprn_close_device");
+     eprn->next_scan_line.str = NULL;
+   }
+@@ -1152,20 +1168,24 @@
+       accounting, this seems unfair.
+   */
+   if (rc == 0 && eprn->CUPS_accounting)
++#if 0
+     fprintf(stderr, "PAGE: %ld %d\n", dev->ShowpageCount, num_copies);
+     /* The arguments are the number of the page, starting at 1, and the number
+        of copies of that page. */
++#endif
+ 
+ #ifndef EPRN_NO_PAGECOUNTFILE
+   /* On success, record the number of pages printed */
+   if (rc == 0 && eprn->pagecount_file != NULL) {
+     assert(num_copies > 0);	/* because of signed/unsigned */
+     if (pcf_inccount(eprn->pagecount_file, num_copies) != 0) {
++#if 0
+       /* pcf_inccount() has issued an error message. */
+       fputs(
+ 	"  No further attempts will be made to access the page count file.\n",
+ 	stderr);
+-      gs_free(eprn->pagecount_file, strlen(eprn->pagecount_file) + 1,
++#endif
++      gs_free(dev->memory, eprn->pagecount_file, strlen(eprn->pagecount_file) + 1,
+ 	sizeof(char), "eprn_output_page");
+       eprn->pagecount_file = NULL;
+     }
--- print/ghostscript-gpl/files/patch-src:zmedia2.c
+++ /dev/null
@@ -1,25 +0,0 @@
---- src/zmedia2.c.orig	Fri Apr 27 02:57:41 2001
-+++ src/zmedia2.c	Fri Nov  2 04:08:16 2001
-@@ -429,11 +429,17 @@
- 
- 	rx = ry, ry = temp;
-     }
--    /* Adjust the medium size if flexible. */ 
--    if (medium->p.x < MIN_MEDIA_SIZE && mx > rx)
--	mx = rx;
--    if (medium->p.y < MIN_MEDIA_SIZE && my > ry)
--	my = ry;
-+    /* If 'medium' is flexible, adjust 'mx' and 'my' towards 'rx' and 'ry',
-+       respectively. Note that 'mx' and 'my' have just acquired the largest
-+       permissible value, medium->q. */
-+    if (medium->p.x < mx)	/* non-empty width range */
-+      if (rx < medium->p.x) mx = medium->p.x;	/* minimum */
-+      else if (mx > rx) mx = rx;	/* fits */
-+      /* else use medium->q.x, i.e., the maximum */
-+    if (medium->p.y < my)	/* non-empty height range */
-+      if (ry < medium->p.y) my = medium->p.y;	/* minimum */
-+      else if (my > ry) my = ry;	/* fits */
-+      /* else use medium->q.y, i.e., the maximum */
- 
-     /* Translate to align the centers. */ 
-     gs_make_translation(mx / 2, my / 2, pmat);
--- /dev/null
+++ print/ghostscript-gpl/files/patch-src_cpca_mk_cmd.c
@@ -0,0 +1,270 @@
+--- src/cpca_mk_cmd.c.orig	Wed Mar 15 15:00:26 2006
++++ src/cpca_mk_cmd.c	Wed Mar 15 15:33:26 2006
+@@ -586,6 +586,7 @@
+   Ptr             data ;
+   short           size ;
+   Ptr             work ;
++  short          *swork ;
+   unsigned long   comSize = 0 ;
+ 
+   if (p && str) {
+@@ -594,7 +595,9 @@
+     if (data) {
+       work = data ;
+ 
+-      *( ( short *)work )++ = id_val_code_set_Shift_JIS ;
++	  swork = (short *)work ;
++      *swork++ = id_val_code_set_Shift_JIS ;
++	  work = (Ptr)swork ;
+       memcpy( work, str, (unsigned char)str[ 0 ] + 1 ) ;
+       comSize = glue_cpcaSetJob( p,
+                                  Attribute,
+@@ -867,6 +870,7 @@
+   short          size ;
+   Ptr            data ;
+   Ptr            work ;
++  unsigned short *uswork ;
+   unsigned long  comSize = 0 ;
+ 
+   if (p) {
+@@ -877,8 +881,10 @@
+ 
+       *work++ = id_val_resolution_type_dpi ;
+ 
+-      *( ( unsigned short *)work )++ = resolutionX ;
+-      *( ( unsigned short *)work )++ = resolutionY ;
++	  uswork = (unsigned short *)work ;
++      *uswork++ = resolutionX ;
++      *uswork++ = resolutionY ;
++      work = (Ptr)uswork ;
+ 
+       comSize = glue_cpcaSetDocument ( p,
+                                        id_att_resolution,
+@@ -1597,6 +1603,8 @@
+   short                paramSize ;
+   unsigned long        userID ;
+   unsigned long        password ;
++  cpcaHANDLE           *cpcaHANDLEp ;
++  cpcaUBYTE            *cpcaUBYTEp ;
+ 
+ 
+   z_setUserInfo( userInfo, &userID, &password ) ;
+@@ -1616,9 +1624,14 @@
+   p += comSize ;
+ 
+   /* ¸ÇÍ­¥Ñ¥é¥á¡¼¥¿¤ÎÀßÄê */
+-  *( ( cpcaHANDLE *)p )++  = inParam->Object1 ;
+-  *( ( cpcaUBYTE  *)p )++  = inParam->Mode ;
+-  *( ( cpcaHANDLE *)p )++  = inParam->Object2 ;
++  cpcaHANDLEp = (cpcaHANDLE *)p ;
++  *cpcaHANDLEp++  = inParam->Object1 ;
++  cpcaUBYTEp = (cpcaUBYTE *)cpcaHANDLEp ;
++  *cpcaUBYTEp++  = inParam->Mode ;
++  cpcaHANDLEp = (cpcaHANDLE *)cpcaUBYTEp ;
++  *cpcaHANDLEp++  = inParam->Object2 ;
++  p = (Ptr)cpcaHANDLEp ;
++
+   comSize += 9;
+ 
+   return comSize ;
+@@ -1644,7 +1657,7 @@
+   short             paramSize ;
+   unsigned long     userID ;
+   unsigned long     password ;
+-
++  cpcaATTRIB        *cpcaATTRIBp;
+ 	
+   z_setUserInfo( userInfo, &userID, &password ) ;
+   paramSize = 2 + inParam->Size ;
+@@ -1661,7 +1674,9 @@
+   p += comSize ;
+ 
+   /*  ¸ÇÍ­¥Ñ¥é¥á¡¼¥¿¤ÎÀßÄê */
+-  *( ( cpcaATTRIB *)p )++  = inParam->Attribute ;
++  cpcaATTRIBp = (cpcaATTRIB *)p ;
++  *cpcaATTRIBp++  = inParam->Attribute ;
++  p = (Ptr)cpcaATTRIBp ;
+   if ( inParam->Data && ( inParam->Size > 0 ) )
+   {
+     memcpy( p, inParam->Data, inParam->Size ) ;
+@@ -1687,6 +1702,7 @@
+   short               paramSize ;
+   unsigned long       userID ;
+   unsigned long       password ;
++  cpcaHANDLE          *cpcaHANDLEp ;
+ 
+   z_setUserInfo( userInfo, &userID, &password ) ;
+   paramSize = sizeof( cpcaHANDLE ) ;
+@@ -1703,7 +1719,10 @@
+   p += comSize ;
+ 
+   /*  ¸ÇÍ­¥Ñ¥é¥á¡¼¥¿¤ÎÀßÄê */
+-  *( ( cpcaHANDLE *)p )++ = inParam->Object ;
++  cpcaHANDLEp = (cpcaHANDLE *)p ;
++  *cpcaHANDLEp++ = inParam->Object ;
++  p = (Ptr)cpcaHANDLEp ;
++
+   comSize += paramSize ;
+ 
+   return comSize ;
+@@ -1723,6 +1742,7 @@
+   short             paramSize ;
+   unsigned long     userID ;
+   unsigned long     password ;
++  cpcaATTRIB        *cpcaATTRIBp;
+ 
+   z_setUserInfo( userInfo, &userID, &password ) ;
+   paramSize = sizeof( cpcaATTRIB ) + inParam->Size ;
+@@ -1739,7 +1759,9 @@
+   p += comSize ;
+ 
+   /*  ¸ÇÍ­¥Ñ¥é¥á¡¼¥¿¤ÎÀßÄê */
+-  *( ( cpcaATTRIB *)p )++ = inParam->Attribute ;
++  cpcaATTRIBp = (cpcaATTRIB *)p; 
++  *cpcaATTRIBp++ = inParam->Attribute ;
++  p = (Ptr)cpcaATTRIBp ;
+   if ( inParam->Data && ( inParam->Size > 0 ) )
+   {
+     memcpy( p, inParam->Data, inParam->Size ) ;
+@@ -1764,22 +1786,27 @@
+   short                 comSize ;
+   Ptr                   work ;
+   char                  BindName;
++  unsigned char         *ucwork ;
+ 
+   work = p ;
+ 
+   /* ¥Ó¥ó¥¨¥¤¥ê¥¢¥¹¤ÎÀßÄê */
+-  *( ( unsigned char *)work )++ = bindInfo;
++  ucwork = (unsigned char *)work ;
++  *ucwork++ = bindInfo;
+   /* ¥Ó¥óÈÖ¹æ¤ÎÀßÄê¡á¤Ê¤·¡Ê£°¤ò»ØÄê) */
+-  *( ( unsigned char *)work )++ = bindNum ;
++  *ucwork++ = bindNum ;
+   /* ¥Ó¥ó̾¾Î»ØÄê */
+   /*  nullʸ»úÎó»ØÄê */
+   BindName = 0;
++  work = (Ptr)ucwork ;
+ 
+   memcpy( ( StringPtr )work, &BindName, 1 ) ;
+   work += 1 ;
+   /* ³«»Ï¥Ó¥ó¡¢½ªÎ»¥Ó¥ó»ØÄê */
+-  *( ( unsigned char *)work )++ = 0 ;
+-  *( ( unsigned char *)work )++ = 0 ;
++  ucwork = (unsigned char *)work ;
++  *ucwork++ = 0 ;
++  *ucwork++ = 0 ;
++  work = (Ptr)ucwork ;
+   /* ¥µ¥¤¥º¤Î¼èÆÀ */
+   comSize = work - p ;
+ 
+@@ -1803,19 +1830,24 @@
+   Ptr                   work ;
+   char                  count;
+   char                  str_count;
++  unsigned char         *ucwork ;
++  unsigned short        *uswork ;
+ 
+   work = p ;
+   count = 1;
+   str_count = 1;
+ 
+   /* Type:¥Õ¥£¥Ë¥Ã¥·¥ó¥°ÊýË¡¤ÎÀßÄê */
+-  *( ( unsigned char *)work )++ = str_count;
++  ucwork = (unsigned char *)work ;
++  *ucwork++ = str_count;
+   /* Type:¥Õ¥£¥Ë¥Ã¥·¥ó¥°ÊýË¡¤ÎÀßÄê */
+-  *( ( unsigned char *)work )++ = id_val_finishing_type_staple_stitching;
++  *ucwork++ = id_val_finishing_type_staple_stitching;
+   /* Count:¥Õ¥£¥Ë¥Ã¥·¥ó¥°¤ò¹Ô¤¦¸Ä¿ô */
+-  *( ( unsigned char *)work )++ = count ;
++  *ucwork++ = count ;
+   /* Locate:¥Õ¥£¥Ë¥Ã¥·¥ó¥°¤ò¹Ô¤¦²Õ½ê */
+-  *( ( unsigned short *)work )++ = staple_val;
++  uswork = (unsigned short *)ucwork ;
++  *uswork++ = staple_val;
++  work = (Ptr)uswork ;
+   /* ¥µ¥¤¥º¤Î¼èÆÀ */
+   comSize = work - p ;
+ 
+@@ -1839,6 +1871,7 @@
+   short          paramSize ;
+   unsigned long  userID ;
+   unsigned long  password ;
++  cpcaHANDLE     *cpcaHANDLEp ;
+ 
+   z_setUserInfo( userInfo, &userID, &password ) ;
+   paramSize = 4 ;
+@@ -1855,7 +1888,9 @@
+   p += comSize ;
+ 
+   /* ¸ÇÍ­¥Ñ¥é¥á¡¼¥¿¤ÎÀßÄê */
+-  *( ( cpcaHANDLE *)p )++ = inParam->Object ;
++  cpcaHANDLEp = (cpcaHANDLE *)p ;
++  *cpcaHANDLEp++ = inParam->Object ;
++  p = (Ptr)cpcaHANDLEp ;
+   comSize += paramSize ;
+ 
+   return comSize ;
+@@ -1876,7 +1911,7 @@
+   short           paramSize ;
+   unsigned long   userID ;
+   unsigned long   password ;
+-
++  cpcaATTRIB      *cpcaATTRIBp ;
+ 
+   z_setUserInfo( userInfo, &userID, &password ) ;
+   paramSize = 2 + inParam->Size ;
+@@ -1893,7 +1928,9 @@
+   p += comSize ;
+ 
+   /* ¸ÇÍ­¥Ñ¥é¥á¡¼¥¿¤ÎÀßÄê */
+-  *( ( cpcaATTRIB *)p )++ = inParam->Attribute ;
++  cpcaATTRIBp = (cpcaATTRIB *)p ;
++  *cpcaATTRIBp++ = inParam->Attribute ;
++  p = (Ptr)cpcaATTRIBp ;
+   if ( inParam->Data && ( inParam->Size > 0 ) )
+   {
+     memcpy( p, inParam->Data, inParam->Size ) ;
+@@ -1918,6 +1955,8 @@
+   short           paramSize ;
+   unsigned long   userID ;
+   unsigned long   password ;
++  cpcaHANDLE      *cpcaHANDLEp ;
++  cpcaUSHORT      *cpcaUSHORTp ;
+ 
+   z_setUserInfo( userInfo, &userID, &password ) ;
+   paramSize = 6 + inParam->Size ;
+@@ -1934,8 +1973,11 @@
+   p += comSize ;              
+ 
+   /* ¸ÇÍ­¥Ñ¥é¥á¡¼¥¿¤ÎÀßÄê */
+-  *( ( cpcaHANDLE *)p )++     = inParam->Object ;
+-  *( ( cpcaUSHORT *)p )++     = inParam->Method ;
++  cpcaHANDLEp = (cpcaHANDLE *)p ;
++  *cpcaHANDLEp++     = inParam->Object ;
++  cpcaUSHORTp = (cpcaUSHORT *)cpcaHANDLEp ;
++  *cpcaUSHORTp++     = inParam->Method ;
++  p = (Ptr)cpcaUSHORTp ;
+   if ( inParam->Data && ( inParam->Size > 0 ) )
+   {
+     memcpy( p, inParam->Data, inParam->Size ) ;
+@@ -2075,6 +2117,7 @@
+   short                 paramSize ;
+   unsigned long         userID ;
+   unsigned long         password ;
++  cpcaUBYTE             *cpcaUBYTEp ;
+ 
+   z_setUserInfo( userInfo, &userID, &password ) ;
+   paramSize = 1 ;
+@@ -2091,7 +2134,9 @@
+   p += comSize ;
+ 
+   /* ¸ÇÍ­¥Ñ¥é¥á¡¼¥¿¤ÎÀßÄê */
+-  *( ( cpcaUBYTE *)p )++ = inParam->Code ;
++  cpcaUBYTEp = (cpcaUBYTE *)p ;
++  *cpcaUBYTEp++ = inParam->Code ;
++  p = (Ptr)cpcaUBYTEp ;
+   comSize += paramSize ;
+ 
+   return comSize ;
--- /dev/null
+++ print/ghostscript-gpl/files/patch-alps__gdevalps.c
@@ -0,0 +1,22 @@
+--- alps/gdevalps.c.orig	Wed Nov 24 09:28:35 1999
++++ alps/gdevalps.c	Fri Dec 17 19:12:35 2004
+@@ -173,7 +173,7 @@
+ {
+   int lnum;
+   int line_size = gdev_mem_bytes_per_scan_line((gx_device *)pdev);
+-  byte *data = (byte *)gs_malloc(8, line_size, "md50_print_page(data)" );
++  byte *data = (byte *)gs_malloc(pdev->memory, 8, line_size, "md50_print_page(data)" );
+   int skipping = 0;
+   int nbyte;
+   int nskip;
+@@ -232,8 +232,8 @@
+ {
+   int lnum;
+   int line_size = gdev_mem_bytes_per_scan_line((gx_device *)pdev);
+-  byte *data = (byte *)gs_malloc(8, line_size, "md1xm_print_page(data)");
+-  byte *out_start = (byte *)gs_malloc(8, line_size, "md1xm_print_page(data)");
++  byte *data = (byte *)gs_malloc(pdev->memory, 8, line_size, "md1xm_print_page(data)");
++  byte *out_start = (byte *)gs_malloc(pdev->memory, 8, line_size, "md1xm_print_page(data)");
+   int skipping = 0;
+   int nbyte;
+ 
--- /dev/null
+++ print/ghostscript-gpl/files/patch-lib__ps2epsi.CAN-2004-0967
@@ -0,0 +1,19 @@
+--- lib/ps2epsi.orig	Thu May 25 02:19:27 2006
++++ lib/ps2epsi	Fri Mar 23 10:55:11 2007
+@@ -5,14 +5,8 @@
+ # executable name set in the makefile
+ GS_EXECUTABLE=gs
+ 
+-# try to create a temporary file securely
+-tmpdir=/tmp/ps2epsi.$$
+-(umask 077 && mkdir $tmpdir)
+-if test ! -d $tmpdir; then
+-	echo "failed: could not create temporary file"
+-	exit 1
+-fi
+-tmpfile=$tmpdir/ps2epsi$$
++tmpfile=`mktemp -t ps2epsi.XXXXXX || exit 1`
++trap "rm -rf $tmpfile" 0 1 2 3 7 13 15
+ 
+ export outfile
+ 
--- print/ghostscript-gpl/files/e-patch-src-gdevdmpr.c
+++ /dev/null
@@ -1,63 +0,0 @@
---- src/gdevdmpr.c.orig	Tue May 13 20:43:37 1997
-+++ src/gdevdmpr.c	Tue May 24 21:41:23 2005
-@@ -41,7 +41,7 @@
- /* include library header. */
- #include "dviprlib.h"
- 
--extern FILE *lib_fopen(P1(const char *));
-+extern FILE *lib_fopen(const char *);
- 
- #define LOCAL_DEBUG 0
- 
-@@ -87,12 +87,12 @@
- private dev_proc_close_device(gdev_dmprt_close);
- 
- /* declarations of sub functions to get printer properties. */
--private void gdev_dmprt_init_printer_props(P1(gx_device_dmprt *));
--private int gdev_dmprt_get_printer_props(P2(gx_device_dmprt *,char *));
--private int gdev_dmprt_check_code_props(P2(byte * ,int ));
--private FILE *gdev_dmprt_dviprt_lib_fopen(P2(const char *,char *));
-+private void gdev_dmprt_init_printer_props(gx_device_dmprt *);
-+private int gdev_dmprt_get_printer_props(gx_device_dmprt *,char *);
-+private int gdev_dmprt_check_code_props(byte * ,int );
-+private FILE *gdev_dmprt_dviprt_lib_fopen(const char *,char *);
- 
--private int gdev_dmprt_error_no_dviprt_to_gs(P1(int ));
-+private int gdev_dmprt_error_no_dviprt_to_gs(int );
- 
- /* The device descriptor */
- gx_device_procs prn_dmprt_procs = {
-@@ -833,6 +833,7 @@
-   return code;
- }
- 
-+private const char * gp_file_name_concat_string(const char *, unsigned);
- private FILE *
- gdev_dmprt_dviprt_lib_fopen(const char *fnamebase,char *fname)
- {
-@@ -845,8 +846,7 @@
-     env = getenv("TEXCFG");
-     if (env) {
-       strcpy(fname,env);
--      strcat(fname,
--        gp_file_name_concat_string(env,strlen(env),fname,strlen(fnamebase)));
-+      strcat(fname, gp_file_name_concat_string(env,strlen(env)));
-       strcat(fname,fnamebase);
-       fp = fopen(fname,gp_fmode_rb);
-     }
-@@ -867,4 +867,15 @@
-   default:
-     return -1;
-   }
-+}
-+
-+/* Answer the string to be used for combining a directory/device prefix */
-+/* with a base file name. The prefix directory/device is examined to    */
-+/* determine if a separator is needed and may return an empty string    */
-+private const char *
-+gp_file_name_concat_string(const char *prefix, unsigned plen)
-+{
-+    if (plen > 0 && prefix[plen - 1] == '/')
-+        return "";
-+    return "/";
- }
Index: patch-mjc:gdevmjc.c
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-mjc:gdevmjc.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-mjc:gdevmjc.c -L print/ghostscript-gpl/files/patch-mjc:gdevmjc.c -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-mjc:gdevmjc.c
+++ print/ghostscript-gpl/files/patch-mjc:gdevmjc.c
@@ -1,5 +1,5 @@
 --- mjc/gdevmjc.c.orig	Sat Nov  2 17:58:50 1996
-+++ mjc/gdevmjc.c	Sun Nov 10 21:37:22 2002
++++ mjc/gdevmjc.c	Fri Dec 31 16:24:50 2004
 @@ -43,7 +43,8 @@
  #include <limits.h>
  #include "gdevprn.h"
@@ -259,6 +259,30 @@
  
  
  private int
+@@ -988,7 +980,7 @@
+ 
+ /* NOZ */
+   xtalbuff_size = plane_size*8 + 64;
+-  xtalbuff = (short *) gs_malloc( xtalbuff_size*(16*4+2*4) , W, "mj_colour_print_barrier");
++  xtalbuff = (short *) gs_malloc(pdev->memory, xtalbuff_size*(16*4+2*4) , W, "mj_colour_print_barrier");
+   memset(xtalbuff, 0, xtalbuff_size*(16*4+2*4) * W);
+   {
+   	int i;
+@@ -1027,12 +1019,12 @@
+   	p += xtalbuff_size;
+   }
+ 
+-  storage = (word *) gs_malloc(storage_size_words, W, "mj_colour_print_page");
++  storage = (word *) gs_malloc(pdev->memory, storage_size_words, W, "mj_colour_print_page");
+ 
+ /* prepare a temporary buffer for mj_raster_cmd */
+ 
+   mj_tmp_buf_size = plane_size;
+-  mj_tmp_buf = (byte *) gs_malloc(mj_tmp_buf_size, W ,"mj_raster_buffer");
++  mj_tmp_buf = (byte *) gs_malloc(pdev->memory, mj_tmp_buf_size, W ,"mj_raster_buffer");
+ 
+ #if 0
+   fprintf(stderr, "storage_size_words :%d\n", storage_size_words);
 @@ -1163,7 +1155,8 @@
  
    /* Send each scan line in turn */
@@ -269,7 +293,19 @@
      int cErr, mErr, yErr, kErr;
      int this_pass, i;
      long int lnum;
-@@ -1412,10 +1405,10 @@
+@@ -1403,19 +1396,19 @@
+     fflush(prn_stream);
+   }
+   /* free temporary storage */
+-  gs_free((char *) storage, storage_size_words, W, "mj_colour_print_page");
+-  gs_free((char *) mj_tmp_buf, mj_tmp_buf_size, W, "mj_raster_buffer");
+-  gs_free((char *) xtalbuff , xtalbuff_size*(16*4+2*4) , W, "mj_colour_print_barrier");
++  gs_free(pdev->memory, (char *) storage, storage_size_words, W, "mj_colour_print_page");
++  gs_free(pdev->memory, (char *) mj_tmp_buf, mj_tmp_buf_size, W, "mj_raster_buffer");
++  gs_free(pdev->memory, (char *) xtalbuff , xtalbuff_size*(16*4+2*4) , W, "mj_colour_print_barrier");
+ 
+   return 0;
+ }
  
  void 
  mj_color_correct(gx_color_value *Rptr ,gx_color_value *Gptr , gx_color_value *Bptr )
Index: patch-lib:gs_init.ps
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/files/patch-lib:gs_init.ps,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/files/patch-lib:gs_init.ps -L print/ghostscript-gpl/files/patch-lib:gs_init.ps -u -r1.1 -r1.2
--- print/ghostscript-gpl/files/patch-lib:gs_init.ps
+++ print/ghostscript-gpl/files/patch-lib:gs_init.ps
@@ -1,14 +1,6 @@
---- lib/gs_init.ps.orig	Tue Sep  7 00:40:52 2004
-+++ lib/gs_init.ps	Tue May 24 22:19:25 2005
-@@ -122,6 +122,7 @@
- currentdict /DELAYBIND known   /DELAYBIND exch def
- currentdict /DISKFONTS known   /DISKFONTS exch def
- currentdict /DOINTERPOLATE .knownget { /INTERPOLATE exch def } if
-+currentdict /NOMEDIAATTRS known /NOMEDIAATTRS exch def
- currentdict /ESTACKPRINT known   /ESTACKPRINT exch def
- currentdict /FAKEFONTS known   /FAKEFONTS exch def
- currentdict /FIXEDMEDIA known   /FIXEDMEDIA exch def
-@@ -1420,7 +1421,7 @@
+--- lib/gs_init.ps.orig	Sat Mar  5 07:02:23 2005
++++ lib/gs_init.ps	Thu Apr 21 13:05:43 2005
+@@ -1440,7 +1440,7 @@
  % Set the default screen and BG/UCR.
  /.setdefaultbgucr {
    systemdict /setblackgeneration known {
@@ -17,7 +9,7 @@
    } if
  } bind def
  /.useloresscreen {	% - .useloresscreen <bool>
-@@ -2199,3 +2200,7 @@
+@@ -2241,3 +2241,7 @@
  ifelse
  
  % The interpreter will run the initial procedure (start).
--- /dev/null
+++ print/ghostscript-gpl/files/patch-src__gdevperm.c
@@ -0,0 +1,11 @@
+--- src/gdevperm.c.orig	Fri Jun 18 16:00:47 2004
++++ src/gdevperm.c	Fri Dec 31 18:06:42 2004
+@@ -289,7 +289,7 @@
+ 	(strncmp((const char *)name, (const char *)str, name_size) == 0))
+ 
+ private int
+-perm_get_color_comp_index(const gx_device *pdev, const char *pname,
++perm_get_color_comp_index(gx_device *pdev, const char *pname,
+ 					int name_size, int component_type)
+ {
+     const gx_device_perm_t * const dev = (const gx_device_perm_t *)pdev;
--- /dev/null
+++ print/ghostscript-gpl/files/patch-lips__gdevnpdl.c
@@ -0,0 +1,20 @@
+--- lips/gdevnpdl.c.orig	Thu Nov  2 12:09:18 2000
++++ lips/gdevnpdl.c	Fri Dec 31 17:32:52 2004
+@@ -582,7 +582,7 @@
+     int code;
+     int maxY = lprn->BlockLine / lprn->nBh * lprn->nBh;
+ 
+-    if (!(lprn->CompBuf = gs_malloc(line_size * maxY, sizeof(byte), "npdl_print_page_copies(CompBuf)")))
++    if (!(lprn->CompBuf = gs_malloc(pdev->memory, line_size * maxY, sizeof(byte), "npdl_print_page_copies(CompBuf)")))
+ 	return_error(gs_error_VMerror);
+ 
+ 
+@@ -680,7 +680,7 @@
+     /* Form Feed */
+     fputs("\014", prn_stream);
+ 
+-    gs_free(lprn->CompBuf, line_size * maxY, sizeof(byte), "npdl_print_page_copies(CompBuf)");
++    gs_free(pdev->memory, lprn->CompBuf, line_size * maxY, sizeof(byte), "npdl_print_page_copies(CompBuf)");
+     return 0;
+ }
+ 
--- /dev/null
+++ print/ghostscript-gpl/files/gdevhl12-hl1250.mak
@@ -0,0 +1,16 @@
+### -------------------- The Brother HL-1250 printer -------------------- ###
+### This printer is ljet4-compatible, plus support for source tray        ###
+### selection and special 1200x600 dpi mode.                              ###
+
+hl1250_=$(GLOBJ)gdevhl12.$(OBJ) $(HPDLJM)
+$(DD)hl1250.dev : $(hl1250_) $(DD)page.dev
+	$(SETPDEV) $(DD)hl1250 $(hl1250_)
+
+$(DD)hl1240.dev : $(hl1250_) $(DD)page.dev
+	$(SETPDEV) $(DD)hl1240 $(hl1250_)
+
+# Author: Marek Michalkiewicz <marekm at linux.org.pl>
+# Printer: Brother HL-1250 (may work with some other models too)
+$(GLOBJ)gdevhl12.$(OBJ) : $(GLSRC)gdevhl12.c $(PDEVH) $(gdevdljm_h)
+	$(GLCC) $(GLO_)gdevhl12.$(OBJ) $(C_) $(GLSRC)gdevhl12.c
+
Index: configure
===================================================================
RCS file: /home/cvs/mports/print/ghostscript-gpl/scripts/configure,v
retrieving revision 1.1
retrieving revision 1.2
diff -L print/ghostscript-gpl/scripts/configure -L print/ghostscript-gpl/scripts/configure -u -r1.1 -r1.2
--- print/ghostscript-gpl/scripts/configure
+++ print/ghostscript-gpl/scripts/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $FreeBSD: ports/print/ghostscript-gpl/scripts/configure,v 1.38 2005/06/10 17:10:07 barner Exp $
+# $FreeBSD: ports/print/ghostscript-gpl/scripts/configure,v 1.39 2007/03/27 19:59:21 rafan Exp $
 
 # configure - gs driver preconfiguration, manual driver selection
 # by Andreas Klemm <andreas at FreeBSD.org>
@@ -31,7 +31,6 @@
 		lbp1310 lbp1510 lbp1610 lbp1710 lbp1810 lbp1910 \
 		lips2p lips3 lips4 bjc880j lips4v \
 		m8510 coslw2p coslwxl uniprint \
-		dmprt \
 		lj250 declj250 ap3250 epson eps9mid eps9high lp8000 \
 		epag \
 		escpage lp2000 \
@@ -52,7 +51,6 @@
 		cljet5 cljet5c cljet5pr lj5mono lj5gray \
 		pj pjetxl pjxl paintjet \
 		pjxl300 pxlmono pxlcolor \
-		pcl3 \
 		ijs ibmpro jetp3852 imagen fs600 lxm5700m \
 		lxm3200 lx5000 lex2050 lex3200 lex5700 lex7000 \
 		cp50 necp6 \
@@ -77,7 +75,7 @@
 		pkm pkmraw pksm pksmraw \
 		pngmono pnggray png16 png256 png16m pngalpha \
 		psmono psgray psrgb \
-		pswrite epswrite sgirgb sunhmono \
+		pswrite ps2write epswrite sgirgb sunhmono \
 		tiffcrle tiffg3 tiffg32d tiffg4 \
 		tiff12nc tiff24nc tifflzw tiffpack \
 		bbox \
@@ -344,6 +342,7 @@
   "psgray"   "PostScript (Level 1) 8-bit gray image" "$status_psgray" \
   "psrgb"    "PostScript (Level 2) 24-bit color image" "$status_psrgb" \
   "pswrite"  "PostScript output (like PostScript Distillery)" "$status_pswrite" \
+  "ps2write" "PostScript (Level 2) output" "$status_ps2write" \
   "epswrite" "EPS output (like PostScript Distillery)" "$status_epswrite" \
   "sgirgb"   "SGI RGB pixmap format" "$status_sgirgb" \
   "sunhmono" "Harlequin variant of 1-bit Sun raster file" "$status_sunhmono" \


More information about the Midnightbsd-cvs mailing list