git: 3add5bcc2e5e - main - graphics/png: Update to 1.6.40

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Fri, 28 Jul 2023 17:29:52 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3add5bcc2e5ebd97bccdc235448be7723e54da76

commit 3add5bcc2e5ebd97bccdc235448be7723e54da76
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-07-28 17:26:48 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-07-28 17:26:54 +0000

    graphics/png: Update to 1.6.40
    
    Changelog:
    https://github.com/glennrp/libpng/blob/v1.6.40/CHANGES
    
    PR:             272200
    Reviewed by:    desktop (tcberner)
    Sponsored by:   Blinkinblox
    Exp-run by:     antoine
---
 graphics/png/Makefile  | 12 ++++++++----
 graphics/png/distinfo  |  6 +++---
 graphics/png/pkg-plist |  2 +-
 3 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index 68b60d9274c5..c41b4c9625fe 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -1,8 +1,10 @@
 PORTNAME=	png
-DISTVERSION=	1.6.39
+DISTVERSION=	1.6.40
 CATEGORIES=	graphics
 MASTER_SITES=	SF/lib${PORTNAME}/lib${PORTNAME}16/${DISTVERSION}/
-PATCH_SITES=	SF/lib${PORTNAME}-apng/lib${PORTNAME}16/${DISTVERSION}/
+#PATCH_SITES=	SF/lib${PORTNAME}-apng/lib${PORTNAME}16/${DISTVERSION}/
+# Keep this because you normally need to keep patch version in sync with release 
+PATCH_SITES=	SF/lib${PORTNAME}-apng/lib${PORTNAME}16/1.6.39/
 DISTNAME=	lib${PORTNAME}-${DISTVERSION}
 
 MAINTAINER=	desktop@FreeBSD.org
@@ -45,11 +47,13 @@ CFLAGS+=	-maltivec -mvsx
 .endif
 
 .if ${PORT_OPTIONS:MAPNG} || make(makesum)
-PATCHFILES=	${DISTNAME}-apng.patch.gz:-p1
+#PATCHFILES=	${DISTNAME}-apng.patch.gz:-p1
+# Keep this because you normally need to keep patch version in sync with release
+PATCHFILES=	lib${PORTNAME}-1.6.39-apng.patch.gz:-p1
 .endif
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|CMAKE_DEBUG_POSTFIX "d"|CMAKE_DEBUG_POSTFIX ""|g' \
+	@${REINPLACE_CMD} -e 's|PNG_DEBUG_POSTFIX "d"|PNG_DEBUG_POSTFIX ""|g' \
 		${PATCH_WRKSRC}/CMakeLists.txt
 
 .include <bsd.port.mk>
diff --git a/graphics/png/distinfo b/graphics/png/distinfo
index ccbd60962dfa..1a40b83917c9 100644
--- a/graphics/png/distinfo
+++ b/graphics/png/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1669932270
-SHA256 (libpng-1.6.39.tar.xz) = 1f4696ce70b4ee5f85f1e1623dc1229b210029fa4b7aee573df3e2ba7b036937
-SIZE (libpng-1.6.39.tar.xz) = 1020552
+TIMESTAMP = 1687685650
+SHA256 (libpng-1.6.40.tar.xz) = 535b479b2467ff231a3ec6d92a525906fb8ef27978be4f66dbe05d3f3a01b3a1
+SIZE (libpng-1.6.40.tar.xz) = 1021332
 SHA256 (libpng-1.6.39-apng.patch.gz) = 4ac4b6eaba00cde212c48db65cb94291073febca22c5c79fda87091502e80cfd
 SIZE (libpng-1.6.39-apng.patch.gz) = 10730
diff --git a/graphics/png/pkg-plist b/graphics/png/pkg-plist
index ec9ed3264e6b..78d92d166877 100644
--- a/graphics/png/pkg-plist
+++ b/graphics/png/pkg-plist
@@ -15,7 +15,7 @@ lib/libpng/libpng16.cmake
 lib/libpng16.a
 lib/libpng16.so
 lib/libpng16.so.16
-lib/libpng16.so.16.39.0
+lib/libpng16.so.16.40.0
 libdata/pkgconfig/libpng.pc
 libdata/pkgconfig/libpng16.pc
 share/man/man3/libpng.3.gz