git: d5b60430b2f8 - main - graphics/engauge-digitizer: Fix build

Yuri Victorovich <[email protected]> Wed, 05 Aug 2026 02:48:02 +0000
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by yuri:

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

commit d5b60430b2f8daa7a759e0199bac723e81357194
Author:     Yuri Victorovich <[email protected]>
AuthorDate: 2026-08-05 02:47:26 +0000
Commit:     Yuri Victorovich <[email protected]>
CommitDate: 2026-08-05 02:48:00 +0000

    graphics/engauge-digitizer: Fix build
    
    Reported by:    fallout
---
 graphics/engauge-digitizer/Makefile | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/graphics/engauge-digitizer/Makefile b/graphics/engauge-digitizer/Makefile
index c68c38d82409..3201f651ab8a 100644
--- a/graphics/engauge-digitizer/Makefile
+++ b/graphics/engauge-digitizer/Makefile
@@ -35,6 +35,20 @@ OPTIONS_SUB=	yes
 
 #DOCS_USE=	QT=help,linguist:build
 
+post-patch: # workaround for https://github.com/akhuettel/engauge-digitizer/issues/14
+	@for f in `${GREP} -rl LOG4CPP_INFO_S ${WRKSRC} | ${GREP} "\.cpp"`; do \
+		${REINPLACE_CMD} -i '' -e 's|LOG4CPP_INFO_S ((\*mainCat))|mainCat->infoStream()|' $$f; \
+	done
+	@for f in `${GREP} -rl LOG4CPP_DEBUG_S ${WRKSRC} | ${GREP} "\.cpp"`; do \
+		${REINPLACE_CMD} -i '' -e 's|LOG4CPP_DEBUG_S ((\*mainCat))|mainCat->infoStream()|' $$f; \
+	done
+	@for f in `${GREP} -rl LOG4CPP_ERROR_S ${WRKSRC} | ${GREP} "\.cpp"`; do \
+		${REINPLACE_CMD} -i '' -e 's|LOG4CPP_ERROR_S ((\*mainCat))|mainCat->infoStream()|' $$f; \
+	done
+	@for f in `${GREP} -rl LOG4CPP_WARN_S ${WRKSRC} | ${GREP} "\.cpp"`; do \
+		${REINPLACE_CMD} -i '' -e 's|LOG4CPP_WARN_S ((\*mainCat))|mainCat->infoStream()|' $$f; \
+	done
+
 do-patch-NLS-on:
 	@${REINPLACE_CMD} -e 's|QCoreApplication::applicationDirPath () + "/translations",|"${DATADIR}/translations",|' ${WRKSRC}/src/Translator/TranslatorContainer.cpp