summaryrefslogtreecommitdiff
path: root/graphics/imlib2
diff options
context:
space:
mode:
authorgutteridge <gutteridge@pkgsrc.org>2020-08-17 02:52:52 +0000
committergutteridge <gutteridge@pkgsrc.org>2020-08-17 02:52:52 +0000
commitec11ffb1155a2d1476c9ec8b0ab09efeeed779e0 (patch)
treedeb8e54a19f7ba6f717e0605b336810b659efea8 /graphics/imlib2
parent7c63d1e3220d9ce60b4b0722e18c525a0438f234 (diff)
downloadpkgsrc-ec11ffb1155a2d1476c9ec8b0ab09efeeed779e0.tar.gz
imlib2: fix big-endian builds
Diffstat (limited to 'graphics/imlib2')
-rw-r--r--graphics/imlib2/distinfo3
-rw-r--r--graphics/imlib2/patches/patch-src_modules_loaders_loader__argb.c17
2 files changed, 19 insertions, 1 deletions
diff --git a/graphics/imlib2/distinfo b/graphics/imlib2/distinfo
index 4894a793c26..bd4fae29f8c 100644
--- a/graphics/imlib2/distinfo
+++ b/graphics/imlib2/distinfo
@@ -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-imlib2-config.in) = 22bd429a029e1071f1920ed2261cb94fd66b1146
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 --git a/graphics/imlib2/patches/patch-src_modules_loaders_loader__argb.c b/graphics/imlib2/patches/patch-src_modules_loaders_loader__argb.c
new file mode 100644
index 00000000000..23b6cd21041
--- /dev/null
+++ b/graphics/imlib2/patches/patch-src_modules_loaders_loader__argb.c
@@ -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;
+