aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-08-05 02:47:26 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-08-05 02:48:00 +0000
commitd5b60430b2f8daa7a759e0199bac723e81357194 (patch)
treeea5e199db058f603181211fc7294758dac377a51
parentd6a5f415baf4c4a32a1eaed9fda86640a9b5404c (diff)
graphics/engauge-digitizer: Fix build
Reported by: fallout
-rw-r--r--graphics/engauge-digitizer/Makefile14
1 files changed, 14 insertions, 0 deletions
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