From 9a60a2e4c546c63e50ed3d5597c5533b138946f4 Mon Sep 17 00:00:00 2001 From: Tijl Coosemans Date: Tue, 12 Jun 2018 09:45:14 +0000 Subject: Clean up print/ghostscript9-agpl-base and print/ghostscript9-agpl-x11 and update them to version 9.23. Share CMap data with graphics/poppler-data and update that to 0.4.9. Details for print/ghostscript9-agpl-base: - Update to 9.23. - Drop external epag device. - Always use fontconfig to find fonts. - Use ports openjpeg instead of bundled. - Use bundled lcms2, because upstream forked it. - Drop dependency on gsfonts. Newer versions of the fonts are already included. - Depend on poppler-data for CMap files. It has the same maps except Identity-H, Identity-UTF16-H, and Identity-V. - Resolve conflict with gambc by moving bin/gsc to bin/gs instead of symlinking. - Configure with --with-libiconv=maybe instead of --with-libiconv=native to prevent detecting libiconv from converters/libiconv if it happens to be installed. Also remove the ICONV option because it's part of the base system in all supported versions of FreeBSD. - Enable thread safety. - Remove all driver options and simply build with --with-drivers=ALL. They don't take up much space and don't require additional dependencies so options don't provide much value. This makes the port a lot easier to maintain. - Set the internal font path to ${LOCALBASE}/share/fonts because the upstream default doesn't make much sense on FreeBSD. - Make dependency on libijs optional because it only seems to be used by print/hpijs which is deprecated. - Extract all directories and remove unwanted directories in post-patch so contents can be examined after 'make extract'. - Strip gs and libgs.so. Reported by stage-qa. - Install color profiles in share/color/icc, where other programs can find them. - Remove old patches. Details for print/ghostscript9-agpl-x11: - Keep the Makefile similar to ghostscript9-agpl-base Makefile. - Set PATCHDIR to ghostscript9-agpl-base/files so patches are shared. Details for graphics/poppler-data: - Update to 0.4.9. - Replace post-patch with MAKE_ARGS. - Add post-install to make all CMap files available in share/cmap so Ghostscript can use them too. Unfortunately, Poppler requires these files organised in subdirectories and Ghostscript wants them all in one directory, hence the hardlinks. PR: 228546 Approved by: maintainer timeout (15 days) --- .../files/patch-contrib_japanese_gdevdmpr.c | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 print/ghostscript9-agpl-base/files/patch-contrib_japanese_gdevdmpr.c (limited to 'print/ghostscript9-agpl-base/files/patch-contrib_japanese_gdevdmpr.c') diff --git a/print/ghostscript9-agpl-base/files/patch-contrib_japanese_gdevdmpr.c b/print/ghostscript9-agpl-base/files/patch-contrib_japanese_gdevdmpr.c deleted file mode 100644 index 7d943a123a87..000000000000 --- a/print/ghostscript9-agpl-base/files/patch-contrib_japanese_gdevdmpr.c +++ /dev/null @@ -1,53 +0,0 @@ ---- contrib/japanese/gdevdmpr.c.orig 2015-03-30 08:21:24 UTC -+++ contrib/japanese/gdevdmpr.c -@@ -32,7 +32,7 @@ - - #include "gdevprn.h" - #include "gp.h" --#include "errors.h" -+#include "psi/ierrors.h" - #include "gsparam.h" - #include "gsstate.h" - #include "math_.h" -@@ -41,8 +41,6 @@ - /* include library header. */ - #include "dviprlib.h" - --extern FILE *lib_fopen(const char *); -- - #define LOCAL_DEBUG 0 - - #define DEVICE_NAME "dmprt" -@@ -402,8 +400,6 @@ gdev_dmprt_put_params(gx_device *pdev, g - if (pddev->dmprt.max_height>0 && pddev->dmprt.max_heightheight) - pddev->height = pddev->dmprt.max_height; - -- dviprt_setmessagestream(pddev->dmprt.debug_f ? stderr : NULL); -- - return code; - } - -@@ -422,8 +418,6 @@ gdev_dmprt_put_dmprt_params(gx_device *p - 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; -@@ -846,13 +840,12 @@ gdev_dmprt_dviprt_lib_fopen(const char * - char *env; - - strcpy(fname,fnamebase); -- fp = lib_fopen(fname); -+ fp = gp_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 = gp_fopen(fname,gp_fmode_rb); - } - } -- cgit v1.2.3