git: 3774476f8126 - main - graphics/png: Fix plist issue with DEBUG enabled

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Thu, 19 Jan 2023 20:14:49 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3774476f812609db98bacab12b788e22bb4b5fc7

commit 3774476f812609db98bacab12b788e22bb4b5fc7
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-01-19 20:06:49 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-01-19 20:14:46 +0000

    graphics/png: Fix plist issue with DEBUG enabled
    
    Make sure filenames stay the same when using framework debug flag
    
    Reported by:    bofh
    Approved by:    portmgr (blanket, build fix)
---
 graphics/png/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index d429e59d77e9..68b60d9274c5 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -48,4 +48,8 @@ CFLAGS+=	-maltivec -mvsx
 PATCHFILES=	${DISTNAME}-apng.patch.gz:-p1
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|CMAKE_DEBUG_POSTFIX "d"|CMAKE_DEBUG_POSTFIX ""|g' \
+		${PATCH_WRKSRC}/CMakeLists.txt
+
 .include <bsd.port.mk>