Index | Thread | Search

From:
Brad Smith <brad@comstyle.com>
Subject:
UPDATE: libwebp 1.6.0
To:
ports@openbsd.org
Date:
Tue, 15 Jul 2025 22:42:53 -0400

Download raw body.

Thread
  • Brad Smith:

    UPDATE: libwebp 1.6.0

Here is an update to libwebp 1.6.0.


- 6/30/2025 version 1.6.0
  This is a binary compatible release.
  API changes:
    - libwebp: WebPValidateDecoderConfig
  * additional x86 (AVX2, SSE2), general optimizations and compression
    improvements for lossless
  * `-mt` returns same results as single-threaded lossless (regressed in
    1.5.0, #426506716)
  * miscellaneous warning, bug & build fixes (#393104377, #397130631,
    #398288323, #398066379, #427503509)
  Tool updates:
    * cwebp can restrict the use of `-resize` with `-resize_mode` (#405437935)

Tested on aarch64.


Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/libwebp/Makefile,v
retrieving revision 1.36
diff -u -p -u -p -r1.36 Makefile
--- Makefile	31 May 2025 04:34:57 -0000	1.36
+++ Makefile	16 Jul 2025 02:07:36 -0000
@@ -2,13 +2,12 @@ COMMENT=	Google WebP image format conver
 
 GH_ACCOUNT=	webmproject
 GH_PROJECT=	libwebp
-GH_TAGNAME=	v1.5.0
+GH_TAGNAME=	v1.6.0
 CATEGORIES=	graphics
-REVISION=	0
 
 SHARED_LIBS +=  sharpyuv             0.1      # 0.0
-SHARED_LIBS +=  webp                 4.3      # 6.0
-SHARED_LIBS +=  webpdecoder          2.1      # 2.0
+SHARED_LIBS +=  webp                 4.4      # 6.0
+SHARED_LIBS +=  webpdecoder          2.2      # 2.0
 SHARED_LIBS +=  webpdemux            2.0      # 2.0
 SHARED_LIBS +=  webpmux              2.1      # 2.0
 
@@ -17,28 +16,25 @@ HOMEPAGE=	https://developers.google.com/
 # BSD
 PERMIT_PACKAGE=	Yes
 
-WANTLIB += ${COMPILER_LIBCXX} Lerc c gif jpeg lzma m png tiff
-WANTLIB += z zstd
+WANTLIB=	c gif jpeg lzma m png pthread tiff z zstd
 
-LIB_DEPENDS =	graphics/giflib \
+LIB_DEPENDS=	graphics/giflib \
 		graphics/jpeg \
 		graphics/png \
 		graphics/tiff
 
-CONFIGURE_STYLE =	autoreconf
-AUTOCONF_VERSION =	2.71
-AUTOMAKE_VERSION =	1.16
+AUTOCONF_VERSION=	2.72
+AUTOMAKE_VERSION=	1.17
+
+CONFIGURE_STYLE=	autoreconf
+
+CONFIGURE_ARGS= --enable-everything
 
 # this will use libSDL to build stuff under extras otherwise
 # (a static webp viewer which is more or less useless, and not
 # even installed by default)
-CONFIGURE_ARGS+=	--disable-gl
-CONFIGURE_ARGS+=	--disable-sdl
-
-CONFIGURE_ARGS+=	--enable-libwebpdecoder
-CONFIGURE_ARGS+=	--enable-libwebpextras
-CONFIGURE_ARGS+=	--enable-libwebpdemux
-CONFIGURE_ARGS+=	--enable-libwebpmux
+CONFIGURE_ARGS +=--disable-gl \
+		--disable-sdl
 
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
Index: distinfo
===================================================================
RCS file: /cvs/ports/graphics/libwebp/distinfo,v
retrieving revision 1.24
diff -u -p -u -p -r1.24 distinfo
--- distinfo	29 May 2025 23:45:55 -0000	1.24
+++ distinfo	16 Jul 2025 02:07:36 -0000
@@ -1,2 +1,2 @@
-SHA256 (libwebp-1.5.0.tar.gz) = ZoyaukVWXiTCfhf3qvcGCjmffzHbpsl6BE4f6suTDzc=
-SIZE (libwebp-1.5.0.tar.gz) = 3821241
+SHA256 (libwebp-1.6.0.tar.gz) = k6hSwrPvr+43I+/UY23oVbRvn+Hv3dYH4fQvYPyPITY=
+SIZE (libwebp-1.6.0.tar.gz) = 3833512
Index: patches/patch-examples_cwebp_c
===================================================================
RCS file: /cvs/ports/graphics/libwebp/patches/patch-examples_cwebp_c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-examples_cwebp_c
--- patches/patch-examples_cwebp_c	29 May 2025 23:45:55 -0000	1.1
+++ patches/patch-examples_cwebp_c	16 Jul 2025 02:07:36 -0000
@@ -3,7 +3,7 @@ cwebp.c:186:47: error: no member named '
 Index: examples/cwebp.c
 --- examples/cwebp.c.orig
 +++ examples/cwebp.c
-@@ -182,9 +182,9 @@ static void PrintFullLosslessInfo(const WebPAuxStats* 
+@@ -184,9 +184,9 @@ static void PrintFullLosslessInfo(const WebPAuxStats* 
    if (stats->lossless_features & 1) {
      fprintf(stderr, " prediction=%d", stats->transform_bits);
    }