pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/gimp gimp: fix build on macOS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/821277abb549
branches:  trunk
changeset: 379278:821277abb549
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri May 13 23:05:32 2022 +0000

description:
gimp: fix build on macOS

diffstat:

 graphics/gimp/distinfo                    |   3 ++-
 graphics/gimp/patches/patch-app_gui_gui.c |  18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r 51d3dfe7372c -r 821277abb549 graphics/gimp/distinfo
--- a/graphics/gimp/distinfo    Fri May 13 22:52:56 2022 +0000
+++ b/graphics/gimp/distinfo    Fri May 13 23:05:32 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.109 2022/01/04 13:07:18 ryoon Exp $
+$NetBSD: distinfo,v 1.110 2022/05/13 23:05:32 tnn Exp $
 
 BLAKE2s (gimp-2.10.30.tar.bz2) = 352505acd5f454e3d7183357050332cf9239b55009699cdcd8deb4e1d15ca539
 SHA512 (gimp-2.10.30.tar.bz2) = 02ca9e8846dc2ae856f720b92f3c6af69984cf0b3ce85ba5a67479e5c3c813315a0551b7d011dcf7a6c83dc771e550cc31041126bbea0be3fd483176e0eb2851
@@ -6,6 +6,7 @@
 SHA1 (patch-aa) = 403c46d7070de208769e99e512922ba3a5b7129b
 SHA1 (patch-ab) = 44d37daf37ec604f97bb5b3edf0908ada56ed6d6
 SHA1 (patch-app_core_gimpbrush-transform.cc) = 3bd3f69401ee7dabb53f7ebf533870ee9add856c
+SHA1 (patch-app_gui_gui.c) = 5a510c9a6e95e3a0aaccee29d29d523503f1c8c5
 SHA1 (patch-configure.ac) = c7e89bc9fd576eb95a9288eccea8959cbe1ee6de
 SHA1 (patch-plug-ins_common_file-mng.c) = 8ed244997cdef7125e1aa5da4d0fac5068ad5159
 SHA1 (patch-plug-ins_pygimp_py-compile) = 59dcdd00073b737f8f52e6a56832722033ee5703
diff -r 51d3dfe7372c -r 821277abb549 graphics/gimp/patches/patch-app_gui_gui.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/gimp/patches/patch-app_gui_gui.c Fri May 13 23:05:32 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-app_gui_gui.c,v 1.1 2022/05/13 23:05:32 tnn Exp $
+
+Fix build on macOS when not using gimp's GTK fork.
+Upstream doesn't have this yet. Performance with pkgsrc gimp is still bad,
+but at least it won't clutter up bulk builds.
+
+--- app/gui/gui.c.orig 2021-12-19 20:48:33.000000000 +0000
++++ app/gui/gui.c
+@@ -282,6 +282,9 @@ gui_init (Gimp     *gimp,
+    * has the additional cost of an 8-bit (ARGB) to 10-bit conversion.
+    * Let's disable this mode to regain the lost performance.
+    */
++#ifndef GDK_OSX_BIG_SUR
++#define GDK_OSX_BIG_SUR GDK_OSX_MOJAVE 
++#endif
+   if (gdk_quartz_osx_version () >= GDK_OSX_BIG_SUR)
+     {
+       NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];



Home | Main Index | Thread Index | Old Index