From 315c4e1a10290908ac7831c831b8f8eb0555876a Mon Sep 17 00:00:00 2001 From: krant Date: Wed, 21 Feb 2024 12:54:53 +0200 Subject: [PATCH] libpng: update to 1.6.42 - Don't set default and rename renamed CMake options - Enable NEON optimizations - Rebase the patch Signed-off-by: krant --- libs/libpng/Makefile | 11 ++++------- libs/libpng/patches/200-ccache.patch | 8 ++++---- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/libs/libpng/Makefile b/libs/libpng/Makefile index d3de2fdb2b..6740be1f0e 100644 --- a/libs/libpng/Makefile +++ b/libs/libpng/Makefile @@ -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 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 diff --git a/libs/libpng/patches/200-ccache.patch b/libs/libpng/patches/200-ccache.patch index ec24bf2781..eb489a8331 100644 --- a/libs/libpng/patches/200-ccache.patch +++ b/libs/libpng/patches/200-ccache.patch @@ -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() -- 2.30.2