Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/imlib2 imlib2: fix big-endian builds



details:   https://anonhg.NetBSD.org/pkgsrc/rev/333e2480ad76
branches:  trunk
changeset: 437122:333e2480ad76
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Mon Aug 17 02:52:52 2020 +0000

description:
imlib2: fix big-endian builds

diffstat:

 graphics/imlib2/distinfo                                         |   3 +-
 graphics/imlib2/patches/patch-src_modules_loaders_loader__argb.c |  17 ++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r c52b6eb4c196 -r 333e2480ad76 graphics/imlib2/distinfo
--- a/graphics/imlib2/distinfo  Mon Aug 17 02:43:28 2020 +0000
+++ b/graphics/imlib2/distinfo  Mon Aug 17 02:52:52 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.41 2020/08/09 15:44:44 nia Exp $
+$NetBSD: distinfo,v 1.42 2020/08/17 02:52:52 gutteridge Exp $
 
 SHA1 (imlib2-1.7.0.tar.bz2) = 27e380e739c3c1a7c9a71a31143c2dd98da99abb
 RMD160 (imlib2-1.7.0.tar.bz2) = ebf78f4c3341452c5b8617f3e5716360c809ad72
@@ -8,3 +8,4 @@
 SHA1 (patch-src_bin_imlib2__view.c) = 53a7bdb2e1f8687db095b796b46945ee5a72f552
 SHA1 (patch-src_lib_amd64__blend.S) = 09e89c6b1d6fb622b3ee88f6c3a5e9b6f3ab3fad
 SHA1 (patch-src_lib_amd64__blend__cmod.S) = d533eeacd4b196086f1854c657d3e0773596790b
+SHA1 (patch-src_modules_loaders_loader__argb.c) = 11eda7493583f3338a0d72d52d68543290f40e05
diff -r c52b6eb4c196 -r 333e2480ad76 graphics/imlib2/patches/patch-src_modules_loaders_loader__argb.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/imlib2/patches/patch-src_modules_loaders_loader__argb.c  Mon Aug 17 02:52:52 2020 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_modules_loaders_loader__argb.c,v 1.1 2020/08/17 02:52:52 gutteridge Exp $
+
+Fix big-endian builds.
+
+--- src/modules/loaders/loader_argb.c.orig     2020-07-28 18:13:51.000000000 +0000
++++ src/modules/loaders/loader_argb.c
+@@ -7,6 +7,10 @@ load2(ImlibImage * im, int load_data)
+    int                 w = 0, h = 0, alpha = 0;
+    DATA32             *ptr;
+    int                 y;
++   
++#ifdef WORDS_BIGENDIAN
++   int                 l;
++#endif
+ 
+    rc = LOAD_FAIL;
+ 



Home | Main Index | Thread Index | Old Index