libpng: fix compilation with loongarch64
authorRosen Penev <rosenp@gmail.com>
Tue, 8 Oct 2024 00:09:04 +0000 (17:09 -0700)
committerRosen Penev <rosenp@gmail.com>
Tue, 8 Oct 2024 00:45:06 +0000 (17:45 -0700)
Explicitly disable unsupported hardware acceleration instead of trying
to match against targets.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libpng/Makefile

index 72b0702c57f94611fa46dbd2a5c44b201b803196..748752faac03e05406454a3e8b425b18cc98db92 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libpng
 PKG_VERSION:=1.6.44
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@SF/libpng
@@ -36,8 +36,12 @@ CMAKE_OPTIONS += \
        -DPNG_TOOLS=OFF \
        -DPNG_TESTS=OFF \
        -DPNG_FRAMEWORK=OFF \
-       -DPNG_HARDWARE_OPTIMIZATIONS=O$(if $(findstring powerpc,$(CONFIG_ARCH))$(findstring mips,$(CONFIG_ARCH)),FF,N) \
+       -DPNG_HARDWARE_OPTIMIZATIONS=ON \
        -DPNG_ARM_NEON=$(if $(or $(findstring aarch64,$(CONFIG_ARCH)),$(findstring neon,$(CONFIG_CPU_TYPE))),on,off) \
+       -DPNG_LOONGARCH_LSX=off \
+       -DPNG_MIPS_MMI=off \
+       -DPNG_MIPS_MSA=off \
+       -DPNG_POWERPC_VSX=off \
        -Dld-version-script=OFF
 
 define Build/InstallDev