pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/ImageMagick graphics/ImageMagick: add workaro...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4f31fd05e0a5
branches:  trunk
changeset: 380957:4f31fd05e0a5
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Mon Jun 20 20:49:26 2022 +0000

description:
graphics/ImageMagick: add workaround to fix build with ghostscript-gpl.

diffstat:

 graphics/ImageMagick/Makefile                            |   8 ++++-
 graphics/ImageMagick/distinfo                            |   3 +-
 graphics/ImageMagick/patches/patch-ghostscript-private.h |  22 ++++++++++++++++
 3 files changed, 30 insertions(+), 3 deletions(-)

diffs (66 lines):

diff -r 7f0e3c1a4c47 -r 4f31fd05e0a5 graphics/ImageMagick/Makefile
--- a/graphics/ImageMagick/Makefile     Mon Jun 20 17:02:19 2022 +0000
+++ b/graphics/ImageMagick/Makefile     Mon Jun 20 20:49:26 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.303 2022/05/03 08:27:11 wiz Exp $
+# $NetBSD: Makefile,v 1.304 2022/06/20 20:49:26 dholland Exp $
 
 .include "Makefile.common"
 
@@ -85,6 +85,11 @@
 CTF_FILES_SKIP+=       lib/libMagickCore-7.Q16HDRI.so.*
 CTF_FILES_SKIP+=       lib/libMagickWand-7.Q16HDRI.so.*
 
+.include "../../print/ghostscript/buildlink3.mk"
+.if !empty(PKG_BUILD_OPTIONS.ghostscript:Mghostscript-gpl)
+CFLAGS+=               -DPKGSRC_USE_OLD_GHOSTSCRIPT
+.endif
+
 .include "../../archivers/bzip2/buildlink3.mk"
 .include "../../archivers/xz/buildlink3.mk"
 .include "../../devel/libltdl/buildlink3.mk"
@@ -95,6 +100,5 @@
 .include "../../graphics/libwebp/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../math/fftw/buildlink3.mk"
-.include "../../print/ghostscript/buildlink3.mk"
 .include "../../textproc/libxml2/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 7f0e3c1a4c47 -r 4f31fd05e0a5 graphics/ImageMagick/distinfo
--- a/graphics/ImageMagick/distinfo     Mon Jun 20 17:02:19 2022 +0000
+++ b/graphics/ImageMagick/distinfo     Mon Jun 20 20:49:26 2022 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.277 2022/06/13 09:35:44 wiz Exp $
+$NetBSD: distinfo,v 1.278 2022/06/20 20:49:26 dholland Exp $
 
 BLAKE2s (ImageMagick-7.1.0-37.tar.xz) = c03be05ebcb1c3cda0eee6963c745fd714a0d99a901fc4e9c10d7953d95936aa
 SHA512 (ImageMagick-7.1.0-37.tar.xz) = 43f116a3a6bb9794b8c8440c57a537eab29b0dac7b8ace574e3cc1e6d484054557c9e44235eb799b843ef761c6f22d29ef959f6de6b80a45a3898bee4d2f16da
 Size (ImageMagick-7.1.0-37.tar.xz) = 10345216 bytes
 SHA1 (patch-config_policy.xml) = f8d130dcb1e81cd78a7856ca9b334f6ebf95c18f
+SHA1 (patch-ghostscript-private.h) = 98d88220cf8814f2e4841c382de5e2e9e0ae9287
diff -r 7f0e3c1a4c47 -r 4f31fd05e0a5 graphics/ImageMagick/patches/patch-ghostscript-private.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ImageMagick/patches/patch-ghostscript-private.h  Mon Jun 20 20:49:26 2022 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ghostscript-private.h,v 1.1 2022/06/20 20:49:26 dholland Exp $
+
+Add a workaround to allow building with ghostscript-gpl.
+
+--- coders/ghostscript-private.h~      2022-06-05 10:26:38.000000000 +0000
++++ coders/ghostscript-private.h
+@@ -76,6 +76,15 @@ static inline MagickBooleanType ExecuteG
+   return(MagickFalse);
+ }
+ 
++#ifdef PKGSRC_USE_OLD_GHOSTSCRIPT
++static void dummy_set_arg_encoding(void *a, int b) {
++   /* nothing */
++   (void)a;
++   (void)b;
++}
++#define gsapi_set_arg_encoding dummy_set_arg_encoding
++#endif
++
+ static inline MagickBooleanType InvokeGhostscriptDelegate(
+   const MagickBooleanType verbose,const char *command,char *message,
+   ExceptionInfo *exception)



Home | Main Index | Thread Index | Old Index