libpng: updated to 1.6.28

This commit is contained in:
Fredrik Rinnestam 2017-03-09 22:32:00 +01:00
parent 1f08f89640
commit bc39ec8771
5 changed files with 42 additions and 42 deletions

View File

@ -18,9 +18,9 @@ lrwxrwxrwx root/root usr/lib/libpng.la -> libpng16.la
lrwxrwxrwx root/root usr/lib/libpng.so -> libpng16.so
-rw-r--r-- root/root usr/lib/libpng16.a
-rwxr-xr-x root/root usr/lib/libpng16.la
lrwxrwxrwx root/root usr/lib/libpng16.so -> libpng16.so.16.27.0
lrwxrwxrwx root/root usr/lib/libpng16.so.16 -> libpng16.so.16.27.0
-rwxr-xr-x root/root usr/lib/libpng16.so.16.27.0
lrwxrwxrwx root/root usr/lib/libpng16.so -> libpng16.so.16.28.0
lrwxrwxrwx root/root usr/lib/libpng16.so.16 -> libpng16.so.16.28.0
-rwxr-xr-x root/root usr/lib/libpng16.so.16.28.0
drwxr-xr-x root/root usr/lib/pkgconfig/
lrwxrwxrwx root/root usr/lib/pkgconfig/libpng.pc -> libpng16.pc
-rw-r--r-- root/root usr/lib/pkgconfig/libpng16.pc

View File

@ -1,2 +1,2 @@
90099cb7dfb36bf223f4791429d45c6a libpng-1.6.27.tar.xz
493e3dfbf217a6fd8f3f4d9e4691bb9c libpng-apng.patch
425354f86c392318d31aedca71019372 libpng-1.6.28.tar.xz
b589075a676288ce503c1fed0785d8ce libpng-apng.patch

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/aD7O6KEG/arQmVDvMl6GYLIDUnvOv1pbp9AxMjts1clkK4mg5ah0E9gInifNlrj9p+ub47i+ApbajGla/0MtQU=
SHA256 (Pkgfile) = 48e5f0cd98cc940264916d8183cfe45cefed629e6ee93946bff286b605ca9290
SHA256 (.footprint) = 8cf763aa03d8597cbbd23ed7c6b2fb7ac2f9a25231e5bb4b08d934d7de4fc32a
SHA256 (libpng-1.6.27.tar.xz) = fca2ffd97336356cdab9bfa8936b9d6dfd580a70205e5dfead3ac42cb054b57b
SHA256 (libpng-apng.patch) = c313747661a3dcd34b3946a8db6b3880499cdaa19ca7c4b0453c838648491d04
RWSE3ohX2g5d/ZBeszqqj+6yTjrL+GnLhlNeA49vPTUcOk8XjcbTIIGw6mzLdnLdnzB2ob72/F/tH2ybVgSHZ7lSXoVtb76zXwY=
SHA256 (Pkgfile) = e0e66c92bf38e239d430261252058d092a2f7d9817f3a5f0aa2e8390c0d70173
SHA256 (.footprint) = 0e7d834fe8f6e7bdc8f4c551ce3cccecca729bb74e5a2a79d39593817221ab48
SHA256 (libpng-1.6.28.tar.xz) = d8d3ec9de6b5db740fefac702c37ffcf96ae46cb17c18c1544635a3852f78f7a
SHA256 (libpng-apng.patch) = a227614c864149f232f62d1d0ebac0c7c7b1267eb349ed44c62d1b136b375abe

View File

@ -4,7 +4,7 @@
# Depends on: zlib
name=libpng
version=1.6.27
version=1.6.28
release=1
source=(http://download.sourceforge.net/$name/$name-$version.tar.xz \
$name-apng.patch)

View File

