Update to webp-pixbuf-loader-0.0.7.

This commit is contained in:
ajacoutot 2022-10-29 07:27:47 +00:00
parent 8fa8b5dd7b
commit 7f481353f9
4 changed files with 3 additions and 43 deletions

View File

@ -2,8 +2,7 @@ COMMENT= WebP GDK Pixbuf Loader library
GH_ACCOUNT= aruiz
GH_PROJECT= webp-pixbuf-loader
GH_TAGNAME= 0.0.6
REVISION= 0
GH_TAGNAME= 0.0.7
CATEGORIES= graphics

View File

@ -1,2 +1,2 @@
SHA256 (webp-pixbuf-loader-0.0.6.tar.gz) = RRy2kkqapq+qIdW2O0Atz8/pUqGHPgeLFweMShlkppM=
SIZE (webp-pixbuf-loader-0.0.6.tar.gz) = 23691
SHA256 (webp-pixbuf-loader-0.0.7.tar.gz) = EhvLVkxpCKhoEoF2b3xZQdCbXsC3tVuSEvHoMtY30+c=
SIZE (webp-pixbuf-loader-0.0.7.tar.gz) = 21718

View File

@ -1,27 +0,0 @@
Use <endian.h>; OpenBSD doesn't have <byteswap.h>.
Index: io-webp.c
--- io-webp.c.orig
+++ io-webp.c
@@ -12,9 +12,7 @@
#include "io-webp.h"
-#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
-#include <byteswap.h>
-#endif
+#include <endian.h>
#define IMAGE_READ_BUFFER_SIZE 65535
@@ -278,9 +276,7 @@ gdk_pixbuf__webp_anim_load_increment (gpointer co
/* The next 4 bytes give the size of the webp container less the 8 byte header. */
uint32_t anim_size = *(uint32_t *) (buf + 4); /* gives file size not counting the first 8 bytes. */
- #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
- anim_size = bswap_32(anim_size);
- #endif
+ anim_size = le32toh(anim_size);
uint32_t file_size = anim_size + 8;
if (file_size < size) {

View File

@ -1,12 +0,0 @@
Index: meson.build
--- meson.build.orig
+++ meson.build
@@ -13,7 +13,7 @@ gtk3 = dependency('gtk+-3.0', version: '>3.22.0', meth
# -34/-64 is to overcome a Fedora bug in the .pc file
# debian has a similar problem with its .pc file but it requires knowing the platform triad
-machine_triplet = run_command('gcc', '-dumpmachine', check: true).stdout().strip()
+machine_triplet = run_command('cc', '-dumpmachine', check: true).stdout().strip()
gdk_pb_query_loaders = find_program(get_option('gdk_pixbuf_query_loaders_path'), gdk_pb_query_loaders, gdk_pb_query_loaders+'-32', gdk_pb_query_loaders+'-64', dirs: ['/usr/lib' / machine_triplet / 'gdk-pixbuf-2.0'])
pbl_webp = shared_library('pixbufloader-webp',