aboutsummaryrefslogtreecommitdiffstats
path: root/print/ghostscript-gpl/files
diff options
context:
space:
mode:
Diffstat (limited to 'print/ghostscript-gpl/files')
-rw-r--r--print/ghostscript-gpl/files/Makefile.dmprt9
-rw-r--r--print/ghostscript-gpl/files/Makefile.epag23
-rw-r--r--print/ghostscript-gpl/files/Makefile.pcl337
-rw-r--r--print/ghostscript-gpl/files/epag.contrib.mak8
-rw-r--r--print/ghostscript-gpl/files/lqx70ch.upp26
-rw-r--r--print/ghostscript-gpl/files/lqx70cl.upp26
-rw-r--r--print/ghostscript-gpl/files/lqx70cm.upp25
-rw-r--r--print/ghostscript-gpl/files/patch-contrib__japanese__dmp_site.ps11
-rw-r--r--print/ghostscript-gpl/files/patch-contrib__japanese__gdevdmpr.c44
-rw-r--r--print/ghostscript-gpl/files/patch-epag__gdevepag.c217
-rw-r--r--print/ghostscript-gpl/files/patch-jbig2dec__os_types.h11
-rw-r--r--print/ghostscript-gpl/files/patch-lib-FAPIcidfmap61
-rw-r--r--print/ghostscript-gpl/files/patch-lib-FAPIconfig21
-rw-r--r--print/ghostscript-gpl/files/patch-lib-cidfmap61
-rw-r--r--print/ghostscript-gpl/files/patch-lib::gs_ttf.ps24
-rw-r--r--print/ghostscript-gpl/files/patch-lib:gs_statd.ps23
-rw-r--r--print/ghostscript-gpl/files/patch-lib:pdf_font.ps15
-rw-r--r--print/ghostscript-gpl/files/patch-src-Makefile.in79
-rw-r--r--print/ghostscript-gpl/files/patch-src-contrib.mak8
-rw-r--r--print/ghostscript-gpl/files/patch-src-gdevl256.c17
-rw-r--r--print/ghostscript-gpl/files/patch-src-gdevvglb.c19
-rw-r--r--print/ghostscript-gpl/files/patch-src-unixinst.mak11
-rw-r--r--print/ghostscript-gpl/files/patch-src:fapi_ft.c22
-rw-r--r--print/ghostscript-gpl/files/patch-src:gxobj.h18
-rw-r--r--print/ghostscript-gpl/files/patch-src:unix-gcc.mak217
-rw-r--r--print/ghostscript-gpl/files/patch-src__devs.mak25
-rw-r--r--print/ghostscript-gpl/files/patch-src__gdevperm.c11
-rw-r--r--print/ghostscript-gpl/files/patch-src__zicc.c12
-rw-r--r--print/ghostscript-gpl/files/pkg-message.in8
29 files changed, 0 insertions, 1089 deletions
diff --git a/print/ghostscript-gpl/files/Makefile.dmprt b/print/ghostscript-gpl/files/Makefile.dmprt
deleted file mode 100644
index dc41ea2cfe5..00000000000
--- a/print/ghostscript-gpl/files/Makefile.dmprt
+++ /dev/null
@@ -1,9 +0,0 @@
-# $FreeBSD$
-
-post-install-dmprt:
- ${INSTALL_PROGRAM} ${WRKSRC}/${EPAG_NAME}/ert ${PREFIX}/bin
- cd ${FILESDIR} && \
- ${INSTALL_DATA} lqx70ch.upp lqx70cl.upp lqx70cm.upp \
- ${DATADIR}/${PORTVERSION}/lib
-
-post-install: post-install-dmprt
diff --git a/print/ghostscript-gpl/files/Makefile.epag b/print/ghostscript-gpl/files/Makefile.epag
deleted file mode 100644
index 94bc1b7601b..00000000000
--- a/print/ghostscript-gpl/files/Makefile.epag
+++ /dev/null
@@ -1,23 +0,0 @@
-# $FreeBSD$
-
-# EPAG - additional driver for Epson ESC/Page printers
-# http://www.humblesoft.com/gdevepag.html
-
-PORTDOCS+= epag
-PORTDOC_FILES+= epag/ert.txt epag/gdevepag.txt epag/ChangeLog \
- epag/psprint epag/gsepagif.sh
-
-pre-build-epag:
- ${LN} -s -f ${WRKSRC}/${EPAG_NAME}/gdevepag.c ${WRKSRC}/src
-
-post-build-epag:
- cd ${WRKSRC}/${EPAG_NAME} && \
- ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile
-
-post-install-docs-epag:
- ${MKDIR} ${WRKSRC}/contrib/epag
- ${INSTALL_DATA} ${WRKSRC}/${EPAG_NAME}/* ${WRKSRC}/contrib/epag
-
-pre-build: pre-build-epag
-post-build: post-build-epag
-post-install-docs: post-install-docs-epag
diff --git a/print/ghostscript-gpl/files/Makefile.pcl3 b/print/ghostscript-gpl/files/Makefile.pcl3
deleted file mode 100644
index 34e6df9020a..00000000000
--- a/print/ghostscript-gpl/files/Makefile.pcl3
+++ /dev/null
@@ -1,37 +0,0 @@
-# $FreeBSD$
-
-PORTDOCS+= pcl3
-PORTDOC_FILES+= pcl3/NEWS pcl3/BUGS pcl3/README pcl3/gs-pcl3.html \
- pcl3/how-to-report.txt pcl3/pcl3opts.html
-
-MAN1+= gs-pcl3.1 pcl3opts.1
-
-post-build-pcl3:
- cd ${WRKSRC} && \
- ${CC} ${CFLAGS} -I./obj -I./soobj -I./src \
- -I./contrib/pcl3/eprn -o bin/pcl3opts \
- contrib/pcl3/src/pcl3opts.c contrib/pcl3/src/pclscan.c \
- contrib/pcl3/eprn/mediasize.c contrib/pcl3/src/pclsize.c
-
-post-install-pcl3:
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/pcl3opts ${PREFIX}/bin
- ${MKDIR} ${DATADIR}/${PORTVERSION}/pcl3
- cd ${WRKSRC}/contrib/pcl3 && \
- ${INSTALL_DATA} lib/example.mcf lib/if-pcl3 \
- ps/calign.ps ps/dumppdd.ps ps/levels-test.ps \
- ps/margins-A4.ps ps/margins-A4Rotated.ps \
- ps/margins-Env10Rotated.ps \
- ps/margins-EnvDLRotated.ps \
- ps/margins-Letter.ps \
- ps/margins-LetterRotated.ps \
- ${DATADIR}/${PORTVERSION}/pcl3
- cd ${WRKSRC}/contrib/pcl3/doc && \
- ${INSTALL_MAN} gs-pcl3.1 pcl3opts.1 ${MANPREFIX}/man/man1
-
-post-install-docs-pcl3:
- ${MKDIR} ${WRKSRC}/contrib/pcl3
- ${INSTALL_DATA} ${WRKSRC}/contrib/pcl3/doc/* ${WRKSRC}/contrib/pcl3
-
-post-build: post-build-pcl3
-post-install: post-install-pcl3
-post-install-docs: post-install-docs-pcl3
diff --git a/print/ghostscript-gpl/files/epag.contrib.mak b/print/ghostscript-gpl/files/epag.contrib.mak
deleted file mode 100644
index 2e6117ad4b5..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/lqx70ch.upp b/print/ghostscript-gpl/files/lqx70ch.upp
deleted file mode 100644
index b5d3cd49e91..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/lqx70cl.upp b/print/ghostscript-gpl/files/lqx70cl.upp
deleted file mode 100644
index 91fb1aa8990..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/lqx70cm.upp b/print/ghostscript-gpl/files/lqx70cm.upp
deleted file mode 100644
index 895af73aa8d..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/patch-contrib__japanese__dmp_site.ps b/print/ghostscript-gpl/files/patch-contrib__japanese__dmp_site.ps
deleted file mode 100644
index 9f7ad073a58..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/patch-contrib__japanese__gdevdmpr.c b/print/ghostscript-gpl/files/patch-contrib__japanese__gdevdmpr.c
deleted file mode 100644
index 1e6c3261d46..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/patch-epag__gdevepag.c b/print/ghostscript-gpl/files/patch-epag__gdevepag.c
deleted file mode 100644
index 6012768b4d9..00000000000
--- a/print/ghostscript-gpl/files/patch-epag__gdevepag.c
+++ /dev/null
@@ -1,217 +0,0 @@
---- epag/gdevepag.c.orig Sat Jul 8 13:33:09 2000
-+++ epag/gdevepag.c Sat Nov 24 15:25:11 2007
-@@ -102,30 +102,30 @@
- } EpagBubble;
-
- /* The device descriptors */
--private dev_proc_open_device(epag_open);
--private dev_proc_close_device(epag_close);
--private dev_proc_print_page(epag_print_page);
--private void epag_printer_initialize(gx_device_printer *pdev, FILE *fp,int);
--private dev_proc_print_page(epag_print_page);
--private dev_proc_get_params(epag_get_params);
--private dev_proc_put_params(epag_put_params);
--private void epag_paper_set(gx_device_printer *pdev, FILE *fp);
--private void epag_bubble_flush_all(EpagPageCont *cont);
--private void epag_page_cont_init(gx_device_printer *pdev,FILE *fp,EpagPageCont *cont);
--private void epag_page_close(EpagPageCont *cont);
--private int epag_read_image(EpagPageCont *cont);
--private void epag_process_line(EpagPageCont *cont);
--private int epag_is_black(EpagPageCont *cont, int bx);
--private void epag_rect_add(EpagPageCont *cont,int start,int end);
--private void epag_bubble_gen(EpagPageCont *cont,
-+static dev_proc_open_device(epag_open);
-+static dev_proc_close_device(epag_close);
-+static dev_proc_print_page(epag_print_page);
-+static void epag_printer_initialize(gx_device_printer *pdev, FILE *fp,int);
-+static dev_proc_print_page(epag_print_page);
-+static dev_proc_get_params(epag_get_params);
-+static dev_proc_put_params(epag_put_params);
-+static void epag_paper_set(gx_device_printer *pdev, FILE *fp);
-+static void epag_bubble_flush_all(EpagPageCont *cont);
-+static void epag_page_cont_init(gx_device_printer *pdev,FILE *fp,EpagPageCont *cont);
-+static void epag_page_close(EpagPageCont *cont);
-+static int epag_read_image(EpagPageCont *cont);
-+static void epag_process_line(EpagPageCont *cont);
-+static int epag_is_black(EpagPageCont *cont, int bx);
-+static void epag_rect_add(EpagPageCont *cont,int start,int end);
-+static void epag_bubble_gen(EpagPageCont *cont,
- int x0, int x1, int y0, int y1);
--private void epag_bubble_flush(EpagPageCont *cont,EpagBubble *bbl);
--private void epag_bubble_image_out(EpagPageCont *cont,EpagBubble *bbl);
-+static void epag_bubble_flush(EpagPageCont *cont,EpagBubble *bbl);
-+static void epag_bubble_image_out(EpagPageCont *cont,EpagBubble *bbl);
-
- /*
- * デバイスの宣言
- */
--private gx_device_procs prn_epag_procs =
-+static gx_device_procs prn_epag_procs =
- prn_params_procs(epag_open, gdev_prn_output_page, epag_close,
- epag_get_params, epag_put_params);
- gx_device_printer far_data gs_epag_device =
-@@ -140,13 +140,13 @@
- static char *epson_remote_start = "\033\001@EJL \r\n";
-
- /* Open the printer, adjusting the margins if necessary. */
--private int
-+static int
- epag_open(gx_device *pdev)
- {
- return gdev_prn_open(pdev);
- }
-
--private int
-+static int
- epag_close(gx_device *pdev)
- {
- gdev_prn_open_printer(pdev, 1);
-@@ -163,7 +163,7 @@
- return gdev_prn_close(pdev);
- }
-
--private int
-+static int
- epag_print_page(gx_device_printer *pdev, FILE *fp)
- {
- EpagPageCont cont;
-@@ -205,7 +205,7 @@
- GS, '2', 'a', 'b', 'P', /* イメージ描画後下へ */
- };
-
--private void
-+static void
- epag_printer_initialize(gx_device_printer *pdev, FILE *fp, int copies)
- {
- double xDpi,yDpi;
-@@ -260,7 +260,7 @@
- fprintf(fp,"%c%dcoO",GS, copies < 256 ? copies : 255);
- }
-
--private int
-+static int
- epag_get_params(gx_device *pdev, gs_param_list *plist)
- {
- int code;
-@@ -286,7 +286,7 @@
- }
-
- /* Put properties. */
--private int
-+static int
- epag_put_params(gx_device *pdev, gs_param_list *plist)
- {
- param_read_int(plist, "cRowBuf", &epag_cont.cRowBuf);
-@@ -380,7 +380,7 @@
- /*
- * epag_bubble_flush_all: 残っている bubbleを全て出力する。
- */
--private void epag_bubble_flush_all(EpagPageCont *cont)
-+static void epag_bubble_flush_all(EpagPageCont *cont)
- {
- int i;
-
-@@ -392,7 +392,7 @@
- /*
- * epag_page_cont_init: EpagPageContの初期化、バッファ確保等
- */
--private void epag_page_cont_init(gx_device_printer *pdev,FILE *fp,
-+static void epag_page_cont_init(gx_device_printer *pdev,FILE *fp,
- EpagPageCont *cont)
- {
- int bpl;
-@@ -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];
-@@ -433,15 +433,15 @@
- cont->freeBubbleList = &bbtbl[0];
- }
-
--private void
-+static 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
-+static int
- epag_read_image(EpagPageCont *cont)
- {
- int bh = cont->bh;
-@@ -473,7 +473,7 @@
- /*
- * bh行分のラスターデータを処理する
- */
--private void
-+static void
- epag_process_line(EpagPageCont *cont)
- {
- int bh = cont->bh;
-@@ -502,7 +502,7 @@
- else epag_rect_add(cont, 0, cont->maxBx-1);
- }
-
--private int
-+static int
- epag_is_black(EpagPageCont *cont, int bx)
- {
- int bh = cont->bh;
-@@ -520,7 +520,7 @@
- return 0;
- }
-
--private void
-+static void
- epag_rect_add(EpagPageCont *cont,int start,int end)
- {
- int x0 = start * cont->bw;
-@@ -544,7 +544,7 @@
- }
- }
-
--private void
-+static void
- epag_bubble_gen(EpagPageCont *cont, int x0, int x1, int y0, int y1)
- {
- EpagBubble *bbl;
-@@ -569,7 +569,7 @@
- }
- }
-
--private void epag_bubble_flush(EpagPageCont *cont,EpagBubble *bbl)
-+static void epag_bubble_flush(EpagPageCont *cont,EpagBubble *bbl)
- {
- int bx,bx0,bx1;
-
-@@ -588,7 +588,7 @@
-
- /* イメージを出力 */
-
--private void
-+static void
- epag_bubble_image_out(EpagPageCont *cont,EpagBubble *bbl)
- {
- FILE *fp = cont->fp;
diff --git a/print/ghostscript-gpl/files/patch-jbig2dec__os_types.h b/print/ghostscript-gpl/files/patch-jbig2dec__os_types.h
deleted file mode 100644
index 4ce75024cc0..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/patch-lib-FAPIcidfmap b/print/ghostscript-gpl/files/patch-lib-FAPIcidfmap
deleted file mode 100644
index f90521e1b40..00000000000
--- a/print/ghostscript-gpl/files/patch-lib-FAPIcidfmap
+++ /dev/null
@@ -1,61 +0,0 @@
---- lib/FAPIcidfmap.orig 2006-06-01 00:29:52.000000000 +0900
-+++ lib/FAPIcidfmap 2008-03-04 07:05:55.000000000 +0900
-@@ -29,4 +29,58 @@
- %
- % /Ryumin-Medium << /Path (msgothic.ttc) /CIDFontType 0 /FAPI /UFST /CSI [(Japan1) 2] >> ;
- % /HeiseiKakuGo-W5 << /Path (F:/WIN2000/Fonts/BATANG.TTC) /CIDFontType 0 /FAPI /UFST /CSI [(Japan1) 2] >> ;
-+%/Ryumin-Light << /Path (Ryumin-Light.ttf) /CIDFontType 0 /FAPI /UFST /CSI [(Japan1) 2] >> ;
-+%/GothicBBB-Medium << /Path (GothicBBB-Medium.ttf) /CIDFontType 0 /FAPI /UFST /CSI [(Japan1) 2] >> ;
-+
-+/Ryumin-Medium /Ryumin-Light ;
-+/Ryumin-Regular /Ryumin-Light ;
-+/RyuminPro-Light /Ryumin-Light ;
-+
-+/GothicBBBPro-Medium /GothicBBB-Medium ;
-+
-+/KozGoPro-Bold /GothicBBB-Medium ;
-+/KozGoPro-Heavy /GothicBBB-Medium ;
-+/KozGoPro-Medium /GothicBBB-Medium ;
-+/KozGoPro-Regular /GothicBBB-Medium ;
-+
-+/KozMinPro-Bold /Ryumin-Light ;
-+/KozMinPro-Light /Ryumin-Light ;
-+/KozMinPro-Medium /Ryumin-Light ;
-+/KozMinPro-Regular /Ryumin-Light ;
-+
-+/HiraKakuPro-W3 /GothicBBB-Medium ;
-+/HiraKakuPro-W6 /GothicBBB-Medium ;
-+/HiraKakuStd-W8 /GothicBBB-Medium ;
-+
-+/HiraMaruPro-W4 /GothicBBB-Medium ;
-+
-+/HiraMinPro-W3 /Ryumin-Light ;
-+
-+/HeiseiMin-W3 /Ryumin-Light ;
-+/HeiseiKakuGo-W5 /GothicBBB-Medium ;
-+
-+/FutoMinA101-Bold /Ryumin-Light ;
-+/FutoMinA101Pro-Bold /Ryumin-Light ;
-+/FutoGoB101-Bold /GothicBBB-Medium ;
-+/FutoGoB101Pro-Bold /GothicBBB-Medium ;
-
-+/Jun101-Light /Ryumin-Light ;
-+/Jun101Pro-Light /Ryumin-Light ;
-+
-+/MidashiGo-MB31 /GothicBBB-Medium ;
-+/MidashiGoPro-MB31 /GothicBBB-Medium ;
-+
-+/MidashiMinPro-MA31 /Ryumin-Light ;
-+
-+%/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 << /Path (STHeiti-Regular.ttf) /CIDFontType 0 /FAPI /UFST /CSI [(CNS1) 5] >> ;
-+%/STSong-Light << /Path (STSong-Light.ttf) /CIDFontType 0 /FAPI /UFST /CSI [(GB1) 5] >> ;
-+%/MSung-Light << /Path (MSung-Light.ttf) /CIDFontType 0 /FAPI /UFST /CSI [(GB1) 5] >> ;
diff --git a/print/ghostscript-gpl/files/patch-lib-FAPIconfig b/print/ghostscript-gpl/files/patch-lib-FAPIconfig
deleted file mode 100644
index f72f2fd9a6c..00000000000
--- a/print/ghostscript-gpl/files/patch-lib-FAPIconfig
+++ /dev/null
@@ -1,21 +0,0 @@
---- lib/FAPIconfig.orig 2008-03-04 06:50:24.000000000 +0900
-+++ lib/FAPIconfig 2008-03-04 06:51:30.000000000 +0900
-@@ -2,10 +2,14 @@
- % $Id: FAPIconfig 6870 2006-06-20 16:31:15Z leonardo $
- % This is configuration file for FAPI client.
-
--/FontPath (/Fonts) % A default directory for FAPI-handled font files path in FAPIfontmap.
--/CIDFontPath (/CIDFonts) % A default directory for FAPI-handled CID font files path in FAPIcidfmap.
--/HookDiskFonts [1 2 9 11 42] % FontType values for disk PS fonts to be redirected to FAPI.
--/HookEmbeddedFonts [1 2 9 11 42] % FontType values for embedded PS fonts to be redirected to FAPI.
-+%/FontPath (/Fonts) % A default directory for FAPI-handled font files path in FAPIfontmap.
-+/FontPath () % A default directory for FAPI-handled font files path in FAPIfontmap.
-+%/CIDFontPath (/CIDFonts) % A default directory for FAPI-handled CID font files path in FAPIcidfmap.
-+/CIDFontPath () % A default directory for FAPI-handled CID font files path in FAPIcidfmap.
-+%/HookDiskFonts [1 2 9 11 42] % FontType values for disk PS fonts to be redirected to FAPI.
-+/HookDiskFonts [] % FontType values for disk PS fonts to be redirected to FAPI.
-+%/HookEmbeddedFonts [1 2 9 11 42] % FontType values for embedded PS fonts to be redirected to FAPI.
-+/HookEmbeddedFonts [] % FontType values for embedded PS fonts to be redirected to FAPI.
-
- % Values allowed for HookDiskFonts and HookEmbeddedFonts are 1, 2, 9, 11, 42.
- % "Disk fonts" are fonts being installed to Ghostscript with 'lib/Fontmap' or with GS_FONTPATH,
diff --git a/print/ghostscript-gpl/files/patch-lib-cidfmap b/print/ghostscript-gpl/files/patch-lib-cidfmap
deleted file mode 100644
index b83350d1dd3..00000000000
--- a/print/ghostscript-gpl/files/patch-lib-cidfmap
+++ /dev/null
@@ -1,61 +0,0 @@
---- lib/cidfmap.orig 2005-12-29 04:56:24.000000000 +0900
-+++ lib/cidfmap 2008-03-04 07:04:11.000000000 +0900
-@@ -26,3 +26,58 @@
- % /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] >> ;
-+
-+/Ryumin-Medium /Ryumin-Light ;
-+/Ryumin-Regular /Ryumin-Light ;
-+/RyuminPro-Light /Ryumin-Light ;
-+
-+/GothicBBBPro-Medium /GothicBBB-Medium ;
-+
-+/KozGoPro-Bold /GothicBBB-Medium ;
-+/KozGoPro-Heavy /GothicBBB-Medium ;
-+/KozGoPro-Medium /GothicBBB-Medium ;
-+/KozGoPro-Regular /GothicBBB-Medium ;
-+
-+/KozMinPro-Bold /Ryumin-Light ;
-+/KozMinPro-Light /Ryumin-Light ;
-+/KozMinPro-Medium /Ryumin-Light ;
-+/KozMinPro-Regular /Ryumin-Light ;
-+
-+/HiraKakuPro-W3 /GothicBBB-Medium ;
-+/HiraKakuPro-W6 /GothicBBB-Medium ;
-+/HiraKakuStd-W8 /GothicBBB-Medium ;
-+
-+/HiraMaruPro-W4 /GothicBBB-Medium ;
-+
-+/HiraMinPro-W3 /Ryumin-Light ;
-+
-+/HeiseiMin-W3 /Ryumin-Light ;
-+/HeiseiKakuGo-W5 /GothicBBB-Medium ;
-+
-+/FutoMinA101-Bold /Ryumin-Light ;
-+/FutoMinA101Pro-Bold /Ryumin-Light ;
-+/FutoGoB101-Bold /GothicBBB-Medium ;
-+/FutoGoB101Pro-Bold /GothicBBB-Medium ;
-+
-+/Jun101-Light /Ryumin-Light ;
-+/Jun101Pro-Light /Ryumin-Light ;
-+
-+/MidashiGo-MB31 /GothicBBB-Medium ;
-+/MidashiGoPro-MB31 /GothicBBB-Medium ;
-+
-+/MidashiMinPro-MA31 /Ryumin-Light ;
-+
-+%/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/ghostscript-gpl/files/patch-lib::gs_ttf.ps b/print/ghostscript-gpl/files/patch-lib::gs_ttf.ps
deleted file mode 100644
index ba745a856a2..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/patch-lib:gs_statd.ps b/print/ghostscript-gpl/files/patch-lib:gs_statd.ps
deleted file mode 100644
index 0ec417a12f2..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/patch-lib:pdf_font.ps b/print/ghostscript-gpl/files/patch-lib:pdf_font.ps
deleted file mode 100644
index 98f38d21d63..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/patch-src-Makefile.in b/print/ghostscript-gpl/files/patch-src-Makefile.in
deleted file mode 100644
index a3347e63956..00000000000
--- a/print/ghostscript-gpl/files/patch-src-Makefile.in
+++ /dev/null
@@ -1,79 +0,0 @@
---- src/Makefile.in.orig 2008-02-29 17:13:08.000000000 +0900
-+++ src/Makefile.in 2008-03-05 00:25:31.000000000 +0900
-@@ -46,9 +46,8 @@
- # 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}
- INSTALL_SHARED = @INSTALL_SHARED@
-
- prefix = @prefix@
-@@ -164,7 +163,7 @@
- # some older JPEG streams that violate the standard. If the JPEG
- # library built from local sources, the patch will be applied.
-
--SHARE_JPEG=@SHARE_LIBJPEG@
-+SHARE_JPEG=1
- JPEG_NAME=jpeg
-
- # Define the directory where the PNG library sources are stored,
-@@ -172,14 +171,14 @@
- # You may need to change this if the libpng version changes.
- # See libpng.mak for more information.
-
--SHARE_LIBPNG=@SHARE_LIBPNG@
-+SHARE_LIBPNG=1
- PNGSRCDIR=@LIBPNGDIR@
- LIBPNG_NAME=png
-
- # Define the directory where the zlib sources are stored.
- # See zlib.mak for more information.
-
--SHARE_ZLIB=@SHARE_ZLIB@
-+SHARE_ZLIB=1
- ZSRCDIR=@ZLIBDIR@
- #ZLIB_NAME=gz
- ZLIB_NAME=z
-@@ -250,7 +249,7 @@
- # Define the added flags for standard, debugging, profiling
- # and shared object builds.
-
--CFLAGS_STANDARD=@OPT_CFLAGS@
-+CFLAGS_STANDARD?=@OPT_CFLAGS@
- CFLAGS_DEBUG=-g -O
- CFLAGS_PROFILE=-pg @OPT_CFLAGS@
- CFLAGS_SO=@DYNAMIC_CFLAGS@
-@@ -295,7 +294,7 @@
- # Solaris may need -lnsl -lsocket -lposix4.
- # (Libraries required by individual drivers are handled automatically.)
-
--EXTRALIBS=@LIBS@ @DYNAMIC_LIBS@ @FONTCONFIG_LIBS@
-+EXTRALIBS=@LIBS@ @DYNAMIC_LIBS@ @FONTCONFIG_LIBS@ -Wl,-export-dynamic
-
- # Define the standard libraries to search at the end of linking.
- # Most platforms require -lpthread for the POSIX threads library;
-@@ -340,10 +339,10 @@
-
- # 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
-
- # programs we use
- RM=rm -f
-@@ -498,6 +497,7 @@
- # ---------------- End of platform-specific section ---------------- #
-
- INSTALL_CONTRIB=@INSTALL_CONTRIB@
-+include $(GLSRCDIR)/drivers.mak
- include $(GLSRCDIR)/unixhead.mak
- include $(GLSRCDIR)/gs.mak
- # psromfs.mak must precede lib.mak
diff --git a/print/ghostscript-gpl/files/patch-src-contrib.mak b/print/ghostscript-gpl/files/patch-src-contrib.mak
deleted file mode 100644
index bed646b02a0..00000000000
--- a/print/ghostscript-gpl/files/patch-src-contrib.mak
+++ /dev/null
@@ -1,8 +0,0 @@
---- src/contrib.mak.orig 2008-03-04 06:06:45.000000000 +0900
-+++ src/contrib.mak 2008-03-04 06:07:11.000000000 +0900
-@@ -858,3 +858,5 @@
- $(SETPDEV) $(DD)picty180 $(cdeskjet_)
-
- #########################################################################
-+
-+include $(GLSRCDIR)/epag.contrib.mak
diff --git a/print/ghostscript-gpl/files/patch-src-gdevl256.c b/print/ghostscript-gpl/files/patch-src-gdevl256.c
deleted file mode 100644
index c00c180f7f1..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/patch-src-gdevvglb.c b/print/ghostscript-gpl/files/patch-src-gdevvglb.c
deleted file mode 100644
index a14739678e9..00000000000
--- a/print/ghostscript-gpl/files/patch-src-gdevvglb.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- src/gdevvglb.c.orig Tue Sep 25 22:31:24 2007
-+++ src/gdevvglb.c Sat Nov 24 23:00:49 2007
-@@ -149,10 +149,13 @@
- }
-
- static 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);
- }
-
- static int
diff --git a/print/ghostscript-gpl/files/patch-src-unixinst.mak b/print/ghostscript-gpl/files/patch-src-unixinst.mak
deleted file mode 100644
index df2160a93a6..00000000000
--- a/print/ghostscript-gpl/files/patch-src-unixinst.mak
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/unixinst.mak.orig 2007-08-15 05:48:29.000000000 +0900
-+++ src/unixinst.mak 2008-05-05 16:48:06.000000000 +0900
-@@ -128,7 +128,7 @@
- done'
-
- # install the man pages for each locale
--MAN_LCDIRS=. de
-+MAN_LCDIRS=.
- MAN1_LINKS_PS2PS=eps2eps
- MAN1_LINKS_PS2PDF=ps2pdf12 ps2pdf13
- MAN1_LINKS_GSLP=gsbj gsdj gsdj500 gslj
diff --git a/print/ghostscript-gpl/files/patch-src:fapi_ft.c b/print/ghostscript-gpl/files/patch-src:fapi_ft.c
deleted file mode 100644
index d1c936dd64c..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/patch-src:gxobj.h b/print/ghostscript-gpl/files/patch-src:gxobj.h
deleted file mode 100644
index 9ae2fe0d553..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/patch-src:unix-gcc.mak b/print/ghostscript-gpl/files/patch-src:unix-gcc.mak
deleted file mode 100644
index 7e9753df3a1..00000000000
--- a/print/ghostscript-gpl/files/patch-src:unix-gcc.mak
+++ /dev/null
@@ -1,217 +0,0 @@
---- src/unix-gcc.mak.orig Sat Nov 10 06:18:04 2007
-+++ src/unix-gcc.mak Sat Nov 24 15:09: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)
-@@ -107,7 +108,7 @@
- # -DHAVE_HYPOT
- # use the system hypot() call
-
--CAPOPT= -DHAVE_MKSTEMP
-+CAPOPT= -DHAVE_MKSTEMP -DHAVE_HYPOT
-
- # Define the name of the executable file.
-
-@@ -141,7 +142,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,
-@@ -155,7 +156,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.
-@@ -167,7 +168,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
-
-@@ -176,6 +177,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
-
-@@ -204,7 +213,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.
-@@ -221,10 +230,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.
-@@ -237,7 +246,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)
-
-@@ -248,7 +258,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)
-
-@@ -259,7 +269,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;
-@@ -281,7 +291,7 @@
- # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
- # not in $(XINCLUDE).
-
--XINCLUDE=-I/usr/X11R6/include
-+XINCLUDE=-I${LOCALBASE}/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
-@@ -293,12 +303,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${LOCALBASE}/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.
-@@ -316,16 +326,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
-@@ -415,7 +425,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 --------------------------- #
-@@ -454,6 +464,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
-@@ -463,6 +476,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/ghostscript-gpl/files/patch-src__devs.mak b/print/ghostscript-gpl/files/patch-src__devs.mak
deleted file mode 100644
index 9f95e8bc0c5..00000000000
--- a/print/ghostscript-gpl/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/ghostscript-gpl/files/patch-src__gdevperm.c b/print/ghostscript-gpl/files/patch-src__gdevperm.c
deleted file mode 100644
index 7735f96e863..00000000000
--- a/print/ghostscript-gpl/files/patch-src__gdevperm.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/gdevperm.c.orig Tue Sep 25 22:31:24 2007
-+++ src/gdevperm.c Sat Nov 24 15:11:12 2007
-@@ -286,7 +286,7 @@
- (strncmp((const char *)name, (const char *)str, name_size) == 0))
-
- static 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;
diff --git a/print/ghostscript-gpl/files/patch-src__zicc.c b/print/ghostscript-gpl/files/patch-src__zicc.c
deleted file mode 100644
index a5ddf3a4ff0..00000000000
--- a/print/ghostscript-gpl/files/patch-src__zicc.c
+++ /dev/null
@@ -1,12 +0,0 @@
---- src/zicc.c
-+++ src/zicc.c 2008-02-05 16:11:59.000000000 +0000
-@@ -77,6 +77,9 @@ zseticcspace(i_ctx_t * i_ctx_p)
- dict_find_string(op, "N", &pnval);
- ncomps = pnval->value.intval;
-
-+ if (2*ncomps > sizeof(range_buff)/sizeof(float))
-+ return_error(e_rangecheck);
-+
- /* verify the DataSource entry */
- if (dict_find_string(op, "DataSource", &pstrmval) <= 0)
- return_error(e_undefined);
diff --git a/print/ghostscript-gpl/files/pkg-message.in b/print/ghostscript-gpl/files/pkg-message.in
deleted file mode 100644
index 32bd4066acc..00000000000
--- a/print/ghostscript-gpl/files/pkg-message.in
+++ /dev/null
@@ -1,8 +0,0 @@
-Note: in order to use the script dvipdf, dvips must be installed.
-This program may be provided by either print/dvips or print/dvipsk-tetex
-(print/dvipsk-tetex may be preferable since it doesn't conflict with
-tetex things).
-
-Also note that FAPIfontmap and FAPIcidfmap in
-%%DATADIR%%/%%PORTVERSION%%/lib have to be configured first if
-WITH_FT_BRIDGE is enabled.