summaryrefslogtreecommitdiff
path: root/graphics/gimp3-app
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/gimp3-app')
-rw-r--r--graphics/gimp3-app/Makefile4
-rw-r--r--graphics/gimp3-app/files/patch-libgimp_gimp.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/graphics/gimp3-app/Makefile b/graphics/gimp3-app/Makefile
index eb28af5d9998..d47df19d9cc8 100644
--- a/graphics/gimp3-app/Makefile
+++ b/graphics/gimp3-app/Makefile
@@ -155,6 +155,10 @@ PLIST_SUB+= LUASCRIPTS=""
PLIST_SUB+= LUASCRIPTS="@comment "
.endif
+.if !exists(/usr/include/omp.h)
+MESON_ARGS+= -Dopenmp=disabled
+.endif
+
#post-patch:
#.for s in 16 22 24 32 48 64 256
# @${CP} ${WRKSRC}/desktop/${s}x${s}/gimp.png ${WRKSRC}/desktop/${s}x${s}/gimp3.png
diff --git a/graphics/gimp3-app/files/patch-libgimp_gimp.c b/graphics/gimp3-app/files/patch-libgimp_gimp.c
index 48799a6d0aec..43b3ba2e6f2b 100644
--- a/graphics/gimp3-app/files/patch-libgimp_gimp.c
+++ b/graphics/gimp3-app/files/patch-libgimp_gimp.c
@@ -1,20 +1,20 @@
---- libgimp/gimp.c.orig 2024-12-27 13:34:56 UTC
+--- libgimp/gimp.c.orig 2025-05-17 22:51:03 UTC
+++ libgimp/gimp.c
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
-+#include <floatingpoint.h>
++#include <fenv.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
-@@ -341,6 +342,9 @@ gimp_main (GType plug_in_type,
+@@ -348,6 +349,9 @@ gimp_main (GType plug_in_type,
gimp_env_init (TRUE);
progname = argv[ARG_PROGNAME];
+
+ /* Ignore floating point exceptions */
-+ fpsetmask(0);
++ fedisableexcept(FE_ALL_EXCEPT);
basename = g_path_get_basename (progname);