diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-07-22 17:27:01 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-15 17:57:23 +0100 |
| commit | c03aa1cdfd1ddc00ca45f89a046892c5c8ec8d12 (patch) | |
| tree | 6b867843f004cb58369ee334a98ebe42c128a7b0 /meta/recipes-multimedia/libpng/libpng_1.6.50.bb | |
| parent | 6c9726de09babd9cc4e81521c5762b32c42d7649 (diff) | |
| download | poky-c03aa1cdfd1ddc00ca45f89a046892c5c8ec8d12.tar.gz | |
libpng: upgrade 1.6.48 -> 1.6.50
Changelog:
Version 1.6.49 [June 12, 2025]
Added SIMD-optimized code for the RISC-V Vector Extension (RVV).
(Contributed by Manfred Schlaegl, Dragos Tiselice and Filip Wasil)
Added various fixes and improvements to the build scripts and to
the sample code.
Version 1.6.50 [July 1, 2025]
Improved the detection of the RVV Extension on the RISC-V platform.
(Contributed by Filip Wasil)
Replaced inline ASM with C intrinsics in the RVV code.
(Contributed by Filip Wasil)
Fixed a decoder defect in which unknown chunks trailing IDAT, set
to go through the unknown chunk handler, incorrectly triggered
out-of-place IEND errors.
(Contributed by John Bowler)
Fixed the CMake file for cross-platform builds that require `libm`.
Ptests successfully passed:
============================================================================
Testsuite summary for libpng 1.6.50
============================================================================
# TOTAL: 32
# PASS: 32
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
============================================================================
(From OE-Core rev: d804ae6e19b5f9d92d9384dd470ae0acf0fb8e1d)
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/libpng/libpng_1.6.50.bb')
| -rw-r--r-- | meta/recipes-multimedia/libpng/libpng_1.6.50.bb | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/libpng/libpng_1.6.50.bb b/meta/recipes-multimedia/libpng/libpng_1.6.50.bb new file mode 100644 index 0000000000..aa2dc99f10 --- /dev/null +++ b/meta/recipes-multimedia/libpng/libpng_1.6.50.bb | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | SUMMARY = "PNG image format decoding library" | ||
| 2 | DESCRIPTION = "An open source project to develop and maintain the reference \ | ||
| 3 | library for use in applications that read, create, and manipulate PNG \ | ||
| 4 | (Portable Network Graphics) raster image files. " | ||
| 5 | HOMEPAGE = "http://www.libpng.org/" | ||
| 6 | SECTION = "libs" | ||
| 7 | LICENSE = "Libpng" | ||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=5516d77a3cf75f55a0d37254e3e65a20" | ||
| 9 | DEPENDS = "zlib" | ||
| 10 | |||
| 11 | LIBV = "16" | ||
| 12 | |||
| 13 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}${LIBV}/${BP}.tar.xz \ | ||
| 14 | file://run-ptest \ | ||
| 15 | " | ||
| 16 | |||
| 17 | SRC_URI[sha256sum] = "4df396518620a7aa3651443e87d1b2862e4e88cad135a8b93423e01706232307" | ||
| 18 | |||
| 19 | MIRRORS += "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}${LIBV}/ ${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}${LIBV}/older-releases/" | ||
| 20 | |||
| 21 | UPSTREAM_CHECK_URI = "http://libpng.org/pub/png/libpng.html" | ||
| 22 | |||
| 23 | BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config" | ||
| 24 | |||
| 25 | inherit autotools binconfig-disabled pkgconfig ptest | ||
| 26 | |||
| 27 | # Work around missing symbols | ||
| 28 | ARMNEON = "${@bb.utils.contains("TUNE_FEATURES", "neon", "--enable-arm-neon=on", "--enable-arm-neon=off", d)}" | ||
| 29 | ARMNEON:aarch64 = "--enable-hardware-optimizations=on" | ||
| 30 | EXTRA_OECONF += "${ARMNEON}" | ||
| 31 | |||
| 32 | PACKAGES =+ "${PN}-tools" | ||
| 33 | |||
| 34 | FILES:${PN}-tools = "${bindir}/png-fix-itxt ${bindir}/pngfix ${bindir}/pngcp" | ||
| 35 | |||
| 36 | RDEPENDS:${PN}-ptest += "make bash gawk" | ||
| 37 | |||
| 38 | do_install_ptest() { | ||
| 39 | # Install test scripts to ptest path | ||
| 40 | install -d ${D}${PTEST_PATH}/src/tests | ||
| 41 | install -m 755 ${S}/tests/* ${D}${PTEST_PATH}/src/tests | ||
| 42 | install -m 755 ${S}/test-driver ${D}${PTEST_PATH} | ||
| 43 | install -d ${D}${PTEST_PATH}/src/tests/scripts | ||
| 44 | install -m 755 ${S}/scripts/*.awk ${D}${PTEST_PATH}/src/tests/scripts | ||
| 45 | install -m 644 ${S}/scripts/pnglib* ${S}/scripts/*.c ${S}/scripts/*.def ${S}/scripts/macro.lst ${D}${PTEST_PATH}/src/tests/scripts | ||
| 46 | install -m 644 ${S}/scripts/pnglibconf.h.prebuilt ${D}${PTEST_PATH}/src/tests/scripts/pnglibconf.h | ||
| 47 | install -d ${D}${PTEST_PATH}/src/contrib/tools | ||
| 48 | install -m 755 ${S}/contrib/tools/*.sh ${D}${PTEST_PATH}/src/contrib/tools | ||
| 49 | install -m 644 ${S}/contrib/tools/*.c ${S}/contrib/tools/*.h ${D}${PTEST_PATH}/src/contrib/tools | ||
| 50 | |||
| 51 | # Install .libs directory binaries to ptest path | ||
| 52 | install -m 755 ${B}/.libs/pngtest ${B}/.libs/pngstest ${B}/.libs/pngimage ${B}/.libs/pngunknown ${B}/.libs/pngvalid ${D}${PTEST_PATH}/src | ||
| 53 | |||
| 54 | # Copy png files to ptest path | ||
| 55 | cd ${S} && find contrib -name '*.png' | cpio -pd ${D}${PTEST_PATH}/src | ||
| 56 | |||
| 57 | # Install Makefile and png files | ||
| 58 | install -m 644 ${S}/pngtest.png ${D}${PTEST_PATH}/src | ||
| 59 | install -m 644 ${S}/*.png ${S}/*.h ${S}/*.c ${S}/*.dfa ${B}/pnglibconf.out ${S}/Makefile.am ${S}/Makefile.in ${D}${PTEST_PATH}/src/tests | ||
| 60 | |||
| 61 | sed -e 's/^abs_srcdir = ..*/abs_srcdir = \.\./' \ | ||
| 62 | -e 's/^top_srcdir = ..*/top_srcdir = \.\./' \ | ||
| 63 | -e 's/^srcdir = ..*/srcdir = \./' \ | ||
| 64 | -e 's/^Makefile: ..*/Makefile: /' \ | ||
| 65 | -e 's/check-TESTS: $(check_PROGRAMS)/check-TESTS:/g' \ | ||
| 66 | ${B}/Makefile > ${D}${PTEST_PATH}/src/Makefile | ||
| 67 | |||
| 68 | sed -e 's|#!/bin/awk|#!/usr/bin/awk|g' -i ${D}${PTEST_PATH}/src/tests/scripts/*.awk | ||
| 69 | } | ||
| 70 | |||
| 71 | BBCLASSEXTEND = "native nativesdk" | ||
