head 1.6; access; symbols pkgsrc-2023Q4:1.6.0.4 pkgsrc-2023Q4-base:1.6 pkgsrc-2023Q3:1.6.0.2 pkgsrc-2023Q3-base:1.6 pkgsrc-2023Q2:1.5.0.30 pkgsrc-2023Q2-base:1.5 pkgsrc-2023Q1:1.5.0.28 pkgsrc-2023Q1-base:1.5 pkgsrc-2022Q4:1.5.0.26 pkgsrc-2022Q4-base:1.5 pkgsrc-2022Q3:1.5.0.24 pkgsrc-2022Q3-base:1.5 pkgsrc-2022Q2:1.5.0.22 pkgsrc-2022Q2-base:1.5 pkgsrc-2022Q1:1.5.0.20 pkgsrc-2022Q1-base:1.5 pkgsrc-2021Q4:1.5.0.18 pkgsrc-2021Q4-base:1.5 pkgsrc-2021Q3:1.5.0.16 pkgsrc-2021Q3-base:1.5 pkgsrc-2021Q2:1.5.0.14 pkgsrc-2021Q2-base:1.5 pkgsrc-2021Q1:1.5.0.12 pkgsrc-2021Q1-base:1.5 pkgsrc-2020Q4:1.5.0.10 pkgsrc-2020Q4-base:1.5 pkgsrc-2020Q3:1.5.0.8 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.5.0.6 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.2 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.5.0.4 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.4.0.42 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.40 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.4.0.38 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.36 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.34 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.32 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.30 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.28 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.26 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.22 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.20 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.18 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.16 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.14 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.12 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.10 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.8 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.6 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.4 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.2 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.3.0.12 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.10 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.8 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.6 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.4 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.2 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.2.0.6 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.4 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.2 pkgsrc-2011Q2-base:1.2 pkgsrc-2010Q1:1.1.0.26 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.24 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.22 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.20 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.18 pkgsrc-2009Q1-base:1.1 pkgsrc-2008Q4:1.1.0.16 pkgsrc-2008Q4-base:1.1 pkgsrc-2008Q3:1.1.0.14 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.12 cube-native-xorg-base:1.1 pkgsrc-2008Q2:1.1.0.10 pkgsrc-2008Q2-base:1.1 cwrapper:1.1.0.8 pkgsrc-2008Q1:1.1.0.6 pkgsrc-2008Q1-base:1.1 pkgsrc-2007Q4:1.1.0.4 pkgsrc-2007Q4-base:1.1 pkgsrc-2007Q3:1.1.0.2 pkgsrc-2007Q3-base:1.1; locks; strict; comment @# @; 1.6 date 2023.06.26.13.10.12; author wiz; state Exp; branches; next 1.5; commitid YzZOGDJ64c3KtsuE; 1.5 date 2019.11.02.22.38.01; author rillig; state Exp; branches; next 1.4; commitid amORVXK58QMYqkJB; 1.4 date 2014.12.15.11.46.35; author jperkin; state Exp; branches; next 1.3; commitid VnotGzuOTLmt882y; 1.3 date 2013.06.23.05.20.33; author tsutsui; state Exp; branches; next 1.2; commitid qH1AUBTrwHlImHUw; 1.2 date 2010.06.13.22.42.10; author wiz; state dead; branches; next 1.1; 1.1 date 2007.08.31.15.35.08; author minskim; state Exp; branches; next ; desc @@ 1.6 log @png: update to 1.6.40. Changes from version 1.6.39 to version 1.6.40 --------------------------------------------- * Fixed the eXIf chunk multiplicity checks. * Fixed a memory leak in pCAL processing. * Corrected the validity report about tRNS inside png_get_valid(). * Fixed various build issues on *BSD, Mac and Windows. * Updated the configurations and the scripts for continuous integration. * Cleaned up the code, the build scripts, and the documentation. @ text @# $NetBSD: hacks.mk,v 1.5 2019/11/02 22:38:01 rillig Exp $ .if !defined(PNG_HACKS_MK) PNG_HACKS_MK= defined .include "../../mk/compiler.mk" ### gcc-4.5.3 in NetBSD/arm 6.1 causes SEGV in some png functions. ### -O works around, and there is a report that -O2 -fno-ipa-sra is enough. ### See PR/47798 for details. .if ${MACHINE_PLATFORM:MNetBSD-*-arm} && ${CC_VERSION:Mgcc-4.5.*} # XXX: is there any good way to replace the default -O2 with multiple args? #PKG_HACKS+= optimisation #BUILDLINK_TRANSFORM+= opt:-O[2-9]*:-O2 -fno-ipa-sra CFLAGS+= -O2 -fno-ipa-sra .endif .endif # PNG_HACKS_MK @ 1.5 log @graphics: align variable assignments pkglint -Wall -F --only aligned --only indent -r No manual corrections. @ text @d1 1 a1 1 # $NetBSD: hacks.mk,v 1.4 2014/12/15 11:46:35 jperkin Exp $ d11 1 a11 1 .if !empty(MACHINE_PLATFORM:MNetBSD-*-arm) && !empty(CC_VERSION:Mgcc-4.5.*) @ 1.4 log @The "rename" rule is a published synonym for the "opt" transform rule, however only the latter is supported by cwrappers. Change them all to "opt" rules for consistency and to gain compatibility with cwrappers. @ text @d1 1 a1 1 # $NetBSD: hacks.mk,v 1.3 2013/06/23 05:20:33 tsutsui Exp $ d15 1 a15 1 CFLAGS+=-O2 -fno-ipa-sra @ 1.3 log @Add workaround for PR/47798 (png gets SEGV on NetBSD/arm 6.1 due to gcc bug). - specify "-O2 -fno-ipa-sra" for NetBSD/arm and gcc-4.5.* in hacks.mk - also bump PKGREVISION for explicit rebuild "Please commit that" from wiz@@. @ text @d1 1 a1 1 # $NetBSD$ d14 1 a14 1 #BUILDLINK_TRANSFORM+= rename:-O[2-9]*:-O2 -fno-ipa-sra @ 1.2 log @Update to 1.4.2. Shared library name changes from libpn12.* to libpng14.*, so bump ABI depends. Remove libpng.* from package, instead use buildlink to help some packages that are looking for the library themselves instead of using pkg-config or libpng-config. Changes: version 1.4.2: Restored the macro definition of png_check_sig(). Conditionally compile an "else" statement in png_decompress_chunk(). Documented the fact that png_set_dither() was disabled since libpng-1.4.0. Reenabled png_set_dither() but renamed it to png_set_quantize() to reflect more accurately what it actually does. At the same time, renamed the PNG_DITHER_[RED,GREEN_BLUE]_BITS macros to PNG_QUANTIZE_[RED,GREEN,BLUE]_BITS. Added some "(long)" typecasts to printf calls in png_handle_cHRM(). Relaxed the overly-restrictive permissions of some files. Added the "vstudio" project to replace "visualc6" and "visualc71" which will be removed from libpng-1.5.0. Demonstrate in example.c that lang_key should be initialized. Set PNG_NO_READ_BGR, PNG_NO_IO_STATE, and PNG_NO_TIME_RFC1123 in contrib/pngminim/decoder/pngusr.h to make a smaller decoder application. Include png_reset_zstream() in png.c only when PNG_READ_SUPPORTED is defined. Removed dummy_inflate.c and uncompr.c from contrib/pngminim/encoder Corrected PNG_UNKNOWN_CHUNKS_SUPPORTED to PNG_HANDLE_AS_UNKNOWN_SUPPORTED in gregbook/readpng2.c Corrected protection of png_get_user_transform_ptr. The API declaration in png.h is removed if both READ and WRITE USER_TRANSFORM are turned off but was left defined in pngtrans.c Moved declarations of umsg[] inside the proper #ifdef blocks in pngrutil.c version 1.4.1 [February 25, 2010] Updated CMakeLists.txt for consistent indentation and to avoid an unclosed if-statement warning (Philip Lowman). Revised Makefile.am and Makefile.in to remove references to Y2KINFO, KNOWNBUG, and libpng.la (Robert Schwebel). Revised the makefiles to install the same files and symbolic except for libpng.la and libpng14.la. Make png_set|get_compression_buffer_size() available even when PNG_WRITE_SUPPORTED is not enabled. Revised Makefile.am and Makefile.in to simplify their maintenance. Revised the makefiles to install a link to libpng14.so.14.1 Removed png_set_premultiply_alpha() from scripts/*.def Revised png_decompress_chunk() to improve speed and memory usage when decoding large chunks, using a two-pass method suggested by John Bowler. Added png_set|get_chunk_malloc_max() functions. Relocated "int k" declaration in pngtest.c to minimize its scope. Folded some long lines in the source files. Added defineable PNG_USER_CHUNK_CACHE_MAX and PNG_USER_CHUNK_MALLOC_MAX Eliminated use of png_ptr->irowbytes and reused the slot in png_ptr as png_ptr->png_user_chunk_malloc_max. Return allocated "old_buffer" in png_push_save_buffer() before calling png_error(), to avoid a potential memory leak. Removed the cbuilder5 project, which has not been updated to 1.4.0. Complete rewrite of two-pass png_decompress_chunk() by John Bowler. Removed obsolete unused MMX-querying support from contrib/gregbook Removed the AIX redefinition of jmpbuf in png.h Define _ALL_SOURCE in configure.ac, makefile.aix, and CMakeLists.txt when using AIX compiler. Removed unused gzio.c from contrib/pngminim gather and makefile scripts Changes to Libpng from version 1.2.42 to 1.4.0 (January 4, 2010) Libpng-1.4.0 was released by the PNG Development Group on January 3, 2010. Important new features include support for the iTXt chunk and a function for limiting the amount of memory that a possibly malicious compressed chunk can consume. Some long-deprecated functions and features have been removed. A new private header file that is not visible to applications has been created, to improve our ability to maintain binary compatibility among future libpng versions. Specifically, 1. Private libpng prototypes and macro definitions were moved from png.h and pngconf.h into a new pngpriv.h header file that is not visible to applications. 2. Some obsolete/deprecated macros and functions have been removed. a. We eliminated the obsolete, unused pnggccrd.c and pngvcrd.c files and related makefiles. b. We removed the typecasted NULL definitions such as #define png_voidp_NULL (png_voidp)NULL If you used these in your application, just use NULL instead. c. We eliminated the PNG_1_0_X and PNG_1_2_X macros. d. We eliminated the PNG_LEGACY_SUPPORTED macro. e. We removed many WIN32_WCE #ifdefs. f. We removed the functions png_read_init(info_ptr), png_write_init(info_ptr), png_info_init(info_ptr), png_read_destroy(), and png_write_destroy(). They have been deprecated since libpng-0.95. g. We removed the png_permit_empty_plte() function. It has been deprecated since libpng-1.0.9. Use png_permit_mng_features() instead. h. We removed the obsolete stub functions png_get_mmx_flagmask(), png_set_mmx_thresholds(), png_get_asm_flags(), png_get_mmx_bitdepth_threshold(), png_get_mmx_rowbytes_threshold(), png_set_asm_flags(), and png_mmx_supported() i. We removed the obsolete png_check_sig(), png_memcpy_check(), and png_memset_check() functions. Instead use !png_sig_cmp(), png_memcpy(), and png_memset(), respectively, i.e., replace png_check_sig(buf, 8) with png_sig_cmp(buf, 0, 8) == 0 replace png_memcpy_check(png_ptr, dest, src, length) with png_memcpy(dest, src, length) and replace png_memset_check(png_ptr, dest, value, length) with png_memset(dest, value, length) j. We removed support for global arrays to improve thread safety. k. We removed support for numbered error messages by default, since we never got around to actually numbering the error messages. The function png_set_strip_error_numbers() was removed from the library by default. l. The png_zalloc() and png_zfree() functions are no longer exported. The png_zalloc() function no longer zeroes out the memory that it allocates. m. The function png_set_gray_1_2_4_to_8() was removed. It has been deprecated since libpng-1.0.18 and 1.2.9, when it was replaced with png_set_expand_gray_1_2_4_to_8() because the former function also expanded palette images. 3. Several function prototypes were changed. a. We changed the prototype for png_malloc() from png_malloc(png_structp png_ptr, png_uint_32 size) to png_malloc(png_structp png_ptr, png_alloc_size_t size) b. We changed the prototypes of png_get_compression_buffer_size() and png_set_compression_buffer_size() to work with png_size_t instead of png_uint_32. 4. We added some new features: a. We enabled iTXt chunk support by default. This changes the png_text structure by adding the itxt_length, lang, and lang_key members. b. We added the functions png_set_benign_errors(), png_benign_error(), and png_chunk_benign_error(). With these, you can choose to treat certain normally fatal errors as nonfatal. c. Support for setting the maximum amount of memory that the application will allocate for reading chunks was added, as a security measure. The functions png_set_chunk_cache_max() and png_get_chunk_cache_max() were added to the library. d. We added the png_calloc() function and used it in place of of "png_malloc(); png_memset();" except in the case in png_read_png() where the array consists of pointers; in this case a "for" loop is used after the png_malloc() to set the pointers to NULL, to give robust. behavior in case the application runs out of memory part-way through the process. e. We implemented support for I/O states by adding png_ptr member io_state and functions png_get_io_chunk_name() and png_get_io_state() in pngget.c f. We added PNG_TRANSFORM_GRAY_TO_RGB to the available high-level input transforms. 5. Other changes a. We changed the names of the png_struct and info_struct members "trans" and "trans_values" to "trans_alpha" and "trans_color", respectively. b. Checking for and reporting of errors in the IHDR chunk is more thorough. c. We removed the trailing '.' from the warning and error messages. d. Direct access to png_ptr->jmpbuf has been deprecated since libpng version 1.0.6, and libpng now generates a warning about it. To avoid such warnings, change setjmp(png_ptr->jmpbuf) to setjmp(png_jmpbuf(png_ptr)) @ text @d1 1 a1 1 # $NetBSD: hacks.mk,v 1.1 2007/08/31 15:35:08 minskim Exp $ d6 10 a15 4 # A workaround for libpng bug #1777158. .if !empty(MACHINE_PLATFORM:MDarwin-*-i386) PKG_HACKS+= darwin-read_only_relocs LDFLAGS+= -Wl,-read_only_relocs -Wl,suppress d18 1 a18 1 .endif # PNG_HACKS_MK @ 1.1 log @Add a workaround for libpng bug #1777158. This makes the package build on Darwin/i386. @ text @d1 1 a1 1 # $NetBSD$ @