From 1ba16fdf98f52e6794444a50b09f3ee87ecac2e5 Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 26 Jun 2006 21:12:53 +0000 Subject: [PATCH] Fix build with gcc4, mirroring changes in gimp-2.3.9. --- graphics/gimp/distinfo | 6 ++++- graphics/gimp/patches/patch-ae | 41 ++++++++++++++++++++++++++++++++++ graphics/gimp/patches/patch-af | 22 ++++++++++++++++++ graphics/gimp/patches/patch-ag | 12 ++++++++++ graphics/gimp/patches/patch-ah | 12 ++++++++++ 5 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 graphics/gimp/patches/patch-ae create mode 100644 graphics/gimp/patches/patch-af create mode 100644 graphics/gimp/patches/patch-ag create mode 100644 graphics/gimp/patches/patch-ah diff --git a/graphics/gimp/distinfo b/graphics/gimp/distinfo index 511e2ca69e09..32db9a8b93d9 100644 --- a/graphics/gimp/distinfo +++ b/graphics/gimp/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.28 2006/04/18 20:24:48 tron Exp $ +$NetBSD: distinfo,v 1.29 2006/06/26 21:12:53 wiz Exp $ SHA1 (gimp-2.2.11.tar.bz2) = 11d22fb8448a87968e03cacf7f30cd7f6725d7c3 RMD160 (gimp-2.2.11.tar.bz2) = 0304a859d53e4e6b7520b5e8634e64e07911eeba @@ -7,3 +7,7 @@ SHA1 (patch-aa) = 269ef6f5a7744b8e5ee546140ca0076456df3b97 SHA1 (patch-ab) = 3709d31062dec70daa09399f05fa61f91ed843b8 SHA1 (patch-ac) = 796018e782611b71d68c365bf9dc2ab56126c2fa SHA1 (patch-ad) = 632c34e0fbeda69139b2b674d9c5ef80db40dcca +SHA1 (patch-ae) = 680bc442dbcc8ebe7059dcf2e24e3dde2922c3d2 +SHA1 (patch-af) = 8122d4e5669c99c319e7a37dbad11c636967c77e +SHA1 (patch-ag) = db5a55f6f37820bc2771851d73d36535a508b12c +SHA1 (patch-ah) = 034eeae7ba6fa199db40dedd70ecc17a30a1ed95 diff --git a/graphics/gimp/patches/patch-ae b/graphics/gimp/patches/patch-ae new file mode 100644 index 000000000000..fb14aac1f32f --- /dev/null +++ b/graphics/gimp/patches/patch-ae @@ -0,0 +1,41 @@ +$NetBSD: patch-ae,v 1.5 2006/06/26 21:12:53 wiz Exp $ + +--- app/composite/gimp-composite-mmx.c.orig 2006-04-13 11:20:13.000000000 +0000 ++++ app/composite/gimp-composite-mmx.c +@@ -135,6 +135,7 @@ gimp_composite_addition_rgba8_rgba8_rgba + asm("emms"); + } + ++#if 0 + void + gimp_composite_burn_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *_op) + { +@@ -250,7 +251,7 @@ gimp_composite_burn_rgba8_rgba8_rgba8_mm + + asm("emms"); + } +- ++#endif + + void + gimp_composite_darken_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *_op) +@@ -1267,8 +1268,8 @@ gimp_composite_swap_rgba8_rgba8_rgba8_mm + "\tmovq %%mm3,%0\n" + "\tmovq %%mm2,%1\n" + : "+m" (*a), "+m" (*b) +- : +- : "%mm1", "%mm2", "%mm3", "%mm4"); ++ : ++ : "%mm2", "%mm3"); + a++; + b++; + } +@@ -1281,7 +1282,7 @@ gimp_composite_swap_rgba8_rgba8_rgba8_mm + "\tmovd %%mm2,%1\n" + : "+m" (*a), "+m" (*b) + : +- : "%mm1", "%mm2", "%mm3", "%mm4"); ++ : "%mm2", "%mm3"); + } + + asm("emms"); diff --git a/graphics/gimp/patches/patch-af b/graphics/gimp/patches/patch-af new file mode 100644 index 000000000000..f174fa00974b --- /dev/null +++ b/graphics/gimp/patches/patch-af @@ -0,0 +1,22 @@ +$NetBSD: patch-af,v 1.3 2006/06/26 21:12:53 wiz Exp $ + +--- app/composite/gimp-composite-sse.c.orig 2005-08-15 10:07:03.000000000 +0000 ++++ app/composite/gimp-composite-sse.c +@@ -113,7 +113,7 @@ gimp_composite_addition_rgba8_rgba8_rgba + asm("emms"); + } + +- ++#if 0 + void + gimp_composite_burn_rgba8_rgba8_rgba8_sse (GimpCompositeContext *_op) + { +@@ -229,7 +229,7 @@ gimp_composite_burn_rgba8_rgba8_rgba8_ss + + asm("emms"); + } +- ++#endif + + void + gimp_composite_darken_rgba8_rgba8_rgba8_sse (GimpCompositeContext *_op) diff --git a/graphics/gimp/patches/patch-ag b/graphics/gimp/patches/patch-ag new file mode 100644 index 000000000000..81e507a2bb5d --- /dev/null +++ b/graphics/gimp/patches/patch-ag @@ -0,0 +1,12 @@ +$NetBSD: patch-ag,v 1.3 2006/06/26 21:12:53 wiz Exp $ + +--- app/composite/gimp-composite-mmx-installer.c.orig 2006-04-13 11:20:13.000000000 +0000 ++++ app/composite/gimp-composite-mmx-installer.c +@@ -25,7 +25,6 @@ static struct install_table { + { GIMP_COMPOSITE_SUBTRACT, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_subtract_rgba8_rgba8_rgba8_mmx }, + { GIMP_COMPOSITE_DARKEN, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_darken_rgba8_rgba8_rgba8_mmx }, + { GIMP_COMPOSITE_LIGHTEN, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_lighten_rgba8_rgba8_rgba8_mmx }, +- { GIMP_COMPOSITE_BURN, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_burn_rgba8_rgba8_rgba8_mmx }, + { GIMP_COMPOSITE_GRAIN_EXTRACT, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_grain_extract_rgba8_rgba8_rgba8_mmx }, + { GIMP_COMPOSITE_GRAIN_MERGE, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_grain_merge_rgba8_rgba8_rgba8_mmx }, + { GIMP_COMPOSITE_SWAP, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_swap_rgba8_rgba8_rgba8_mmx }, diff --git a/graphics/gimp/patches/patch-ah b/graphics/gimp/patches/patch-ah new file mode 100644 index 000000000000..720586dd10d1 --- /dev/null +++ b/graphics/gimp/patches/patch-ah @@ -0,0 +1,12 @@ +$NetBSD: patch-ah,v 1.3 2006/06/26 21:12:53 wiz Exp $ + +--- app/composite/gimp-composite-sse-installer.c.orig 2005-08-15 10:07:03.000000000 +0000 ++++ app/composite/gimp-composite-sse-installer.c +@@ -25,7 +25,6 @@ static struct install_table { + { GIMP_COMPOSITE_SUBTRACT, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_subtract_rgba8_rgba8_rgba8_sse }, + { GIMP_COMPOSITE_DARKEN, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_darken_rgba8_rgba8_rgba8_sse }, + { GIMP_COMPOSITE_LIGHTEN, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_lighten_rgba8_rgba8_rgba8_sse }, +- { GIMP_COMPOSITE_BURN, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_burn_rgba8_rgba8_rgba8_sse }, + { GIMP_COMPOSITE_GRAIN_EXTRACT, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_grain_extract_rgba8_rgba8_rgba8_sse }, + { GIMP_COMPOSITE_GRAIN_MERGE, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_grain_merge_rgba8_rgba8_rgba8_sse }, + { GIMP_COMPOSITE_SWAP, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_swap_rgba8_rgba8_rgba8_sse },