diff options
Diffstat (limited to 'print/ghostscript8/files')
20 files changed, 0 insertions, 629 deletions
diff --git a/print/ghostscript8/files/epag.contrib.mak b/print/ghostscript8/files/epag.contrib.mak deleted file mode 100644 index 2e6117ad4b51..000000000000 --- a/print/ghostscript8/files/epag.contrib.mak +++ /dev/null @@ -1,8 +0,0 @@ -### ------- Epson ESC/Page printer device ----------------- ### -epag_=$(GLOBJ)gdevepag.$(OBJ) - -$(DD)epag.dev : $(epag_) $(DD)page.dev - $(SETPDEV) $(DD)epag $(epag_) - -$(GLOBJ)gdevepag.$(OBJ): $(GLSRC)gdevepag.c $(gdevprn_h) $(PDEVH) - $(GLCC) $(GLO_)gdevepag.$(OBJ) $(C_) $(GLSRC)gdevepag.c diff --git a/print/ghostscript8/files/lqx70ch.upp b/print/ghostscript8/files/lqx70ch.upp deleted file mode 100644 index b5d3cd49e912..000000000000 --- a/print/ghostscript8/files/lqx70ch.upp +++ /dev/null @@ -1,26 +0,0 @@ -# $ApsCVS: src/apsfilter/uniprint/lqx70ch.upp,v 1.2 2000/04/21 18:48:00 andreas Exp $ -# --supModel="Epson LQ-1170 ESC/P2 Dot Matrix, 360x360DpI, Plain Paper" --sDEVICE=uniprint --dNOPAUSE --dSAFER --dupColorModel=/DeviceCMYKgenerate --dupRendering=/ErrorDiffusion --dupOutputFormat=/EscP2 --r360x360 --dupMargins="{ 9.0 0.0 9.0 24.0}" --dupOutputPins=24 --dupBeginPageCommand="< - 1b40 1b40 - 1b2847 0100 01 - 1b2869 0100 01 - 1b2855 0100 0A - 1b5501 - 1b2865 0200 0002 - 1b2843 0200 0000 - 1b2863 0400 0000 0000 ->" --dupAdjustPageLengthCommand --dupEndPageCommand="(\014)" --dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" - diff --git a/print/ghostscript8/files/lqx70cl.upp b/print/ghostscript8/files/lqx70cl.upp deleted file mode 100644 index 91fb1aa89906..000000000000 --- a/print/ghostscript8/files/lqx70cl.upp +++ /dev/null @@ -1,26 +0,0 @@ -# $ApsCVS: src/apsfilter/uniprint/lqx70cl.upp,v 1.2 2000/04/21 18:48:00 andreas Exp $ -# --supModel="Epson LQ-1170 ESC/P2 Dot Matrix, 180x180DpI, Plain Paper" --sDEVICE=uniprint --dNOPAUSE --dSAFER --dupColorModel=/DeviceCMYKgenerate --dupRendering=/ErrorDiffusion --dupOutputFormat=/EscP2 --r180x180 --dupMargins="{ 9.0 0.0 9.0 24.0}" --dupOutputPins=24 --dupBeginPageCommand="< - 1b40 1b40 - 1b2847 0100 01 - 1b2869 0100 01 - 1b2855 0100 14 - 1b5500 - 1b2865 0200 0002 - 1b2843 0200 0000 - 1b2863 0400 0000 0000 ->" --dupAdjustPageLengthCommand --dupEndPageCommand="(\014)" --dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" - diff --git a/print/ghostscript8/files/lqx70cm.upp b/print/ghostscript8/files/lqx70cm.upp deleted file mode 100644 index 895af73aa8d8..000000000000 --- a/print/ghostscript8/files/lqx70cm.upp +++ /dev/null @@ -1,25 +0,0 @@ -# $ApsCVS: src/apsfilter/uniprint/lqx70cm.upp,v 1.2 2000/04/21 18:48:00 andreas Exp $ -# --supModel="Epson LQ-1170 ESC/P2 Dot Matrix, 360x180DpI, Plain Paper" --sDEVICE=uniprint --dNOPAUSE --dSAFER --dupColorModel=/DeviceCMYKgenerate --dupRendering=/ErrorDiffusion --dupOutputFormat=/EscP2 --r360x180 --dupMargins="{ 9.0 24.0 9.0 24.0}" --dupOutputPins=24 --dupBeginPageCommand="< - 1b40 1b40 - 1b2847 0100 01 - 1b2869 0100 01 - 1b2855 0100 14 - 1b5501 - 1b2843 0200 0000 - 1b2863 0400 0000 0000 ->" --dupAdjustPageLengthCommand --dupEndPageCommand="(\014)" --dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" - diff --git a/print/ghostscript8/files/patch-contrib__japanese__dmp_site.ps b/print/ghostscript8/files/patch-contrib__japanese__dmp_site.ps deleted file mode 100644 index 9f7ad073a58a..000000000000 --- a/print/ghostscript8/files/patch-contrib__japanese__dmp_site.ps +++ /dev/null @@ -1,11 +0,0 @@ ---- contrib/japanese/dmp_site.ps.orig Wed Nov 29 20:56:17 2006 -+++ contrib/japanese/dmp_site.ps Sun May 13 21:06:03 2007 -@@ -1,7 +1,7 @@ - %! - BeginConfig - %%%%%%%%%%%%%%%%%%%%%% Standard user cusomizations %%%%%%%%%%%%%%%%%%%%% --/printer (escp_24.src) -+/printer (%%DATADIR%%/%%GS_VERSION%%/lib/escp_24.src) - % horizontal / vertical - % /resolution [ 180.0 180.0 ] - % horizontal / vertical diff --git a/print/ghostscript8/files/patch-contrib__japanese__gdevdmpr.c b/print/ghostscript8/files/patch-contrib__japanese__gdevdmpr.c deleted file mode 100644 index 1e6c3261d464..000000000000 --- a/print/ghostscript8/files/patch-contrib__japanese__gdevdmpr.c +++ /dev/null @@ -1,44 +0,0 @@ ---- contrib/japanese/gdevdmpr.c.orig Thu Apr 26 01:27:24 2007 -+++ contrib/japanese/gdevdmpr.c Tue May 15 01:44:09 2007 -@@ -41,8 +41,6 @@ - /* include library header. */ - #include "dviprlib.h" - --extern FILE *lib_fopen(const char *); -- - #define LOCAL_DEBUG 0 - - #define DEVICE_NAME "dmprt" -@@ -405,8 +403,6 @@ - if (pddev->dmprt.max_height>0 && pddev->dmprt.max_height<pddev->height) - pddev->height = pddev->dmprt.max_height; - -- dviprt_setmessagestream(pddev->dmprt.debug_f ? stderr : NULL); -- - return code; - } - -@@ -425,8 +421,6 @@ - if (code < 0) return code; - if (code == 0) pddev->dmprt.debug_f = vbool; - -- dviprt_setmessagestream(pddev->dmprt.debug_f ? stderr : NULL); -- - code = param_read_bool(plist, "Verbose", &vbool); - if (code < 0) return code; - pddev->dmprt.verbose_f = vbool; -@@ -841,13 +835,12 @@ - char *env; - - strcpy(fname,fnamebase); -- fp = lib_fopen(fname); -+ fp = fopen(fname,"r"); - if (fp == NULL) { - env = getenv("TEXCFG"); - if (env) { - strcpy(fname,env); - strcat(fname, gp_file_name_concat_string(env,strlen(env))); -- strcat(fname,fnamebase); - fp = fopen(fname,gp_fmode_rb); - } - } diff --git a/print/ghostscript8/files/patch-epag__gdevepag.c b/print/ghostscript8/files/patch-epag__gdevepag.c deleted file mode 100644 index b65ef6921509..000000000000 --- a/print/ghostscript8/files/patch-epag__gdevepag.c +++ /dev/null @@ -1,35 +0,0 @@ ---- epag/gdevepag.c.orig Sat Jul 8 13:33:09 2000 -+++ epag/gdevepag.c Mon May 14 01:22:31 2007 -@@ -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 = (byte *)gs_malloc(gs_lib_ctx_get_non_gc_memory_t(), bpl , cont->maxY, "epag_skip_blank_init(bp)"); -+ cont->bp2 = (byte *)gs_malloc(gs_lib_ctx_get_non_gc_memory_t(), 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 = (byte *)gs_malloc(gs_lib_ctx_get_non_gc_memory_t(), 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(gs_lib_ctx_get_non_gc_memory_t(), 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,9 @@ - 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"); -+ gs_free(gs_lib_ctx_get_non_gc_memory_t(), cont->bp, bpl, cont->maxY, "epag_skip_blank_init(bp)"); -+ gs_free(gs_lib_ctx_get_non_gc_memory_t(), cont->bp2, bpl*3/2+1, cont->maxY, "epag_skip_blank_init(bp2)"); -+ gs_free(gs_lib_ctx_get_non_gc_memory_t(), cont->bubbleBuffer, sizeof(EpagBubble), cont->maxBx,"bubbleBuffer"); - } - - private int diff --git a/print/ghostscript8/files/patch-jbig2dec__os_types.h b/print/ghostscript8/files/patch-jbig2dec__os_types.h deleted file mode 100644 index 4ce75024cc04..000000000000 --- a/print/ghostscript8/files/patch-jbig2dec__os_types.h +++ /dev/null @@ -1,11 +0,0 @@ ---- 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 - diff --git a/print/ghostscript8/files/patch-lib::cidfmap b/print/ghostscript8/files/patch-lib::cidfmap deleted file mode 100644 index fe06650806e5..000000000000 --- a/print/ghostscript8/files/patch-lib::cidfmap +++ /dev/null @@ -1,34 +0,0 @@ ---- lib/cidfmap.orig Thu Dec 29 04:56:24 2005 -+++ lib/cidfmap Sat Apr 28 15:25:55 2007 -@@ -26,3 +26,31 @@ - % /ShinGo-Bold /HeiseiKakuGo-W5 ; - % /Ryumin-Medium << /FileType /TrueType /Path (H:/AuxFiles/Fonts/BATANG.TTC) /SubfontID 3 /CSI [(Japan1) 2] >> ; - % -+/Ryumin-Light << /FileType /TrueType /Path (Ryumin-Light.ttf) /SubfontID 0 /CSI [(Japan1) 3] >> ; -+/GothicBBB-Medium << /FileType /TrueType /Path (GothicBBB-Medium.ttf) /SubfontID 0 /CSI [(Japan1) 3] >> ; -+ -+/HeiseiMin-W3 /Ryumin-Light ; -+%/HeiseiMin-W3 /WadaMin-Regular ; -+/HeiseiKakuGo-W5 /GothicBBB-Medium ; -+%/HeiseiKakuGo-W5 /WadaGo-Bold ; -+/FutoMinA101-Bold /Ryumin-Light ; -+%/FutoMinA101-Bold /WadaMin-Regular ; -+/FutoGoB101-Bold /GothicBBB-Medium ; -+%/FutoGoB101-Bold /WadaGo-Bold ; -+/Jun101-Light /Ryumin-Light ; -+%/Jun101-Light /WadaMin-Regular ; -+/MidashiGo-MB31 /GothicBBB-Medium ; -+%/MidashiGo-MB31 /WadaGo-Bold ; -+ -+%/Munhwa-Regular /Munhwa-Regular ; -+%/MunhwaGothic-Regular /MunhwaGothic-Regular ; -+%/Munhwa-Bold /Munhwa-Bold ; -+%/MunhwaGothic-Bold /MunhwaGothic-Bold ; -+ -+/HYGoThic-Medium /MunhwaGothic-Regular ; -+/HYSMyeongJo-Medium /Munhwa-Regular ; -+/HYRGoThic-Medium /MunhwaGothic-Bold ; -+ -+/STHeiti-Regular << /FileType /TrueType /Path (STHeiti-Regular.ttf) /SubfontID 0 /CSI [(CNS1) 5] >> ; -+/STSong-Light << /FileType /TrueType /Path (STSong-Light.ttf) /SubfontID 0 /CSI [(GB1) 5] >> ; -+/MSung-Light << /FileType /TrueType /Path (MSung-Light.ttf) /SubfontID 0 /CSI [(GB1) 5] >> ; diff --git a/print/ghostscript8/files/patch-lib::gs_ttf.ps b/print/ghostscript8/files/patch-lib::gs_ttf.ps deleted file mode 100644 index ba745a856a26..000000000000 --- a/print/ghostscript8/files/patch-lib::gs_ttf.ps +++ /dev/null @@ -1,24 +0,0 @@ ---- 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 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. -+ /posttable post 1 get def -+ } { -+ /posttable post def -+ } ifelse -+ /ItalicAngle posttable 4 gets32 65536.0 div -+ /isFixedPitch posttable 12 getu32 0 ne -+ /UnderlinePosition posttable 8 gets16 upem div -+ /UnderlineThickness posttable 10 gets16 upem div - } if - counttomark 0 ne { .dicttomark } { pop pop } ifelse - /XUID [orgXUID 42 curxuid] diff --git a/print/ghostscript8/files/patch-lib:gs_init.ps b/print/ghostscript8/files/patch-lib:gs_init.ps deleted file mode 100644 index a5c5eaf1b8f3..000000000000 --- a/print/ghostscript8/files/patch-lib:gs_init.ps +++ /dev/null @@ -1,10 +0,0 @@ ---- lib/gs_init.ps.orig Sat Mar 5 07:02:23 2005 -+++ lib/gs_init.ps Thu Apr 21 13:05:43 2005 -@@ -2241,3 +2241,7 @@ - ifelse - - % The interpreter will run the initial procedure (start). -+ -+% unofficial patch: -+% make it possible to print from within acroread pdf viewer -+/Default currenthalftone /Halftone defineresource pop diff --git a/print/ghostscript8/files/patch-lib:gs_statd.ps b/print/ghostscript8/files/patch-lib:gs_statd.ps deleted file mode 100644 index 0ec417a12f2f..000000000000 --- a/print/ghostscript8/files/patch-lib:gs_statd.ps +++ /dev/null @@ -1,23 +0,0 @@ ---- lib/gs_statd.ps.orig Sat Feb 14 04:19:59 2004 -+++ lib/gs_statd.ps Sat Feb 21 23:01:09 2004 -@@ -109,6 +109,12 @@ - /halfletter {396 612 //.setpagesize exec} bind def - % minimum of a4 and letter (a4 width, letter length) - /pa4 {595 792 //.setpagesize exec} bind def -+ /postcard {284 419 //.setpagesize exec} bind def -+ /dbl_postcard {419 568 //.setpagesize exec} bind def -+ /Executive {522 756 //.setpagesize exec} bind def -+ /jenv_you4 {298 666 //.setpagesize exec} bind def -+ /jenv_you2 {324 460 //.setpagesize exec} bind def -+ /jenv_kaku2 {682 942 //.setpagesize exec} bind def - % /tabloid {792 1224 //.setpagesize exec} bind def % 11x17 portrait - % /csheet {1224 1584 //.setpagesize exec} bind def % ANSI C 17x22 - % /dsheet {1584 2448 //.setpagesize exec} bind def % ANSI D 22x34 -@@ -125,6 +131,7 @@ - [ /letter /note %do not change this line, needed by 'setpagetype' - /legal /lettersmall - /11x17 /ledger -+ /postcard /dbl_postcard /Executive /jenv_you4 /jenv_you2 /jenv_kaku2 - /a4small /a3 /a4 - STRICT { (%END SIZES) .skipeof } if - /a0 /a1 /a2 /a5 /a6 /a7 /a8 /a9 /a10 diff --git a/print/ghostscript8/files/patch-lib:pdf_font.ps b/print/ghostscript8/files/patch-lib:pdf_font.ps deleted file mode 100644 index 98f38d21d634..000000000000 --- a/print/ghostscript8/files/patch-lib:pdf_font.ps +++ /dev/null @@ -1,15 +0,0 @@ ---- lib/pdf_font.ps.orig Tue Aug 31 13:03:30 2004 -+++ lib/pdf_font.ps Wed Sep 15 19:15:00 2004 -@@ -1114,10 +1114,12 @@ - - /buildCIDType0 { % <CIDFontType0-font-resource> buildCIDType0 <font> - dup /BaseFont get findCIDFont exch pop -+ addCIDmetrics /CIDFont defineresource - } bdef - - /buildCIDType2 { % <CIDFontType2-font-resource> buildCIDType2 <font> - dup /BaseFont get findCIDFont exch pop -+ addCIDmetrics /CIDFont defineresource - } bdef - - /processCIDToGIDMap { % <fontres> <cidfont> processCIDToGIDMap <fontres> <cidfont> diff --git a/print/ghostscript8/files/patch-src-gdevl256.c b/print/ghostscript8/files/patch-src-gdevl256.c deleted file mode 100644 index c00c180f7f1f..000000000000 --- a/print/ghostscript8/files/patch-src-gdevl256.c +++ /dev/null @@ -1,17 +0,0 @@ ---- src/gdevl256.c.orig Mon Jun 4 00:54:57 2007 -+++ src/gdevl256.c Mon Jun 4 01:13:56 2007 -@@ -143,9 +143,12 @@ - /* for compatibility with the older display modes: */ - /* these are indexed as 0.0.R0.G0.B0.R1.G1.B1. */ - gx_color_index --lvga256_map_rgb_color(gx_device * dev, gx_color_value r, gx_color_value g, -- gx_color_value b) -+lvga256_map_rgb_color(gx_device * dev, const gx_color_value cv[]) - { -+ gx_color_value r = cv[0]; -+ gx_color_value g = cv[1]; -+ gx_color_value b = cv[2]; -+ - #define cv_bits(v,n) (v >> (gx_color_value_bits - n)) - ushort r5 = cv_bits(r, 5), g5 = cv_bits(g, 5), b5 = cv_bits(b, 5); - static const byte cube_bits[32] = diff --git a/print/ghostscript8/files/patch-src-gdevvglb.c b/print/ghostscript8/files/patch-src-gdevvglb.c deleted file mode 100644 index 81abb24feb8a..000000000000 --- a/print/ghostscript8/files/patch-src-gdevvglb.c +++ /dev/null @@ -1,19 +0,0 @@ ---- src/gdevvglb.c.orig Mon Jun 4 01:15:47 2007 -+++ src/gdevvglb.c Mon Jun 4 01:18:45 2007 -@@ -149,10 +149,13 @@ - } - - private gx_color_index --vgalib_map_rgb_color(gx_device * dev, gx_color_value red, -- gx_color_value green, gx_color_value blue) -+vgalib_map_rgb_color(gx_device * dev, const gx_color_value cv[]) - { -- return pc_4bit_map_rgb_color(dev, red, green, blue); -+ gx_color_value r = cv[0]; -+ gx_color_value g = cv[1]; -+ gx_color_value b = cv[2]; -+ -+ return pc_4bit_map_rgb_color(dev, cv); - } - - private int diff --git a/print/ghostscript8/files/patch-src:fapi_ft.c b/print/ghostscript8/files/patch-src:fapi_ft.c deleted file mode 100644 index d1c936dd64c4..000000000000 --- a/print/ghostscript8/files/patch-src:fapi_ft.c +++ /dev/null @@ -1,22 +0,0 @@ ---- src/fapi_ft.c.orig Wed Jul 11 09:26:24 2007 -+++ src/fapi_ft.c Fri Aug 10 02:40:41 2007 -@@ -28,11 +28,14 @@ - #include "gserror.h" - - /* FreeType headers */ --#include "freetype/freetype.h" --#include "freetype/ftincrem.h" --#include "freetype/ftglyph.h" --#include "freetype/ftoutln.h" --#include "freetype/fttrigon.h" -+#include "ft2build.h" -+#include FT_FREETYPE_H -+#include FT_INCREMENTAL_H -+#include FT_GLYPH_H -+#include FT_OUTLINE_H -+#include FT_TRIGONOMETRY_H -+#include "gserrors.h" -+#include "gserror.h" - - /* Note: structure definitions here start with FF_, which stands for 'FAPI FreeType". */ - diff --git a/print/ghostscript8/files/patch-src:gxobj.h b/print/ghostscript8/files/patch-src:gxobj.h deleted file mode 100644 index 9ae2fe0d5535..000000000000 --- a/print/ghostscript8/files/patch-src:gxobj.h +++ /dev/null @@ -1,18 +0,0 @@ ---- 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) |\ - (align_bitmap_mod - 1) |\ - (obj_back_scale - 1)) + 1) - /* The only possible values for obj_align_mod are 4, 8, or 16.... */ -+#else -+#define obj_align_mod 16 -+#endif - #if obj_align_mod == 4 - # define log2_obj_align_mod 2 - #else diff --git a/print/ghostscript8/files/patch-src:unix-gcc.mak b/print/ghostscript8/files/patch-src:unix-gcc.mak deleted file mode 100644 index 0bed3eb9cea8..000000000000 --- a/print/ghostscript8/files/patch-src:unix-gcc.mak +++ /dev/null @@ -1,225 +0,0 @@ ---- src/unix-gcc.mak.orig Tue Jul 31 05:13:56 2007 -+++ src/unix-gcc.mak Fri Aug 10 22:01:41 2007 -@@ -21,15 +21,17 @@ - # source, generated intermediate file, and object directories - # for the graphics library (GL) and the PostScript/PDF interpreter (PS). - --BINDIR=./bin --GLSRCDIR=./src --GLGENDIR=./obj --GLOBJDIR=./obj --PSSRCDIR=./src --PSLIBDIR=./lib --PSRESDIR=./Resource --PSGENDIR=./obj --PSOBJDIR=./obj -+.CURDIR?=. -+BINDIR=${.CURDIR}/bin -+GLSRCDIR=${.CURDIR}/src -+GLGENDIR=${.CURDIR}/obj -+GLOBJDIR=${.CURDIR}/obj -+PSSRCDIR=${.CURDIR}/src -+PSLIBDIR=${.CURDIR}/lib -+PSRESDIR=${.CURDIR}/Resource -+PSGENDIR=${.CURDIR}/obj -+PSOBJDIR=${.CURDIR}/obj -+CONTRIBDIR=${.CURDIR}/contrib - - # Do not edit the next group of lines. - -@@ -48,11 +50,10 @@ - # the directories also define the default search path for the - # initialization files (gs_*.ps) and the fonts. - --INSTALL = $(GLSRCDIR)/instcopy -c --INSTALL_PROGRAM = $(INSTALL) -m 755 --INSTALL_DATA = $(INSTALL) -m 644 -+INSTALL_PROGRAM = ${BSD_INSTALL_SCRIPT} -+INSTALL_DATA = ${BSD_INSTALL_DATA} - --prefix = /usr/local -+prefix = ${PREFIX} - exec_prefix = $(prefix) - bindir = $(exec_prefix)/bin - scriptdir = $(bindir) -@@ -62,6 +63,7 @@ - datadir = $(prefix)/share - gsdir = $(datadir)/ghostscript - gsdatadir = $(gsdir)/$(GS_DOT_VERSION) -+gssharedir = $(libdir)/ghostscript/$(GS_DOT_VERSION) - - docdir=$(gsdatadir)/doc - exdir=$(gsdatadir)/examples -@@ -108,7 +110,7 @@ - # -DHAVE_HYPOT - # use the system hypot() call - --CAPOPT= -DHAVE_MKSTEMP -+CAPOPT= -DHAVE_MKSTEMP -DHAVE_HYPOT - - # Define the name of the executable file. - -@@ -143,7 +145,7 @@ - # some older JPEG streams that violate the standard. If the JPEG - # library built from local sources, the patch will be applied. - --SHARE_JPEG=0 -+SHARE_JPEG=1 - JPEG_NAME=jpeg - - # Define the directory where the PNG library sources are stored, -@@ -158,7 +160,7 @@ - # what its name is. - # See gs.mak and Make.htm for more information. - --SHARE_LIBPNG=0 -+SHARE_LIBPNG=1 - LIBPNG_NAME=png - - # Define the directory where the zlib sources are stored. -@@ -170,7 +172,7 @@ - # what its name is (usually libz, but sometimes libgz). - # See gs.mak and Make.htm for more information. - --SHARE_ZLIB=0 -+SHARE_ZLIB=1 - #ZLIB_NAME=gz - ZLIB_NAME=z - -@@ -179,6 +181,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 - -@@ -207,7 +217,7 @@ - - # Define the name of the C compiler. - --CC=gcc -+CC?=cc - - # Define the name of the linker for the final link step. - # Normally this is the same as the C compiler. -@@ -224,10 +234,10 @@ - # Define the added flags for standard, debugging, profiling - # and shared object builds. - --CFLAGS_STANDARD=-O2 -+CFLAGS_STANDARD?=-O2 - CFLAGS_DEBUG=-g -O0 - CFLAGS_PROFILE=-pg -O2 --CFLAGS_SO=-fPIC -shared -+CFLAGS_SO=-fPIC - - # Define the other compilation flags. Add at most one of the following: - # -DBSD4_2 for 4.2bsd systems. -@@ -240,7 +250,8 @@ - # 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=-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"$(gssharedir)\" -+#XCFLAGS+=-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"$(gssharedir)\" -+XCFLAGS+=-DUPD_SIGNAL=0 -I${JPXSRCDIR}/src/libjasper/include -I${LOCALBASE}/include/libpng -I${LOCALBASE}/include - - CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS) - -@@ -251,7 +262,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. --XLDFLAGS= -+XLDFLAGS+=-L${LOCALBASE}/lib - - LDFLAGS=$(XLDFLAGS) - -@@ -262,7 +273,7 @@ - # Solaris may need -lnsl -lsocket -lposix4. - # (Libraries required by individual drivers are handled automatically.) - --EXTRALIBS=-rdynamic -ldl -+EXTRALIBS+=-Wl,-export-dynamic - - # Define the standard libraries to search at the end of linking. - # Most platforms require -lpthread for the POSIX threads library; -@@ -284,7 +295,7 @@ - # Note that x_.h expects to find the header files in $(XINCLUDE)/X11, - # not in $(XINCLUDE). - --XINCLUDE=-I/usr/X11R6/include -+XINCLUDE=-I${X11BASE}/include - - # 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 -@@ -296,12 +307,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 --#XLIBS=Xt SM ICE Xext X11 -+XLIBS=Xt SM ICE Xext X11 - - #XLIBDIRS=-L/usr/local/X/lib --XLIBDIRS=-L/usr/X11R6/lib -+XLIBDIRS=-L${X11BASE}/lib - XLIBDIR= --XLIBS=Xt Xext X11 -+#XLIBS=Xt Xext X11 - - # Define whether this platform has floating point hardware: - # FPU_TYPE=2 means floating point is faster than fixed point. -@@ -319,16 +330,16 @@ - - # If POSIX sync primitives are used, also change the STDLIBS to include - # the pthread library. --#SYNC=posync -+SYNC=posync - - # Default is No sync primitives since some platforms don't have it (HP-UX) --SYNC=nosync -+#SYNC=nosync - - # ------ Devices and features ------ # - - # Choose the language feature(s) to include. See gs.mak for details. - --FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)epsf.dev $(GLD)pipe.dev $(PSD)fapi.dev -+FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)epsf.dev $(GLD)pipe.dev $(PSD)fapi.dev $(PSD)jbig2.dev $(PSD)jpx.dev - #FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev - # The following is strictly for testing. - FEATURE_DEVS_ALL=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)rasterop.dev $(PSD)double.dev $(PSD)trapping.dev $(PSD)stocht.dev $(GLD)pipe.dev -@@ -418,7 +429,7 @@ - DEVICE_DEVS21=$(DD)spotcmyk.dev $(DD)devicen.dev $(DD)xcf.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16m.dev $(DD)bmp32b.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev - - # Shared library target to build. --GS_SHARED_OBJS=$(GLOBJDIR)/X11.so $(GLOBJDIR)/lvga256.so $(GLOBJDIR)/vgalib.so -+#GS_SHARED_OBJS=$(GLOBJDIR)/X11.so $(GLOBJDIR)/lvga256.so $(GLOBJDIR)/vgalib.so - #GS_SHARED_OBJS=$(GLOBJDIR)/X11.so - - # ---------------------------- End of options --------------------------- # -@@ -457,6 +468,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 -@@ -466,6 +480,7 @@ - include $(GLSRCDIR)/unix-dll.mak - include $(GLSRCDIR)/unix-end.mak - include $(GLSRCDIR)/unixinst.mak -+include $(CONTRIBDIR)/contrib.mak - - # This has to come last so it won't be taken as the default target. - $(AK): diff --git a/print/ghostscript8/files/patch-src__devs.mak b/print/ghostscript8/files/patch-src__devs.mak deleted file mode 100644 index 9f95e8bc0c5d..000000000000 --- a/print/ghostscript8/files/patch-src__devs.mak +++ /dev/null @@ -1,25 +0,0 @@ ---- src/devs.mak.orig Thu Jun 7 07:03:27 2007 -+++ src/devs.mak Wed Aug 8 23:26:52 2007 -@@ -426,11 +426,11 @@ - ### NON PORTABLE, ONLY UNIX WITH GCC SUPPORT - - $(GLOBJ)lvga256.so: $(lvga256_) -- $(CCLD) -shared -Wl,'-solvga256.so' $(lvga256_) -lvga -lvgagl -+ $(CCLD) -shared -Wl,'-solvga256.so' $(lvga256_) -lvga -lvgagl $(XLDFLAGS) - mv lvga256.so $(GLOBJ)lvga256.so - - $(GLOBJ)vgalib.so: $(vgalib_) -- $(CCLD) -shared -Wl,'-sovgalib.so' $(vgalib_) -lvga -lvgagl -+ $(CCLD) -shared -Wl,'-sovgalib.so' $(vgalib_) -lvga -lvgagl $(XLDFLAGS) - mv vgalib.so $(GLOBJ)vgalib.so - - ### -------------------------- The X11 device -------------------------- ### -@@ -534,7 +534,7 @@ - ### NON PORTABLE, ONLY UNIX WITH GCC SUPPORT - - $(GLOBJ)X11.so: $(x11alt_) $(x11_) -- $(CCLD) -shared -Wl,'-soX11.so' $(x11alt_) $(x11_) -L/usr/X11R6/lib -lXt -lSM -lICE -lXext -lX11 $(XLIBDIRS) -+ $(CCLD) -shared -Wl,'-soX11.so' $(x11alt_) $(x11_) -lXt -lSM -lICE -lXext -lX11 $(XLIBDIRS) - mv X11.so $(GLOBJ)X11.so - - ###### --------------- Memory-buffered printer devices --------------- ###### diff --git a/print/ghostscript8/files/patch-src__gdevperm.c b/print/ghostscript8/files/patch-src__gdevperm.c deleted file mode 100644 index da5d52ceedf8..000000000000 --- a/print/ghostscript8/files/patch-src__gdevperm.c +++ /dev/null @@ -1,11 +0,0 @@ ---- 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; |