pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/libwebp



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Thu Jul  2 14:15:58 UTC 2026

Modified Files:
        pkgsrc/graphics/libwebp: distinfo
Added Files:
        pkgsrc/graphics/libwebp/patches: patch-cmake_cpu.cmake

Log Message:
graphics/libwebp: Fix build with older GCC

* Detect AVX2 properly. Fix build under NetBSD 10.
  Noticed by Marc Baudoin. Thank you.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 pkgsrc/graphics/libwebp/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/libwebp/patches/patch-cmake_cpu.cmake

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/libwebp/distinfo
diff -u pkgsrc/graphics/libwebp/distinfo:1.32 pkgsrc/graphics/libwebp/distinfo:1.33
--- pkgsrc/graphics/libwebp/distinfo:1.32       Thu Jul  2 13:09:41 2026
+++ pkgsrc/graphics/libwebp/distinfo    Thu Jul  2 14:15:58 2026
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.32 2026/07/02 13:09:41 tnn Exp $
+$NetBSD: distinfo,v 1.33 2026/07/02 14:15:58 ryoon Exp $
 
 BLAKE2s (libwebp-1.6.0.tar.gz) = b8c21cb969d86525b64f177f9a6be0fa65cbd47b954977f9b4172e21591bae04
 SHA512 (libwebp-1.6.0.tar.gz) = 5c159d9760efcb92749092536daada22c0a73c20926c76097a5f0448ddbf874cf761324ca97925ca5f578b30477564b2b072b47667e504673797128b31cafcbf
 Size (libwebp-1.6.0.tar.gz) = 4296070 bytes
+SHA1 (patch-cmake_cpu.cmake) = 2766653d2f5271daaf8b168385a3a574350ff07d

Added files:

Index: pkgsrc/graphics/libwebp/patches/patch-cmake_cpu.cmake
diff -u /dev/null pkgsrc/graphics/libwebp/patches/patch-cmake_cpu.cmake:1.1
--- /dev/null   Thu Jul  2 14:15:58 2026
+++ pkgsrc/graphics/libwebp/patches/patch-cmake_cpu.cmake       Thu Jul  2 14:15:58 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-cmake_cpu.cmake,v 1.1 2026/07/02 14:15:58 ryoon Exp $
+
+* Second webp_check_compiler_flag() does not detect compiler capability.
+  Fix build wth GCC 10.5.0 under NetBSD 10.
+
+--- cmake/cpu.cmake.orig       2026-07-02 14:11:26.838482654 +0000
++++ cmake/cpu.cmake
+@@ -94,7 +94,7 @@ foreach(I_SIMD RANGE ${WEBP_SIMD_FLAGS_RANGE})
+       set(SIMD_COMPILE_FLAG "-msimd128 ${SIMD_COMPILE_FLAG}")
+     endif()
+     set(CMAKE_REQUIRED_FLAGS ${SIMD_COMPILE_FLAG})
+-    webp_check_compiler_flag(${WEBP_SIMD_FLAG} ${WEBP_ENABLE_SIMD})
++    #webp_check_compiler_flag(${WEBP_SIMD_FLAG} ${WEBP_ENABLE_SIMD})
+   else()
+     if(MSVC AND SIMD_ENABLE_FLAGS)
+       # The detection for SSE2/SSE4 support under MSVC is based on the compiler



Home | Main Index | Thread Index | Old Index