libpng: update to 1.6.42
authorkrant <aleksey.vasilenko@gmail.com>
Wed, 21 Feb 2024 10:54:53 +0000 (12:54 +0200)
committerRosen Penev <rosenp@gmail.com>
Thu, 22 Feb 2024 05:55:24 +0000 (21:55 -0800)
- Don't set default and rename renamed CMake options
- Enable NEON optimizations
- Rebase the patch

Signed-off-by: krant <aleksey.vasilenko@gmail.com>
libs/libpng/Makefile
libs/libpng/patches/200-ccache.patch

index d3de2fdb2bcba37a354032ae096059ab0a7bddc5..6740be1f0ec6c8fdb27f73536d190514357ca52d 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libpng
-PKG_VERSION:=1.6.39
+PKG_VERSION:=1.6.42
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@SF/libpng
-PKG_HASH:=1f4696ce70b4ee5f85f1e1623dc1229b210029fa4b7aee573df3e2ba7b036937
+PKG_HASH:=c919dbc11f4c03b05aba3f8884d8eb7adfe3572ad228af972bb60057bdb48450
 
 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
 PKG_LICENSE:=Libpng GPL-2.0-or-later BSD-3-Clause
@@ -33,14 +33,11 @@ endef
 
 CMAKE_OPTIONS += \
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-       -DPNG_BUILD_ZLIB=OFF \
-       -DPNG_SHARED=ON \
-       -DPNG_STATIC=ON \
-       -DPNG_EXECUTABLES=OFF \
+       -DPNG_TOOLS=OFF \
        -DPNG_TESTS=OFF \
        -DPNG_FRAMEWORK=OFF \
-       -DPNG_DEBUG=OFF \
        -DPNG_HARDWARE_OPTIMIZATIONS=O$(if $(findstring powerpc,$(CONFIG_ARCH))$(findstring mips,$(CONFIG_ARCH)),FF,N) \
+       -DPNG_ARM_NEON=$(if $(or $(findstring aarch64,$(CONFIG_ARCH)),$(findstring neon,$(CONFIG_CPU_TYPE))),on,off) \
        -Dld-version-script=OFF
 
 define Build/InstallDev
index ec24bf27816fa79de01b556a275f1b0a4bdf42ff..eb489a83310082e554ce419694da8bbf9986cd1b 100644 (file)
@@ -1,6 +1,6 @@
---- a/scripts/genout.cmake.in
-+++ b/scripts/genout.cmake.in
-@@ -14,6 +14,7 @@ set(BINDIR "@CMAKE_CURRENT_BINARY_DIR@")
+--- a/scripts/cmake/genout.cmake.in
++++ b/scripts/cmake/genout.cmake.in
+@@ -18,6 +18,7 @@ set(BINDIR "@CMAKE_CURRENT_BINARY_DIR@")
  
  set(AWK "@AWK@")
  set(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@")
@@ -8,7 +8,7 @@
  set(CMAKE_C_FLAGS @CMAKE_C_FLAGS@)
  set(INCDIR "@CMAKE_CURRENT_BINARY_DIR@")
  set(PNG_PREFIX "@PNG_PREFIX@")
-@@ -58,7 +59,7 @@ if ("${INPUTEXT}" STREQUAL ".c" AND "${O
+@@ -62,7 +63,7 @@ if(INPUTEXT STREQUAL ".c" AND OUTPUTEXT
      set(PNG_PREFIX_DEF "-DPNG_PREFIX=${PNG_PREFIX}")
    endif()