@ -8,13 +8,13 @@ Index: LICENSE
+This modified version of libpng code adds animated PNG support and is
+released under the libpng license described below. The modifications are
+Copyright (c) 2006-2007 Andrew Smith, Copyright (c) 2008-2016 Max Stepin,
+Copyright (c) 2006-2007 Andrew Smith, Copyright (c) 2008-2017 Max Stepin,
+and are delimited by "#ifdef PNG_APNG_SUPPORTED / #endif" directives
+surrounding them in the modified libpng source files.
+
This code is released under the libpng license.
libpng versions 1.0.7, July 1, 2000 through 1.6.26, October 20, 2016 are
libpng versions 1.0.7, July 1, 2000 through 1.6.28, January 5, 2017 are
Index: pngread.c
===================================================================
--- pngread.c
@ -97,7 +97,7 @@ Index: pngread.c
+ /* discard trailing fdATs for frames other than the first */
+ if (have_chunk_after_DAT == 0 && png_ptr->num_frames_read > 1)
+ png_crc_finish(png_ptr, length - 4);
+ else if(png_ptr->mode & PNG_HAVE_fcTL)
+ else if (png_ptr->mode & PNG_HAVE_fcTL)
+ {
+ png_ptr->idat_size = length - 4;
+ png_ptr->mode |= PNG_HAVE_IDAT;
@ -295,29 +295,29 @@ Index: png.c
===================================================================
--- png.c
+++ png.c
@@ -775,17 +775,21 @@
@@ -776,17 +776,21 @@
#else
# ifdef __STDC__
return PNG_STRING_NEWLINE \
- "libpng version 1.6.27 - December 29, 2016" PNG_STRING_NEWLINE \
+ "libpng version 1.6.27+apng - December 29, 2016" PNG_STRING_NEWLINE \
"Copyright (c) 1998-2002,2004,2006-2016 Glenn Randers-Pehrson" \
- "libpng version 1.6.28 - January 5, 2017" PNG_STRING_NEWLINE \
+ "libpng version 1.6.28+apng - January 5, 2017" PNG_STRING_NEWLINE \
"Copyright (c) 1998-2002,2004,2006-2017 Glenn Randers-Pehrson" \
PNG_STRING_NEWLINE \
"Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \
"Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \
- PNG_STRING_NEWLINE;
+ PNG_STRING_NEWLINE \
+ "Portions Copyright (c) 2006-2007 Andrew Smith" PNG_STRING_NEWLINE \
+ "Portions Copyright (c) 2008-2016 Max Stepin" PNG_STRING_NEWLINE ;
+ "Portions Copyright (c) 2008-2017 Max Stepin" PNG_STRING_NEWLINE ;
# else
- return "libpng version 1.6.27 - December 29, 2016\
+ return "libpng version 1.6.27+apng - December 29, 2016\
Copyright (c) 1998-2002,2004,2006-2016 Glenn Randers-Pehrson\
- return "libpng version 1.6.28 - January 5, 2017\
+ return "libpng version 1.6.28+apng - January 5, 2017\
Copyright (c) 1998-2002,2004,2006-2017 Glenn Randers-Pehrson\
Copyright (c) 1996-1997 Andreas Dilger\
- Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.";
+ Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.\
+ Portions Copyright (c) 2006-2007 Andrew Smith\
+ Portions Copyright (c) 2008-2016 Max Stepin";
+ Portions Copyright (c) 2008-2017 Max Stepin";
# endif
#endif
}
@ -331,26 +331,26 @@ Index: png.h
*
+ * This modified version of libpng code adds animated PNG support and is
+ * released under the libpng license described below. The modifications are
+ * Copyright (c) 2006-2007 Andrew Smith, Copyright (c) 2008-2016 Max Stepin,
+ * Copyright (c) 2006-2007 Andrew Smith, Copyright (c) 2008-2017 Max Stepin,
+ * and are delimited by "#ifdef PNG_APNG_SUPPORTED / #endif" directives
+ * surrounding them in the modified libpng source files.
+ *
* This code is released under the libpng license.
*
* Some files in the "contrib" directory and some configure-generated
@@ -314,8 +320,9 @@
* libpng versions 1.0.7, July 1, 2000 through 1.6.28, January 5, 2017 are
@@ -307,8 +313,9 @@
*/
/* Version information for png.h - this should match the version in png.c */
-#define PNG_LIBPNG_VER_STRING "1.6.27"
-#define PNG_HEADER_VERSION_STRING " libpng version 1.6.27 - December 29, 2016\n"
+#define PNG_LIBPNG_VER_STRING "1.6.27+apng"
-#define PNG_LIBPNG_VER_STRING "1.6.28"
-#define PNG_HEADER_VERSION_STRING " libpng version 1.6.28 - January 5, 2017\n"
+#define PNG_LIBPNG_VER_STRING "1.6.28+apng"
+#define PNG_HEADER_VERSION_STRING \
+ " libpng version 1.6.27+apng - December 29, 2016\n"
+ " libpng version 1.6.28+apng - January 5, 2017\n"
#define PNG_LIBPNG_VER_SONUM 16
#define PNG_LIBPNG_VER_DLLNUM 16
@@ -366,6 +373,10 @@
@@ -359,6 +366,10 @@
# include "pnglibconf.h"
#endif
@ -361,7 +361,7 @@ Index: png.h
#ifndef PNG_VERSION_INFO_ONLY
/* Machine specific configuration. */
# include "pngconf.h"
@@ -461,6 +472,17 @@
@@ -454,6 +465,17 @@
* See pngconf.h for base types that vary by machine/system
*/
@ -379,7 +379,7 @@ Index: png.h
/* This triggers a compiler error in png.c, if png.c and png.h
* do not agree upon the version number.
*/
@@ -781,6 +803,10 @@
@@ -774,6 +796,10 @@
#define PNG_INFO_sPLT 0x2000U /* ESR, 1.0.6 */
#define PNG_INFO_sCAL 0x4000U /* ESR, 1.0.6 */
#define PNG_INFO_IDAT 0x8000U /* ESR, 1.0.6 */
@ -390,7 +390,7 @@ Index: png.h
/* This is used for the transformation routines, as some of them
* change these values for the row. It also should enable using
@@ -818,6 +844,10 @@
@@ -811,6 +837,10 @@
#ifdef PNG_PROGRESSIVE_READ_SUPPORTED
typedef PNG_CALLBACK(void, *png_progressive_info_ptr, (png_structp, png_infop));
typedef PNG_CALLBACK(void, *png_progressive_end_ptr, (png_structp, png_infop));
@ -401,7 +401,7 @@ Index: png.h
/* The following callback receives png_uint_32 row_number, int pass for the
* png_bytep data of the row. When transforming an interlaced image the
@@ -3246,6 +3276,75 @@
@@ -3240,6 +3270,75 @@
* END OF HARDWARE AND SOFTWARE OPTIONS
******************************************************************************/
@ -477,7 +477,7 @@ Index: png.h
/* Maintainer: Put new public prototypes here ^, in libpng.3, in project
* defs, and in scripts/symbols.def.
*/
@@ -3254,7 +3353,11 @@
@@ -3248,7 +3347,11 @@
* one to use is one more than this.)
*/
#ifdef PNG_EXPORT_LAST_ORDINAL
@ -1097,7 +1097,7 @@ Index: pngrutil.c
===================================================================
--- pngrutil.c
+++ pngrutil.c
@@ -860,6 +860,11 @@
@@ -861,6 +861,11 @@
filter_type = buf[11];
interlace_type = buf[12];
@ -1109,7 +1109,7 @@ Index: pngrutil.c
/* Set internal variables */
png_ptr->width = width;
png_ptr->height = height;
@@ -2760,6 +2765,180 @@
@@ -2761,6 +2766,180 @@
}
#endif
@ -1290,7 +1290,7 @@ Index: pngrutil.c
#ifdef PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
/* Utility function for png_handle_unknown; set up png_ptr::unknown_chunk */
static int
@@ -4022,6 +4201,38 @@
@@ -4023,6 +4202,38 @@
uInt avail_in;
png_bytep buffer;
@ -1329,7 +1329,7 @@ Index: pngrutil.c
while (png_ptr->idat_size == 0)
{
png_crc_finish(png_ptr, 0);
@@ -4033,6 +4244,7 @@
@@ -4034,6 +4245,7 @@
if (png_ptr->chunk_name != png_IDAT)
png_error(png_ptr, "Not enough image data");
}
@ -1337,7 +1337,7 @@ Index: pngrutil.c
avail_in = png_ptr->IDAT_read_size;
@@ -4096,6 +4308,9 @@
@@ -4097,6 +4309,9 @@
png_ptr->mode |= PNG_AFTER_IDAT;
png_ptr->flags |= PNG_FLAG_ZSTREAM_ENDED;
@ -1347,7 +1347,7 @@ Index: pngrutil.c
if (png_ptr->zstream.avail_in > 0 || png_ptr->idat_size > 0)
png_chunk_benign_error(png_ptr, "Extra compressed data");
@@ -4542,4 +4757,80 @@
@@ -4535,4 +4750,80 @@
png_ptr->flags |= PNG_FLAG_ROW_INIT;
}